Gaming Community
Forum
 
Go Back   D3scene > Games > First-Person-Shooters > Battlefield 2 > Battlefield 2 Hacks
Register Blogs Live view Downloads Marketplace FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

[Tool] Password recovery.

This is a discussion on [Tool] Password recovery. within the Battlefield 2 Hacks forum part of the Battlefield 2 category; This will tell your password for the account selected in the login screen. This is pretty useless. The only use ...


Welcome on D3scene.com! Make sure to register - it's free and very quick! You have to register before you can post and participate in our discussions with 70000 other registered members. Downloads, user profiles and some forums can only be seen by registered members. After you create your free account you will be able to customize many options, you will have the full access to new hacks, latest cheats and last but not least will see no advertisements at all. We would love to see you around in our community!
Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 12-12-2008, 06:38 AM
TyranO's Avatar
Codemotion.net




 
Join Date: Aug 2008
Location: Azeroth
Posts: 320
Thanks: 15
Thanked 110 Times in 30 Posts
Reputation: 1064
Rep Power: 7
TyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud ofTyranO has much to be proud of
[Tool] Password recovery.

This will tell your password for the account selected in the login screen.

This is pretty useless. The only use it could have is that if you have your BF2 password saved and hidden with * chars and that you are changing computers and that you forgot your password, then you can recover it. Of course you could tell gamespy to send you an email, but if you also forgot your email or email password, then you're saved.

Also, this is open-source.

I searched strings for the password until I found the "right" offset. It was static so it wasn't hard at all.



Source:

Quote:
#include <windows.h>
#include <iostream>
#include <Tlhelp32.h>
#include "colors.cpp"

using namespace std;

DWORD GetPID (char* proc);
void EnableDebugPriv();
DWORD GetDLL (char* DllName, DWORD tPid);

int main(int argc, char *argv[])
{
SetColor(-1,1);
ClearConsole();

SetColor(7);
cout <<" |||||||||||||||||||||||||||||||||||||||||||||||||| ||\n";
SetColor(-21);
cout << " ~ TyranO's Battlefield 2 Pass Recover for BF2 1.41 ~\n";
SetColor(7);
cout <<" |||||||||||||||||||||||||||||||||||||||||||||||||| ||\n" << endl;
SetColor(11);

SetConsoleTitle("BF2 password Recovery");

if(GetPID("BF2.exe") == 0)
{
SetColor(-4);
cout << "BF2 was not found." << endl << endl;
SetColor(-1);
system("Pause");
exit(0);
}
else
{
SetColor(-1);
cout << "Select or log in the account from which you want to recover the password." << endl << endl;
DWORD Address = 36977564;
DWORD Buffer = 0;
SIZE_T BytesRead = 0;
HANDLE hProc = OpenProcess(PROCESS_ALL_ACCESS, false, GetPID("BF2.exe"));
EnableDebugPriv();
for(;;)

{
char Name[20];
Name[19] = 0;

for( unsigned int i = 0; i < 19; i++ )
{
ReadProcessMemory( hProc, (LPVOID)( Address + i ), &Buffer, 1, &BytesRead );
Name[i] = Buffer;
}
SetColor(10);
cout << "Your current password is: ";
SetColor(-20);
cout << Name << endl << endl;
SetColor(-1);
system("Pause");
cout << endl;

}
}
}

// Get PID for process (proc).
DWORD GetPID (char* proc)
{
BOOL working=0;
PROCESSENTRY32 lppe= {0};
DWORD targetPid=0;
HANDLE hSnapshot=CreateToolhelp32Snapshot(TH32CS_SNAPPROC ESS ,0);

if (hSnapshot)
{
lppe.dwSize=sizeof(lppe);
working=Process32First(hSnapshot,&lppe);
while (working)
{
if (_stricmp(lppe.szExeFile,proc)==0)
{
targetPid=lppe.th32ProcessID;
break;
}
working=Process32Next(hSnapshot,&lppe);
}
}

CloseHandle( hSnapshot );
return targetPid;
}

// Debug Priviledges.
void EnableDebugPriv()
{
HANDLE hToken;
LUID sedebugnameValue;
TOKEN_PRIVILEGES tkp;
OpenProcessToken( GetCurrentProcess( ), TOKEN_ADJUST_PRIVILEGES |TOKEN_QUERY, &hToken );
LookupPrivilegeValue( NULL, SE_DEBUG_NAME, &sedebugnameValue );
tkp.PrivilegeCount = 1;
tkp.Privileges[0].Luid = sedebugnameValue;
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
AdjustTokenPrivileges( hToken, false, &tkp, sizeof( tkp ), NULL, NULL );
CloseHandle( hToken );
}

// DLL Base (6F).
DWORD GetDLL(char* DllName, DWORD tPid)
{
HANDLE snapMod;
MODULEENTRY32 me32;

if (tPid == 0) return 0;
snapMod = CreateToolhelp32Snapshot(TH32CS_SNAPMODULE, tPid);
me32.dwSize = sizeof(MODULEENTRY32);

if (Module32First(snapMod, &me32)){
do{
if (strcmp(DllName,me32.szModule) == 0){
CloseHandle(snapMod);
return (DWORD) me32.modBaseAddr;
}
}while(Module32Next(snapMod,&me32));
}

CloseHandle(snapMod);
return 0;

}
colors.cpp:

Quote:

//This will clear the console.
void ClearConsole()
{
//Get the handle to the current output buffer...
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
//This is used to reset the carat/cursor to the top left.
COORD coord = {0, 0};
//A return value... indicating how many chars were written
// not used but we need to capture this since it will be
// written anyway (passing NULL causes an access violation).
DWORD count;
//This is a structure containing all of the console info
// it is used here to find the size of the console.
CONSOLE_SCREEN_BUFFER_INFO csbi;
//Here we will set the current color
if(GetConsoleScreenBufferInfo(hStdOut, &csbi))
{
//This fills the buffer with a given character (in this case 32=space).
FillConsoleOutputCharacter(hStdOut, (TCHAR) 32, csbi.dwSize.X * csbi.dwSize.Y, coord, &count);
FillConsoleOutputAttribute(hStdOut, csbi.wAttributes, csbi.dwSize.X * csbi.dwSize.Y, coord, &count );
//This will set our cursor position for the next print statement.
SetConsoleCursorPosition(hStdOut, coord);
}
return;
}

//This will set the forground color for printing in a console window.
void SetColor(int ForgC)
{
WORD wColor;
//We will need this handle to get the current background attribute
HANDLE hStdOut = GetStdHandle(STD_OUTPUT_HANDLE);
CONSOLE_SCREEN_BUFFER_INFO csbi;

//We use csbi for the wAttributes word.
if(GetConsoleScreenBufferInfo(hStdOut, &csbi))
{
//Mask out all but the background attribute, and add in the forgournd color
wColor = (csbi.wAttributes & 0xF0) + (ForgC & 0x0F);
SetConsoleTextAttribute(hStdOut, wColor);
}
return;
}
Attached Images
File Type: png pass.PNG (21.9 KB, 12 views)
Attached Files
File Type: zip pwordbf2.zip (112.6 KB, 43 views)

Last edited by TyranO; 12-12-2008 at 06:40 AM.
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
  #2  
Old 02-26-2009, 05:02 PM
MaRcDk's Avatar
Business Owner




 
Join Date: May 2007
Location: Denmark
Posts: 2,013
Thanks: 37
Thanked 36 Times in 14 Posts
Reputation: 2031
Rep Power: 14
MaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whoreMaRcDk is a rep whore
No comments.. sorry for my rude language.. but.. WHAT THE F*CK?

Come on guys, he clearly deservs some comments for this..

+ rep Tyrano, i'm sorry i didn't see this until now
Reply With Quote
  #3  
Old 02-26-2009, 05:33 PM
claire9090's Avatar
Member

 
Join Date: Aug 2008
Location: Behind My Computer!
Posts: 35
Thanks: 0
Thanked 1 Time in 1 Post
Reputation: 45
Rep Power: 2
claire9090 is on a distinguished road
Send a message via MSN to claire9090
Very Nice !! ! :>
Reply With Quote
  #4  
Old 02-26-2009, 07:15 PM
Serverman's Avatar
Paranoia!

 
Join Date: Jan 2008
Posts: 2,667
Blog Entries: 3
Thanks: 92
Thanked 91 Times in 54 Posts
Reputation: 814
Rep Power: 7
Serverman is a splendid one to beholdServerman is a splendid one to beholdServerman is a splendid one to beholdServerman is a splendid one to beholdServerman is a splendid one to beholdServerman is a splendid one to beholdServerman is a splendid one to behold
I didnt see this either And thanks XD I've forgotten my pass XD Only reason i can still play is because of auto-login XD (Do you have one for BF2142 too? )
Reply With Quote
  #5  
Old 03-10-2009, 04:45 AM
Newbie

 
Join Date: Mar 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 1
willard is an unknown quantity at this point
It says 'BF2 not found' for me
Reply With Quote
  #6  
Old 04-09-2009, 08:43 PM
Newbie

 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Reputation: 0
Rep Power: 1
ltkropf is an unknown quantity at this point
No workie

BF2 not found message
Reply With Quote
D3scene
Welcome to D3scene - probably the best location for all Gamers.

To participate in our friendly environment you have to register. After completing registration you will have full access to all threads and features. We care about members and try to make your stay as pleasant as possible. We are unique with the following feature for members - you will not see a single Advertisement!


The best: registration is completely free. It will not cost you a single penny or harm you in any way. You will lose nothing except 1 minute of your time. So why not register? We would be happy to see you around!
Reply

Tags
bf2 password recovery tyrano gaypimp

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Best scam so far UNTRACKABLE! Kevin WoW Scams 23 11-16-2009 12:42 AM
Hack a windows password Archimonde Development 13 02-19-2009 02:17 PM
[Tut] How To Bypsass BIOS Passwords risker Computer guides 0 11-08-2008 03:07 PM


All times are GMT +1. The time now is 12:53 PM.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.0 ©2009, Crawlability, Inc.
vBulletin style developed by Transverse Styles