PDA

View Full Version : unlocking weapons and ranks


mikeandpop
29th June 2005, 00:08
Locate the file "unlocks.py" located in <Drive Letter>Program Files\EA
GAMES\Battlefield 2\python\bf2\stats , and open "unlocks.py" with Notepad.

Now you should see a whole bunch of codes. Press CTRL+F and find the word "defaultunlocks".

this should highlight the line of code

defaultUnlocks = [0, 0, 0, 0, 0, 0, 0]

change all the "0"s to "1"s, so it looks like

defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]

then save



this did work at my friends house. just felt like posting it. u need 2 b on a server that unlocks

Judas989
29th June 2005, 00:27
What rank does this put one at? Does it unlock ALL the weapons?

johnjay
29th June 2005, 00:36
do this work on multiplayer ????

_talon
29th June 2005, 00:41
lol wont work LMFAO


ALL SERVERS ARE PURE

mikeandpop
29th June 2005, 00:43
I wont know all thses answers till tomarrow when i go back to my friends house. Multiplayer yes as i said u "need 2 b on a server that unlocks". I dont have the game yet but i belive it unlocks all weapons.

PizzaPan
29th June 2005, 01:14
There is ways of unlocking weapons directly from the server without even playing 1 minutes worth hehe :D

CaptainCox
29th June 2005, 01:48
Maaan, at least give us somet to go on here (wink wink) ;)

*MAFIA* Brick
29th June 2005, 03:14
this does work BUT! you also have to change one more line in that same file!

kitUnlocks = [1, 1, 1, 1, 1, 1, 1]


BF2 Owner/Admin 70.84.181.230:16667 *MAFIA* Cracked Modded NO RULES

brim
29th June 2005, 03:22
The last part seems to have worked for me. :eek:

Silent Hunter
29th June 2005, 07:15
i did both of those

defaultUnlocks = [1, 1, 1, 1, 1, 1, 1]

&

kitUnlocks = [1, 1, 1, 1, 1, 1, 1]

but it doesnt work in multiplayer ranked servers lol

Edit: this works in singleplayer maps however ... it lets you play with all unlocked weapons in singleplayer

PizzaPan
29th June 2005, 07:26
the way i was talking about, works on all global servers, and is very easy to do, hint look for ".aspx" and work from there :)

mantacore
29th June 2005, 08:09
were are we searching for this aspx?

Spontaneous
29th June 2005, 15:51
.aspx? Why the hell would a game have a .Net Active Server Page? It wouldnt.

PizzaPan
29th June 2005, 17:35
*g* i wonder where, try the .exe ? or the dedicated server .exe ? kthnx

Castro
29th June 2005, 18:13
the server has to have the unlock weapons on and than u can join and use the weapon menu to pick the other weapons

ATI9800Pro
30th June 2005, 05:37
So does with work say if i join a random unranked server? Will i have all the weapons at my disposal?

PizzaPan
30th June 2005, 06:23
pathetic is the only word i can use, i gave here the greatest hint, to fully unlock all the weapons, legit no less, to work without editing any files, and nobody did it yet :)

keep chuggin.

Spontaneous
30th June 2005, 16:03
PizzaPan, dont be giving us this crap. Active Server Pages require a web server to even work. The game does not have one built in. So .aspx files would be pretty useless. Ether give more info or quit acting like you know. Gee 10 posts and banned from the arcade, how much creditbility is there really.

Sparten
30th June 2005, 16:08
Spont, it sure sounds like you need to take a look around the communety if you dont know who PizzaPan is.

wakko
30th June 2005, 16:24
lol he helped with alot of CSS hacks :hurt:

CaptainCox
30th June 2005, 16:32
Text strings referenced in BF2:.text, item xxxx
Address=xxxxxxxx
Disassembly=PUSH BF2.xxxxxxxx
Text string=ASCII "selectunlock.aspx?pid="

Text strings referenced in BF2:.text, item xxxx
Address=xxxxxxx
Disassembly=PUSH BF2.xxxxxxxx
Text string=ASCII "getunlocksinfo.aspx?pid="


Text strings referenced in BF2:.text, item xxxx
Address=xxxxxxx
Disassembly=PUSH BF2.xxxxxxx
Text string=ASCII "getunlocksinfo.aspx?pid="


From Olly ;)

BoBaLLoOo
30th June 2005, 18:09
"stage-net.gamespy.com/bf2/getunlocksinfo.aspx" (getplayerinfo,getrewardsinfo,selectunlocks,...tho se are all there too) inside the exe it points to those locations for info for the player. now if u go to that site it exists but youll have problems, use "https://stage02.gamespy.com/BF2/*****.aspx" and youll get a login prompt.

PizzaPan
30th June 2005, 18:51
Spontaneous, from here on out, anything said just ignore, you seem like a nasty person, and you didnt even make the thread, so it shouldnt concern you.


To the rest: Great :D getting there now, please set a breakpoint on them all, (not just the one Capt Cox Posted) because the url you can clearly see its useless, then login to your account, you will get a hit on the break and see the real url, and your should get your own pid, like blah.aspx? pid=blah

Ill go further, once somebody posts the real url :)

caliber1942
30th June 2005, 18:59
nice work PizzaPan. i'll look into this further once i have more time for it-

chilli
30th June 2005, 19:03
well it prompts for login but when i enter my gamespy id and pw it does nothing..

PizzaPan
30th June 2005, 19:07
chilli, please re-read, that url its useless, you need to find the real one by setting a breakpoint on all the instences of .aspx

chilli
30th June 2005, 19:17
ok ive set breakpoint on all instances.. it breaks on exceptions, i pass them, i keep pressing "run" then at the end, on bf2 window i get login failed check your network...

BoBaLLoOo
30th June 2005, 19:30
pizza what app are u usin to edit the exe jw

CaptainCox
30th June 2005, 21:32
ok ive set breakpoint on all instances.. it breaks on exceptions, i pass them, i keep pressing "run" then at the end, on bf2 window i get login failed check your network...

Are you using IsDebugPresent Hide in OLLY?

chilli
30th June 2005, 21:40
yea i do

CaptainCox
30th June 2005, 21:48
Hmmm ok, couse it workes for me NP, Thing is i am still trying to figgure this, havent done BPing in OLLY for a Looooooooooong time, getting in to it now though.

Are you using that other exe ;) when doing this, you probably are, just checking :)

chilli
1st July 2005, 02:17
yep i am ;)

mojo69
1st July 2005, 04:01
Never done it before, but I will try as well. I got Olly and have been playing with it. Also sniffing network traffic.

EDIT

http://bf2web.gamespy.com/asp/ is the URL, I believe I also found my PID.

EDIT 2:
http://bf2web.gamespy.com/ASP/getunlocksinfo.aspx?pid=XXXXXXX

Enter your own PID, and it spits some code out.

EDIT 3:

More intersting stuff:
http://bf2web.gamespy.com/testframework/

Tap
1st July 2005, 04:30
Never done it before, but I will try as well. I got Olly and have been playing with it. Also sniffing network traffic.

EDIT

http://bf2web.gamespy.com/asp/ is the URL, I believe I also found my PID.

EDIT 2:
http://bf2web.gamespy.com/ASP/getunlocksinfo.aspx?pid=XXXXXXX

Enter your own PID, and it spits some code out.

EDIT 3:

More intersting stuff:
http://bf2web.gamespy.com/testframework/

Check these places too..

http://bf2stats.ausgamers.com/

http://65.254.53.148/bf2/Bf2View.cgi

Might help in decoding what the output means.

Tap

PizzaPan
1st July 2005, 05:24
yep i am ;)

Never done it before, but I will try as well. I got Olly and have been playing with it. Also sniffing network traffic.

EDIT

http://bf2web.gamespy.com/asp/ is the URL, I believe I also found my PID.

EDIT 2:
http://bf2web.gamespy.com/ASP/getunlocksinfo.aspx?pid=XXXXXXX

Enter your own PID, and it spits some code out.

EDIT 3:

More intersting stuff:
http://bf2web.gamespy.com/testframework/


Yay, finally :) the one you want is: selectunlock.aspx?pid=PID&id=11 + selectunlock.aspx?pid=PID&id=22 + selectunlock.aspx?pid=PID&id=33
up to 88, or 99 i forget :)

enjoy.

Spontaneous
1st July 2005, 06:22
You will see how useless this is in the future. I happen to know that gamespy logs the connections to their servers and if your using a BROWSER, you can expect your IP to stick out in the logs, which most likely will lead to stats being reset. So have fun.

deoFusion
1st July 2005, 07:42
my god, it unlocked another weapon !!!!

no shit, im serious.

edit: i hope i dont get my stats reset, i dont mind if the get rid of the unlocked weapons. Also, i found out the http://bf2web.gamespy.com/testframework site, by using a packet logger, on the demo. If you really want proof that i did, you would know the the password is sent in plain-text :x

PizzaPan
1st July 2005, 08:38
Spont, who cares half the fun is discovering the stuff, let them reset, its not like we lost anything, and it can be done thru the game its self too, so they cant detect shit anyways.

My571k
1st July 2005, 09:28
PizzaPan, can you please remove those urls about how to unlock the weapons? It gives people a unfair advantage over another. If they want to find it otu so badly, let them do it themselves. Please?

PizzaPan
1st July 2005, 09:45
well, i didnt post the urls, but unfair advantage ? you do realize which board you are on right ? :P

My571k
1st July 2005, 10:15
lol well yes i do know. but battlefield 2 is a new game. dont ruin it when it just came out. I mean cmon. liek after a few days, theres already hacks? I really see no point of hakcs. I mean you can make peopel so pissed off wihtout hacks. My wya of doing it is get in a jeep, then run over your teammates. Gets theom pissed becasue htey cant kill you nomatter what. Make sure hte tk and team vehicle damage is off.

Maz31337
1st July 2005, 10:23
soo... how do you find out your PID?

Sparten
1st July 2005, 10:28
lol well yes i do know. but battlefield 2 is a new game. dont ruin it when it just came out. I mean cmon. liek after a few days, theres already hacks? I really see no point of hakcs.

Then why the **** are you here. this place is ALL about hacking/cheating, if you dont like it please leave.

My571k
1st July 2005, 10:31
im liek hacking in cs :) piss peopel off

soo... how do you find out your PID?


http://bf2stats.ausgamers.com/

CaptainCox
1st July 2005, 10:48
lol well yes i do know. but battlefield 2 is a new game. dont ruin it when it just came out. I mean cmon. liek after a few days, theres already hacks? I really see no point of hakcs. I mean you can make peopel so pissed off wihtout hacks. My wya of doing it is get in a jeep, then run over your teammates. Gets theom pissed becasue htey cant kill you nomatter what. Make sure hte tk and team vehicle damage is off.
I feel like pissing you off mate I realy do after a comment like that (gritting my theeth)
HA HA, you clown just go back to friggin CS and TK some team mates then.
And you say you dont like hacks but you like to drive your team mates over with a friggin JEEP, you have a serious problem man go see a specialist, but do it out of this forum.

PS Hats of for Mojo and Pizza Pan;)

muhko
1st July 2005, 12:55
Stunning - simply stunning.

Thanx Pizzapan for sharing despite "some" people slating you.

puremix
1st July 2005, 13:29
Thanks Piz!

[XEF]Leg@liz
1st July 2005, 13:32
Can you make a summary of the easy way because I did not include/understand his operation?

G:\Program Files\EA GAMES\Battlefield 2 Demo\python\bf2\stats\unlocks.py ?
This file ? Who is .aspx ?

chilli
1st July 2005, 13:38
thanks for sharing pizzapan. even if we know they gonna fix it and kill us for that, you helpt this forum far more than others could have done. now no more ranked shit, time to play on non ranked server with global unlocks on. :)

johnjay
1st July 2005, 13:41
ok now for a super noob

do i have to edit the bf2.exe with olly to get the unlocked weapon ??

cuz pizzapan wrote at the beginning of the topic, u dont have to edit a file to unlock any weapon



edit:

ok also the supernoob like me understand it !!!!!!!!!!!! :classic: :classic: :P

thnx !!! well done

echt fett !!!!!

chilli
1st July 2005, 13:49
read the thread post by post its very clear.

[XEF]Leg@liz
1st July 2005, 14:17
Lol sorry i am french, i speak no good englisch.

I have setting modified G:\Program Files\EA GAMES\Battlefield 2 Demo\python\bf2\stats\unlocks.py

unlock weapon ok 1,1,1,1,1,1... and ?

mojo69
2nd July 2005, 01:06
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=11
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=22
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=33
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=44
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=55
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=66
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=77
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=88
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=99

You have to replace the XXXXXXX with your PID. You can get it from bf2stats.ausgamers.com/

After you do it, log in to BF2 and you will have all the unlocks.

Confirmed it does work. Glad I sniffed the packets to find the URL so you would tell us Piz.

p3n1
2nd July 2005, 01:21
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=11
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=22
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=33
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=44
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=55
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=66
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=77
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=88
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=99

You have to replace the XXXXXXX with your PID. You can get it from bf2stats.ausgamers.com/

After you do it, log in to BF2 and you will have all the unlocks.

Confirmed it does work. Glad I sniffed the packets to find the URL so you would tell us Piz.

nice work @alltogether
but i doubt it will last that long, cause this is *serious* cheating ;)
maybe one should only click one link per day, maybe it will last longer :P

7evo
2nd July 2005, 01:47
You will see how useless this is in the future. I happen to know that gamespy logs the connections to their servers and if your using a BROWSER, you can expect your IP to stick out in the logs, which most likely will lead to stats being reset. So have fun.

Wow, still always have to bring others down... hmm i think we know it can log Ip's and who cares if it resets.. what is funny is how you always bring others down when you dont come up with it.. you have done this since day one as a mod.

anyways, nice work gents it is good to see people having fun on these boards again and seeing stuff being figured out.

7evo

p3n1
2nd July 2005, 01:58
Wow, still always have to bring others down... hmm i think we know it can log Ip's and who cares if it resets.. what is funny is how you always bring others down when you dont come up with it.. you have done this since day one as a mod.
anyways, nice work gents it is good to see people having fun on these boards again and seeing stuff being figured out.
7evo
1) i don't get ur point
2) i doubt you can say something like that having a join date younger than two weeks and 5 posts at all

EDIT: I saw, you have just rejoined... i'll put it in spon's hands, to deal with that. but i don't understand ur post, why "he brings others down". down to where?
- can't you say such l4m3 things via pm? sorry i forgot, you just have 5 posts, but need 15 to pm :P

Maz31337
2nd July 2005, 02:39
bf2stats.ausgamers.com is now showing this : Sorry! This is down while we sort out some capacity issues.

any other way to find the PID?

mojo69
2nd July 2005, 02:43
http://65.254.53.148/bf2/Bf2View.cgi

Scroll down and it will have the PID in there

Batleth
2nd July 2005, 02:57
7evo you have the same avatar as am0k from the official boards :D

Spontaneous
2nd July 2005, 03:09
A lot of people care of stats being reset, you might not however. Do you really think it would be hard for them to monitor who did this? Think about this, the guns are really unlocked by stats. So all they would have to do write a script that goes through the database, comparing your stats to unlocked weapons and reset the stats or even lock out the account all together. If EA really got pissed enough, they could contact PB to take even futher action, seeing as EA pays PB.

And please dont act like I never did anything for this community. I released pb proof hacks for about 6 monthes, the longest someone has released PB proof hacks in the BF series.

redrum11
2nd July 2005, 05:12
A lot of people care of stats being reset, you might not however. Do you really think it would be hard for them to monitor who did this? Think about this, the guns are really unlocked by stats. So all they would have to do write a script that goes through the database, comparing your stats to unlocked weapons and reset the stats or even lock out the account all together. If EA really got pissed enough, they could contact PB to take even futher action, seeing as EA pays PB.

And please dont act like I never did anything for this community. I released pb proof hacks for about 6 monthes, the longest someone has released PB proof hacks in the BF series.
wat do i do with my pid can u help me? :smoker:

7evo
2nd July 2005, 06:16
And please dont act like I never did anything for this community. I released pb proof hacks for about 6 monthes, the longest someone has released PB proof hacks in the BF series.

Never said you didnt contribute.. you have, and those who used your script/ hack did appreciate it.. all i was was saying was i think people understand the risks and we dont need to beat a dead horse or the person who finds the source.. remember when PB dodging hacks weren't allowed on this board and how we all went round and round about that .. hell now look.. I know your just looking out for the good of the noob, i guess it just sounded degrading to pizza that is all.

1) i don't get ur point
2) i doubt you can say something like that having a join date younger than two weeks and 5 posts at all

EDIT: I saw, you have just rejoined... i'll put it in spon's hands, to deal with that. but i don't understand ur post, why "he brings others down". down to where?
- can't you say such l4m3 things via pm? sorry i forgot, you just have 5 posts, but need 15 to pm :P

To P3n1s.. or how ever you say your name.. dude i was around these boards while you were bangin around in your dad's nuts... I was here when spont and caliber got promoted to mods at the same time and when Dr Kenneth was releasing the hacks and still making tuts and we all learned from his and the ol Nop and used max powers template ( maybe that brings some smiles to some of your faces ;) .. that was a long time ago ).. .. . So, enough with your 100 something posts... Also, your leet talk is annoying.

regards

CaptainCox
2nd July 2005, 07:54
Ok guys, we are slowly drifting in to an area of conversation we should not realy be heading. Please stay on topic....@ all, cool it abit.

LordHamster
2nd July 2005, 09:27
I see sponts point, but I mean how would they reset or ban people? I mean theoretically, someone could go through the list of topranked players or something or posters to forums and simply do the PID thing on all of them. Would they ban all those potentially innocent players, especially those top ranked with 12000+pts?

Sure it is easy to spot with logs who was done, but again... since anyone can do it, punishment will be a delicate issue.

mojo69
2nd July 2005, 15:18
Isn't it obvious that when cheating in a video game, there is inherent risk? Your stats may be reset and you may be banned, that is the risk you take. I suggest just using a dummy account if you want the unlocks. Maybe we should delete this thread so that this thing doesn't become widespread.

7evo
2nd July 2005, 15:47
Isn't it obvious that when cheating in a video game, there is inherent risk? Your stats may be reset and you may be banned, that is the risk you take. I suggest just using a dummy account if you want the unlocks. Maybe we should delete this thread so that this thing doesn't become widespread.

I recomend using a nice little thing called a proxy... to help hide your IP when it is logged ;)

yoiu should be surfing with that anyways..

regards

CaptainCox
2nd July 2005, 17:17
Isn't it obvious that when cheating in a video game, there is inherent risk? Your stats may be reset and you may be banned, that is the risk you take. I suggest just using a dummy account if you want the unlocks. Maybe we should delete this thread so that this thing doesn't become widespread.

Naaa, I think its up to ppl to use stuff as they see fit, Hell everybody should know the risks by know, if they dont I would not actualy pitty them, sounds hard but its like that. If you are into hacking you MUST know what you dealing with here, if not you will learn real fast like ;)

bschott
3rd July 2005, 23:39
My thought is, Screw it, what's $50 really? I'll give this a try and if they ban the account, I'll just buy a new copy....no big deal.

sf99
3rd July 2005, 23:42
This doesn't appear to work anymore. Visited the URL's using my PID and no change in the game.

I don't need to edit the unlocks.py file, right??

bschott
3rd July 2005, 23:53
doesn't work in any browser except IE... tried this in Opra and firefxo, but it wouldn't unlock.. Tried in IE and it worked.

sidezero
4th July 2005, 11:01
Can anyone confirm that this still works? I tried and nothing, my roommate tried and lost his one weapon he did have unlocked. I'm thinking it might be fixed.

CaptainCox
4th July 2005, 11:41
http://www.mpcforum.com/showthread.php?t=97984
I guess its fixed now, and real good to if what your friend says is true.

firefly321
4th July 2005, 11:58
Never said you didnt contribute.. you have, and those who used your script/ hack did appreciate it.. all i was was saying was i think people understand the risks and we dont need to beat a dead horse or the person who finds the source.. remember when PB dodging hacks weren't allowed on this board and how we all went round and round about that .. hell now look.. I know your just looking out for the good of the noob, i guess it just sounded degrading to pizza that is all.



To P3n1s.. or how ever you say your name.. dude i was around these boards while you were bangin around in your dad's nuts... I was here when spont and caliber got promoted to mods at the same time and when Dr Kenneth was releasing the hacks and still making tuts and we all learned from his and the ol Nop and used max powers template ( maybe that brings some smiles to some of your faces ;) .. that was a long time ago ).. .. . So, enough with your 100 something posts... Also, your leet talk is annoying.

regards


hand in hand kameraden

love ur avatar

feyenoord owns

http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=11
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=22
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=33
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=44
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=55
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=66
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=77
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=88
http://bf2web.gamespy.com/asp/selectunlock.aspx?pid=XXXXXXX&id=99

You have to replace the XXXXXXX with your PID. You can get it from bf2stats.ausgamers.com/

After you do it, log in to BF2 and you will have all the unlocks.

Confirmed it does work. Glad I sniffed the packets to find the URL so you would tell us Piz.


are their more ways to find my pid??

when i alt tab is see the bf2 version and a pid 4 numbers is that the good one??

CaptainCox
4th July 2005, 13:22
Nope, the way described by mantacore is the way, but its detected so...

battlefield2pwn
13th July 2005, 17:03
Told a guy he was on my ignore list for spamming a cheat request and got 3 pts. LOL this is too funny. the same guy that started this fire gave me the pts.

I'm still burried in the tuts and lurking but this is too entertaining not to comment on.

\o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/ \o/
l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l l
/ \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \ / \

Looks like a dead thread. I just came looking for pizza

chilli
13th July 2005, 17:08
is there a way to enable unlocks through memory?