BF1942 Demo Server Crashes

Re: BF1942 Demo Server Crashes

Postby tekk » Sat Jul 30, 2011 7:04 pm

Well thanks for that effort of editing my post, in the time it took you to do that you could have answered if this patch method was confirmed to work! Dont forget that at one point in your life you were where I am, lacking the understanding so dont look down on us ppl that are not on your knowledge level yet. Im not a child and I DONT need my posts edited by anyone, All im trying to do is gather some knowledge on this patch so that it can be applied to my favorite DC server ! . Now rather than editing posts and setting them up to make the person look like a idiot, why dont you use your talents and be helpful by explaining where this "bf1942_lnxded.static executable" is located, a file that only the server owners have access to on their end because I dont see it on my end? .

Now if you dont like this post, then carry on what you were doing as It doesnt need to be edited !!
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
tekk
 
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: BF1942 Demo Server Crashes

Postby Jeronimo » Sat Jul 30, 2011 7:24 pm

Chill man! This here could become very interesting for many more people than only you to read, so I thought it shouldnt be cluttered up too much with unnecessary double posts and merged them!

Here's a download for a patched file according to his instructions. Remove the .exe extension after downloading.
http://public.valkyrie-clan.com/bf42/bf1942_lnxded.static.exe

Otherwise go download a hex editor program like UltraEdit (which is NOT free software) and do it yourself.

And NO, I cannot confirm that it works. Maybe you tell us.
Image
Jeronimo
 
Posts: 196
Joined: Sun Dec 27, 2009 8:55 pm
Location: Germany

Re: BF1942 Demo Server Crashes

Postby tekk » Sat Jul 30, 2011 7:31 pm

Ya sorry about that , Just not a fan of having my posts edited. Thanks for the download,I will check it out and test it to see if in fact it works.
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
tekk
 
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: BF1942 Demo Server Crashes

Postby dierighty » Sat Jul 30, 2011 8:57 pm

Here is the patched bf1942_lnxded.static, I used the bf1942_lnxded.static from the bf1942-update-1.61.tar.gz to (RC2).
Here is a list of the md5sum's of b1942_lnxded.static for the various un-modified linux dedicated server versions:
1. Battleifled: 1942 v1.6 Full Server [Linux] RC1
6c6508aae7d61ab7198b78473efd4e18 bf1942_lnxded.static
2. Battlefield: 1942 v1.6 Full Server [Linux] RC2
fca65f65ef1b059fd7af8bb28b9ae7fb bf1942_lnxded.static
3. bf1942-update-1.61.tar.gz to (RC2) <--- This is the one the patch offsets are for
59bc08cae90239eef86830db180ed100 bf1942_lnxded.static

Jeronimo, which version of linux dedicated server is that in your link? I looked at the executable and the offsets are mis-aligned so it'll crash.

The function where the exploit causes an infinite loop was found by running the exploit on the linux server, and then attaching to the bf1942_lnxded.static process with gdb, and using the 'info stack' command. Is there an Ollydbg linux version? that would be awesome.

I tested the patched bf1942_lnxded.static by running the server and then connecting to it with a client and executing the exploit. The server didn't hang and play for the other players who were connected continued normally. Also I tested the patch to see if it caused problems when you run multiple game rounds on the same map, but everything appeared to be normal, and the new round started without hanging or crashing.

I plan on providing the same offset information for the windows dedicated server and the demo server.
dierighty
 
Posts: 11
Joined: Fri Jul 29, 2011 5:38 pm

Re: BF1942 Demo Server Crashes

Postby Player » Sat Jul 30, 2011 9:04 pm

dierighty wrote:I plan on providing the same offset information for the windows dedicated server and the demo server.
Excellent! Thanks, exactly what I was hoping for... Thank You so very much for sharing this!
Player
 
Posts: 28
Joined: Sat Oct 24, 2009 5:06 pm

Re: BF1942 Demo Server Crashes

Postby dierighty » Sat Jul 30, 2011 9:12 pm

Patched server link for the patched-rc2-full-version:
http://yehty.netii.net/dyryty/bf1942_ln ... tch.tar.gz
dierighty
 
Posts: 11
Joined: Fri Jul 29, 2011 5:38 pm

Re: BF1942 Demo Server Crashes

Postby tekk » Sat Jul 30, 2011 9:22 pm

Testing this patch file out on a linux server right now , will post here shortly if it is working , thanks for all your effort dierighty!
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
tekk
 
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: BF1942 Demo Server Crashes

Postby Senshi » Sat Jul 30, 2011 10:29 pm

tekk, which of your posts was edited? I'm kind of confused what post you get angry about?

Not quite sure what happened, but rest assured it was nobody's intention here to "look down" on you or anything. After all, this website exists mainly to assist with all kind of questiosn. Be it quantum theories, be it "How do I start MSPaint?"-kind of questions. But there are some questions that could just as easily been answered with a quick online search (that's when you get snide and short-and-not-helpful comments by users tired of answering the same questions over and over again) . This is not one of them, I was wrong to assume that hex editing was familiar to the average guy. It really isn't difficult, but if one never dabbled in this before, it of course is pretty foreign at first. In short: Sorry if I stepped some toes ;) .
User avatar
Senshi
 
Posts: 695
Joined: Sun Oct 18, 2009 1:14 pm
Location: Germany

Re: BF1942 Demo Server Crashes

Postby tekk » Sat Jul 30, 2011 10:45 pm

Senshi wrote:tekk, which of your posts was edited? I'm kind of confused what post you get angry about?

Not quite sure what happened, but rest assured it was nobody's intention here to "look down" on you or anything. After all, this website exists mainly to assist with all kind of questiosn. Be it quantum theories, be it "How do I start MSPaint?"-kind of questions. But there are some questions that could just as easily been answered with a quick online search (that's when you get snide and short-and-not-helpful comments by users tired of answering the same questions over and over again) . This is not one of them, I was wrong to assume that hex editing was familiar to the average guy. It really isn't difficult, but if one never dabbled in this before, it of course is pretty foreign at first. In short: Sorry if I stepped some toes ;) .


No worries, I just got my panties in a bunch for a edit that was done in a positive manner not intended to make me look like a idiot as I assumed. Its all water under the bridge now ;) . I am currently waiting to test this patch, the server owner is waiting on the host to provide the server permissions for him to make the changes and test it.
Nodbrother- "getting whiped every single game by some over-active 9 year old kid with too much spare time and a reaction time that is a third of yours."
tekk
 
Posts: 171
Joined: Fri Dec 11, 2009 6:12 pm

Re: BF1942 Demo Server Crashes

Postby dierighty » Sat Jul 30, 2011 11:27 pm

Here are the offsets to modify for the BF42 windows dedicated server, BF1942_w32ded.exe:

Detour
original:
Code: Select all
Virtual  File       Original
Address  Offset     Bytes          Instruction
0045a52f 5A52F      8B 10          mov edx,dword ptr[eax]

Modified:
Code: Select all
Virtual  File   Modified
Address  Offset Bytes          Instruction 
0045a52f 5A52F  EB 82          jmp 0045a4b3

Comparison
original:
Code: Select all
Virtual  File   Original
Address  Offset Bytes                                  Instruction
0045a4b3 5A4B3  90 90 90 90 90 90 90 90 90 90 90 90 90 nop's ;padding

modified:
Code: Select all
Virtual  File   Modified
Address  Offset Bytes         Instruction
0045a4b3 5A4B3  8B 10          mov edx,dword ptr[eax]  ;perform the instruction that we overwrote to jmp
0045a4b5 5A4B5  8B 4F 04       mov ecx,dword ptr[edi+4];get the event sequence #
0045a4b8 5A4B8  83 F9 01       cmp ecx,1
0045a4bb 5A4BB  74 74          je 0045a531
0045a4bd 5A4BD  EB 4C          jmp 0045a50b




Demo to follow, it has less padding in between functions then the linux and windows dedicated, so I need to re-write the comparison to make it work in a tighter space.
Last edited by dierighty on Mon Aug 01, 2011 12:34 am, edited 1 time in total.
dierighty
 
Posts: 11
Joined: Fri Jul 29, 2011 5:38 pm

PreviousNext

Return to Battlefield server and client

Who is online

Users browsing this forum: No registered users and 9 guests

cron