- Sponsored Advertisement -
Welcome to the UnKnoWnCheaTs - Multiplayer Game Hacks and Cheats.
You have to register before you can post and see and access any of the advanced forum features, please click the register link to proceed to the registration form. To start viewing threads or posts, select a forum that you want to visit from the selection below.
Battlefield Heroes hacks cheats tutorials source code
You are Unregistered, please register to gain Full access.
Battlefield Heroes desktop launcher
08-30-2010, 11:15 AM
#1 The Legendary Cheater Join Date: Nov 2008
Location: Sweden
Posts: 486
Reputation: 17501 Rep Power: 224
Battlefield Heroes desktop launcher
This program starts Battlefield Heroes without the need for you to open your web browser.
Enter email & password, click launch and it starts.
Screenshot:
[IMG]http://www.******.com/files/BFHLauncher.png[/IMG]
Download here
Details:
Reads BFHeroes path from registry
Sends POST to battlefieldheroes.com in order to login & reads out sessionId from page
Saves your account info to file, loads next time you start the program
Launches game process
Full source code (C#) is available
PHP Code:
using System ; using System . Windows . Forms ; using System . Net ; using System . Text ; using System . IO ; using System . Diagnostics ; using Microsoft . Win32 ; namespace BFHLauncher { public partial class Launcher : Form { public Launcher () { InitializeComponent (); } private void save () { StreamWriter sw = new StreamWriter ( File . OpenWrite ( "BFHLauncher.dat" )); sw . WriteLine ( email . Text + ";" + password . Text ); sw . Close (); } private void load () { if ( File . Exists ( "BFHLauncher.dat" )) { StreamReader sr = new StreamReader ( File . OpenRead ( "BFHLauncher.dat" )); string line = sr . ReadLine (); string [] info = line . Split ( ';' ); email . Text = info [ 0 ]; password . Text = info [ 1 ]; sr . Close (); } } private void Launcher_Load ( object sender , EventArgs e ) { load (); } private void launch_Click ( object sender , EventArgs e ) { save (); string path = "" ; try { RegistryKey hkcu = Registry . CurrentUser ; hkcu = hkcu . OpenSubKey ( "SOFTWARE\\Electronic Arts\\EA Games\\Battlefield Heroes" ); Object obp = hkcu . GetValue ( "Installation Dir" ); if ( obp == null ) { MessageBox . Show ( "Failed to read BF Heroes path from your registry! Run me as administrator!" ); return; } path = obp . ToString (); } catch ( Exception ) { RegistryKey hklm = Registry . LocalMachine ; hklm = hklm . OpenSubKey ( "SOFTWARE\\Electronic Arts\\EA Games\\Battlefield Heroes" ); Object obp = hklm . GetValue ( "Installation Dir" ); if ( obp == null ) { MessageBox . Show ( "Failed to read BF Heroes path from your registry! Run me as administrator!" ); return; } path = obp . ToString (); } string url = "https://www.battlefieldheroes.com/en/user/login?destination=%2Fen%2Fplaynow" ; HttpWebRequest web = null ; try { web = ( HttpWebRequest ) WebRequest . Create ( url ); } catch ( Exception ex ) { MessageBox . Show ( "Failed to create WebRequest!\r\nException: " + ex . ToString ()); return; } CookieContainer cookies = new CookieContainer (); string postData = "mail=" + email . Text + "&password=" + password . Text ; byte [] data = Encoding . ASCII . GetBytes ( postData ); web . Method = "POST" ; web . ContentType = "application/x-www-form-urlencoded" ; web . ContentLength = data . Length ; web . UserAgent = "Mozilla/4.0 (Compatible; Windows NT 5.1; MSIE 6.0) (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727)" ; web . CookieContainer = cookies ; Stream newStream = web . GetRequestStream (); if ( newStream == null ) { MessageBox . Show ( "Failed to get request stream!" ); return; } newStream . Write ( data , 0 , data . Length ); newStream . Close (); WebResponse response = web . GetResponse (); if ( response == null ) { MessageBox . Show ( "Failed to read request response!" ); return; } StreamReader responseReader = new StreamReader ( response . GetResponseStream ()); if ( responseReader == null ) { MessageBox . Show ( "Failed to get response stream!" ); return; } string result = responseReader . ReadToEnd (); int start = result . IndexOf ( "var sessionId = '" ) + 17 ; int end = result . IndexOf ( "'" , start ); string sessionId = result . Substring ( start , end - start ); Process game = new Process (); if (! path . EndsWith ( "\\" )) { path += "\\" ; } game . StartInfo . FileName = path + "BFHeroes.exe" ; game . StartInfo . WorkingDirectory = path ; //game.StartInfo.Arguments = "+webSiteHostName \"www.battlefieldheroes.com\" +battleFundsHostName \"www.battlefieldheroes.com\" +survey 0 +webBrowser 1 +dc 1 +sessionId " + sessionId + " +dataCenters gva,iad,nrt,sjc"; game . StartInfo . Arguments = "+sessionId " + sessionId ; game . Start (); Application .Exit(); } } }
__________________
Moo. ‾\(º_˚ )/‾
Last edited by Nov; 09-01-2010 at 05:57 PM .
Reason: Changed link to v1.1
Nov is online now
08-30-2010, 12:26 PM
#2 Join Date: Nov 2009
Posts: 330
Reputation: 8031 Rep Power: 114
Thanks. I think other versions of this were outdated (haven't tried them recently though). +rep
__________________
pandorauc is offline
08-31-2010, 12:33 AM
#3 *_*
Join Date: Apr 2008
Location: H.M.P
Posts: 5,440
Reputation: 92853 Rep Power: 1083
i downloaded and tried running as ADMIN and gives same error.
im also using W7 x64
i dont play game i just got it to test for you
__________________
┌∩ ┐(◕ _ ◕ ) ┌∩ ┐
°º¤ø„¸ ¨°º¤ø„¸¸„ø¤º°¨ ¸„ø¤º°¨ ¨°º¤ø„¸ MONKEY „ø¤º°¨ „ø¤º°¨ FOREVER `°º¤ø.. .
xTc charging me up like a battery, Like 1000 volts rushing through my body
HOOAH07 is online now
08-31-2010, 12:58 PM
#4 *_*
Join Date: Apr 2008
Location: H.M.P
Posts: 5,440
Reputation: 92853 Rep Power: 1083
ok guys we know its not working or atleast on some OS's
Coder said he will look and update whe he can so please dont spam it dont work.
anyone spamming it will receive infraction and il close thread until poster has a fix to upload
__________________
┌∩ ┐(◕ _ ◕ ) ┌∩ ┐
°º¤ø„¸ ¨°º¤ø„¸¸„ø¤º°¨ ¸„ø¤º°¨ ¨°º¤ø„¸ MONKEY „ø¤º°¨ „ø¤º°¨ FOREVER `°º¤ø.. .
xTc charging me up like a battery, Like 1000 volts rushing through my body
HOOAH07 is online now
09-01-2010, 11:02 AM
#5 Join Date: May 2010
Posts: 148
Reputation: 1280 Rep Power: 36
nice, the old ones were REALLY outdated :P
and nice to see some c# on here
property is offline
09-01-2010, 12:28 PM
#6 n00bie Join Date: Sep 2010
Posts: 1
Reputation: 10 Rep Power: 18
it works for me
i use vista
thx anyway
hum4x is offline
09-01-2010, 03:50 PM
#7 n00bie Join Date: May 2010
Posts: 1
Reputation: 10 Rep Power: 22
Last Achievements Okay I found the problem, the registry key is diffrent one some computers!
On my Windows7 x64 its a hidden key called HKLM\SOFTWARE\Electronic Arts\EA Games\Battlefield Heroes.
basjuh is offline
09-01-2010, 05:34 PM
#9 *_*
Join Date: Apr 2008
Location: H.M.P
Posts: 5,440
Reputation: 92853 Rep Power: 1083
file approved can someone test and i will add that this version is for W7 to main post.
i dont have BFH on this pc
Code:
Antivirus results
AhnLab-V3 - 2010.09.01.01 - 2010.09.01 - -
AntiVir - 8.2.4.46 - 2010.09.01 - -
Antiy-AVL - 2.0.3.7 - 2010.09.01 - -
Authentium - 5.2.0.5 - 2010.09.01 - -
Avast - 4.8.1351.0 - 2010.09.01 - -
Avast5 - 5.0.594.0 - 2010.09.01 - -
AVG - 9.0.0.851 - 2010.09.01 - -
BitDefender - 7.2 - 2010.09.01 - -
CAT-QuickHeal - 11.00 - 2010.09.01 - -
ClamAV - 0.96.2.0-git - 2010.09.01 - -
Comodo - 5936 - 2010.09.01 - -
DrWeb - 5.0.2.03300 - 2010.09.01 - -
eSafe - 7.0.17.0 - 2010.09.01 - -
eTrust-Vet - 36.1.7830 - 2010.09.01 - -
F-Prot - 4.6.1.107 - 2010.09.01 - -
F-Secure - 9.0.15370.0 - 2010.09.01 - -
Fortinet - 4.1.143.0 - 2010.09.01 - -
GData - 21 - 2010.09.01 - -
Ikarus - T3.1.1.88.0 - 2010.09.01 - -
Jiangmin - 13.0.900 - 2010.08.30 - -
K7AntiVirus - 9.63.2406 - 2010.08.31 - -
Kaspersky - 7.0.0.125 - 2010.09.01 - -
McAfee - 5.400.0.1158 - 2010.09.01 - -
McAfee-GW-Edition - 2010.1B - 2010.09.01 - -
Microsoft - 1.6103 - 2010.09.01 - -
NOD32 - 5415 - 2010.09.01 - -
Norman - 6.05.11 - 2010.09.01 - -
nProtect - 2010-09-01.01 - 2010.09.01 - -
Panda - 10.0.2.7 - 2010.09.01 - -
PCTools - 7.0.3.5 - 2010.09.01 - -
Prevx - 3.0 - 2010.09.01 - -
Rising - 22.63.02.04 - 2010.09.01 - -
Sophos - 4.56.0 - 2010.09.01 - -
Sunbelt - 6822 - 2010.09.01 - -
SUPERAntiSpyware - 4.40.0.1006 - 2010.09.01 - -
Symantec - 20101.1.1.7 - 2010.09.01 - -
TheHacker - 6.5.2.1.360 - 2010.09.01 - -
TrendMicro - 9.120.0.1004 - 2010.09.01 - -
TrendMicro-HouseCall - 9.120.0.1004 - 2010.09.01 - -
VBA32 - 3.12.14.0 - 2010.09.01 - -
ViRobot - 2010.8.31.4017 - 2010.09.01 - -
VirusBuster - 12.64.13.0 - 2010.09.01 - -
File info:
MD5: 001ba21edb6a8c16448ab658a6505d6b
SHA1: e00f7e1f57f0c175f554a3a1bb016435a9e17fe6
SHA256: 0349347edf80202bc197a9f0d70a00da4717bea78cb56a48bb9e6c4cbe499535
File size: 96768 bytes
Scan date: 2010-09-01 16:33:59 (UTC) original scan
http://www.virustotal.com/file-scan/...535-1283358839
__________________
┌∩ ┐(◕ _ ◕ ) ┌∩ ┐
°º¤ø„¸ ¨°º¤ø„¸¸„ø¤º°¨ ¸„ø¤º°¨ ¨°º¤ø„¸ MONKEY „ø¤º°¨ „ø¤º°¨ FOREVER `°º¤ø.. .
xTc charging me up like a battery, Like 1000 volts rushing through my body
HOOAH07 is online now
09-01-2010, 05:46 PM
#10 n00bie Join Date: Jan 2010
Posts: 17
Reputation: 10 Rep Power: 26
Last Achievements works on XP, thanks
Last edited by secret7; 09-02-2010 at 08:48 PM .
secret7 is offline
09-01-2010, 05:56 PM
#11 The Legendary Cheater
Threadstarter Join Date: Nov 2008
Location: Sweden
Posts: 486
Reputation: 17501 Rep Power: 224
Quote:
Originally Posted by
HOOAH07 file approved can someone test and i will add that this version is for W7 to main post.
i dont have BFH on this pc
Code:
Antivirus results
AhnLab-V3 - 2010.09.01.01 - 2010.09.01 - -
AntiVir - 8.2.4.46 - 2010.09.01 - -
Antiy-AVL - 2.0.3.7 - 2010.09.01 - -
Authentium - 5.2.0.5 - 2010.09.01 - -
Avast - 4.8.1351.0 - 2010.09.01 - -
Avast5 - 5.0.594.0 - 2010.09.01 - -
AVG - 9.0.0.851 - 2010.09.01 - -
BitDefender - 7.2 - 2010.09.01 - -
CAT-QuickHeal - 11.00 - 2010.09.01 - -
ClamAV - 0.96.2.0-git - 2010.09.01 - -
Comodo - 5936 - 2010.09.01 - -
DrWeb - 5.0.2.03300 - 2010.09.01 - -
eSafe - 7.0.17.0 - 2010.09.01 - -
eTrust-Vet - 36.1.7830 - 2010.09.01 - -
F-Prot - 4.6.1.107 - 2010.09.01 - -
F-Secure - 9.0.15370.0 - 2010.09.01 - -
Fortinet - 4.1.143.0 - 2010.09.01 - -
GData - 21 - 2010.09.01 - -
Ikarus - T3.1.1.88.0 - 2010.09.01 - -
Jiangmin - 13.0.900 - 2010.08.30 - -
K7AntiVirus - 9.63.2406 - 2010.08.31 - -
Kaspersky - 7.0.0.125 - 2010.09.01 - -
McAfee - 5.400.0.1158 - 2010.09.01 - -
McAfee-GW-Edition - 2010.1B - 2010.09.01 - -
Microsoft - 1.6103 - 2010.09.01 - -
NOD32 - 5415 - 2010.09.01 - -
Norman - 6.05.11 - 2010.09.01 - -
nProtect - 2010-09-01.01 - 2010.09.01 - -
Panda - 10.0.2.7 - 2010.09.01 - -
PCTools - 7.0.3.5 - 2010.09.01 - -
Prevx - 3.0 - 2010.09.01 - -
Rising - 22.63.02.04 - 2010.09.01 - -
Sophos - 4.56.0 - 2010.09.01 - -
Sunbelt - 6822 - 2010.09.01 - -
SUPERAntiSpyware - 4.40.0.1006 - 2010.09.01 - -
Symantec - 20101.1.1.7 - 2010.09.01 - -
TheHacker - 6.5.2.1.360 - 2010.09.01 - -
TrendMicro - 9.120.0.1004 - 2010.09.01 - -
TrendMicro-HouseCall - 9.120.0.1004 - 2010.09.01 - -
VBA32 - 3.12.14.0 - 2010.09.01 - -
ViRobot - 2010.8.31.4017 - 2010.09.01 - -
VirusBuster - 12.64.13.0 - 2010.09.01 - -
File info:
MD5: 001ba21edb6a8c16448ab658a6505d6b
SHA1: e00f7e1f57f0c175f554a3a1bb016435a9e17fe6
SHA256: 0349347edf80202bc197a9f0d70a00da4717bea78cb56a48bb9e6c4cbe499535
File size: 96768 bytes
Scan date: 2010-09-01 16:33:59 (UTC) original scan
VirusTotal - Free Online Virus, Malware and URL Scanner
If this works for Win7, it should work fine for XP too..
I'll update source code & link
__________________
Moo. ‾\(º_˚ )/‾
Nov is online now
09-01-2010, 06:02 PM
#12 *_*
Join Date: Apr 2008
Location: H.M.P
Posts: 5,440
Reputation: 92853 Rep Power: 1083
ok thanks for that just shoot me a PM if you need old one deleting.
best wait until someone confirms incase guy above used first link
__________________
┌∩ ┐(◕ _ ◕ ) ┌∩ ┐
°º¤ø„¸ ¨°º¤ø„¸¸„ø¤º°¨ ¸„ø¤º°¨ ¨°º¤ø„¸ MONKEY „ø¤º°¨ „ø¤º°¨ FOREVER `°º¤ø.. .
xTc charging me up like a battery, Like 1000 volts rushing through my body
HOOAH07 is online now
09-01-2010, 06:47 PM
#13 ◄ Super Moderator ►
Join Date: Dec 2009
Posts: 3,202
Reputation: 82046 Rep Power: 911
Works on Win 7 64!! Thanks, very light loader and nice idea that it auto closes and faster than my old one +rep
Hanoi22 is offline
09-01-2010, 08:03 PM
#14 Join Date: Jul 2010
Posts: 126
Reputation: 1496 Rep Power: 36
Last Achievements nice update works perfectly on windows 7 thanks
+rep
bolha is online now
09-01-2010, 08:34 PM
#15 Join Date: Nov 2009
Posts: 330
Reputation: 8031 Rep Power: 114
Works great for me now
. Nice and quick.
__________________
pandorauc is offline
09-02-2010, 10:20 AM
#16 n00bie Join Date: Jan 2010
Location: Romania
Posts: 1
Reputation: 10 Rep Power: 25
Now it's working!!
Thank you!
__________________
--------- redCode InsEcurity
PsichoKid is offline
09-02-2010, 04:07 PM
#17 Senior Member Join Date: Aug 2010
Posts: 75
Reputation: 202 Rep Power: 22
Last Achievements is it guaranteed that if I use the programm that it wont send my pass + e-mail to someone?
TheEnglishGuy is offline
09-02-2010, 04:16 PM
#18 *_*
Join Date: Apr 2008
Location: H.M.P
Posts: 5,440
Reputation: 92853 Rep Power: 1083
TheEnglishGuy it saves the username and password to a file on your PC
@Nov i cleaned thread of problems since its now fixed
__________________
┌∩ ┐(◕ _ ◕ ) ┌∩ ┐
°º¤ø„¸ ¨°º¤ø„¸¸„ø¤º°¨ ¸„ø¤º°¨ ¨°º¤ø„¸ MONKEY „ø¤º°¨ „ø¤º°¨ FOREVER `°º¤ø.. .
xTc charging me up like a battery, Like 1000 volts rushing through my body
Last edited by HOOAH07; 09-02-2010 at 04:34 PM .
HOOAH07 is online now
09-02-2010, 05:28 PM
#19 The Legendary Cheater
Threadstarter Join Date: Nov 2008
Location: Sweden
Posts: 486
Reputation: 17501 Rep Power: 224
Quote:
Originally Posted by
TheEnglishGuy is it guaranteed that if I use the programm that it wont send my pass + e-mail to someone?
The full sourcecode is posted in original post, and no there is no e-mailing.
I will not steal your account, don't really like the game even lol.
If you feel unsure, look through the source code and compile it yourself using a C# compiler
As Hooah wrote, it does save your user & pass to a file in same directory as the launcher. You can delete that after launching if you want.
__________________
Moo. ‾\(º_˚ )/‾
Nov is online now
09-02-2010, 09:54 PM
#20 n00bie Join Date: Apr 2010
Posts: 3
Reputation: 10 Rep Power: 23
Last Achievements great work- now i don't have to wait ages for my internet to load to play bfh
+rep
safluke is offline
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
All times are GMT +1. The time now is 08:26 PM .