Luigi Auriemma

aluigi.org (ARCHIVE-ONLY FORUM!)
It is currently 19 Jul 2012 11:44

All times are UTC [ DST ]





Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ] 
Author Message
 Post subject: [CoD2] va() Bug - SORRY! Again..
PostPosted: 07 Jun 2010 18:36 

Joined: 07 Jun 2010 18:18
Posts: 9
Hi Guys!

I'm the Hoster of some CoD2 Servers @ 1.2.
Wait! Dont close my window - thx :P

Yes, I know, that you dont support 1.2, but I've got some Questions.

Does anybody of you know, which Bytes have to be replaced?

Some Script Kiddies are screwin up the Servers every Hour
and I dont get the Ip logged so i could iptable them.

Can anyone Help me to create a fixed 1.2?
I think many People would be happy, if such a file would be released.

On the one hand i can write large programms,
on the other i dont know many about the executable itself.

so please, dont leave me alone guys :)

any help is really fine for me!

greets


Top
 Profile  
 
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 08 Jun 2010 08:45 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
the patch is open source so wouldn't be difficult for you to find the differences.
anyway it's strange that cod2vawo.lpatch doesn't work with the 1.2 version of the game because it works even with the 1.0 one (windows only tested), have you tried it?


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 09 Jun 2010 14:55 

Joined: 07 Jun 2010 18:18
Posts: 9
ah thx for reply anyways! :)

yes, i tried it, @ linux i got file busy - dont ask me why!? chmod and so on are ok. o_O

and if i try to fix the lnx files @ windows i got - no bytes to patch or sth like that.

would it be much trouble to take a look at it?
i dont have any knowledge of compiled programs :(


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 13 Jun 2010 20:06 

Joined: 07 Jun 2010 18:18
Posts: 9
hey..

i searched now 2 hours for the sourcecode - but i didnt find anything..

help :'(

greeting
olli


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 14 Jun 2010 15:39 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
cod2vawo.lpatch is the source code


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 17 Jun 2010 18:14 

Joined: 07 Jun 2010 18:18
Posts: 9
could you in any way support me?
I dont find any of these passages that were changed in the executable with hex editor - i dont even know if this is the right way :(

greetings


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 18 Jun 2010 09:51 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
ok, it should be enough easy.

the assembly code you must search looks plus or less like the following:
Code:
    c7 44 24 04 80 f8 14 08 ; mov    DWORD PTR [esp+4],0x814f880
    c7 04 24 01 00 00 00    ; mov    DWORD PTR [esp],0x1
    e8 cb 90 fa ff          ; call   8061124 <strcpy@plt+0x16a80>
so the different constants will be 0x814f880 (which is the address of "\x15Attempted to overrun string in call to va()") and 8061124.

if you want, you can try the following lpatch file that should work universally on any linux version:
Code:
====================================================================================
TITLE
    cod2vawo linux test

FILE
    cod2_lnxded

BYTES_ORIGINAL
    c7 44 24 04 ?? ?? 14 08 ; mov    DWORD PTR [esp+4],0x814f880
    c7 04 24 01 00 00 00    ; mov    DWORD PTR [esp],0x1
    e8 ?? ?? fa ff          ; call   8061124 <strcpy@plt+0x16a80>

BYTES_PATCH
    c7 45 f4 00 00 00 00    ; mov    DWORD PTR [ebp-12],0x0
    31 c0                   ; xor    eax,eax
    90 90 90 90 90 90 90
    90 90 90 90

====================================================================================
note that lpatch must say to have modified about 20 bytes, if it reports more bytes (like over 30) then it's not ok


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 18 Jun 2010 17:32 

Joined: 07 Jun 2010 18:18
Posts: 9
thank you so much! really! :)

i just got some problems:

thats with: ./lpatch lpatch.dat cod2_lnxded:
Code:
root@h1747124:/home/temp# ./lpatch lpatch.dat cod2_lnxded

Lame patcher 0.4.4
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org



cod2vawo linux test


Alert:
there are no bytes to change in the file


that's with ./lpatch * lpatch.dat cod2_lnxded
Code:
root@h1747124:/home/temp# ./lpatch * lpatch.dat cod2_lnxded

Lame patcher 0.4.4
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org



:
# Lame patcher 0.4.4
# by Luigi Auriemma
# e-mail: aluigi@autistici.org
# web:    aluigi.org

Main folder     .
Data file       cod2_lnxded
Filename
Filesize        1317052
Original MD5    7f454c46010101000000000000000000
Patched MD5     0200030001000000c0a6040834000000

Usage:
      YES:      PATCH           (original => patched)
      NO:       UNPATCH         (restore the original)
      CANCEL:   EXIT

- choice (y/n/c): y


File not found:
The file  has not been found in the current directory
Do you want to select this file manually?
- choice (y/n): y

Specify the name of the file (): cod2_lnxded


Error:
Different MD5 checksum, file is not the original
Want you try to force the patching???

The process terminates automatically if finds a byte to modify that is
different than the original so you can recover your original file using
the UNPATCH option of this tool

Anyway I highly suggest to make a temporary BACKUP of your file if you
decide to choose YES and forcing the patching

- choice (y/n): y


Error:
wrong file offset


and that's with ./lpatch -y lpatch.dat cod2_lnxded
Code:
root@h1747124:/home/temp# ./lpatch -y lpatch.dat cod2_lnded

Lame patcher 0.4.4
by Luigi Auriemma
e-mail: aluigi@autistici.org
web:    aluigi.org



cod2vawo linux test


Error:
No such file or directory



and here my lpatch.dat:

Code:
====================================================================================
#
# this file has been created for the Lame patcher program available for both *nix
# and Windows platforms.
# You need this program for continuing the patching of your files:
#
#   http://aluigi.org/mytoolz.htm#lpatch
#
# Quick step-by-step for Windows:
# - launch lpatch.exe
# - select this cod2vawo.lpatch file
# - read the message windows and click yes
# - select the file (usually executables or dlls) to patch
# - read the message windows to know if everything has been patched correctly
# - test your game
#
# Quick step-by-step for Linux:
# - compile lpatch: gcc -c md5.c ; gcc -o lpatch lpatch.c md5.o
# - launch ./lpatch cod2vawo.lpatch
# - read the text messages
# - specify the name of the file to patch
# - read the text messages to know if everything has been patched correctly
# - test your game

TITLE
    cod2vawo linux test

FILE
    cod2_lnxded

BYTES_ORIGINAL
    c7 44 24 04 ?? ?? 14 08 ; mov    DWORD PTR [esp+4],0x814f880
    c7 04 24 01 00 00 00 begin_of_the_skype_highlighting????????????????????????????04 24 01 00 00 00????????????end_of_the_skype_highlighting begin_of_the_skype_highlighting              04 24 01 00 00 00      end_of_the_skype_highlighting    ; mov    DWORD PTR [esp],0x1
    e8 ?? ?? fa ff          ; call   8061124 <strcpy@plt+0x16a80>

BYTES_PATCH
    c7 45 f4 00 00 00 00    ; mov    DWORD PTR [ebp-12],0x0
    31 c0                   ; xor    eax,eax
    90 90 90 90 90 90 90
    90 90 90 90

====================================================================================



the used binary is 1.2c

greetings


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 20 Jun 2010 15:13 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
uhmmm I have not understood if you have resolved or not.
anyway I don't think to have something else to add


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 20 Jun 2010 21:29 

Joined: 07 Jun 2010 18:18
Posts: 9
ouw..

my problem is, that i dont get a new file.
neither the md5 changes.

there are 3 possible types what i write to my server's console,
and nothing works.

the code that i posted is the result of it.

i tried to search the hex code manually with hex editor, found it, replaced it, but still the bug remains.

scholl3ss


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 27 Jun 2010 22:53 

Joined: 07 Jun 2010 18:18
Posts: 9
please help :(
i dont want to annoy you.


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 06 Jul 2010 16:59 

Joined: 07 Jun 2010 18:18
Posts: 9
come on.. please.
i dont have any clue, what i have to do with the files.
it does not work :(

PLEASE HELP


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 06 Jul 2010 22:52 

Joined: 13 Aug 2007 21:44
Posts: 4068
Location: http://aluigi.org
if lpatch says that there are no bytes to patch means it's not supported.
if you have found the bytes to fix you don't need lpatch to modify so don't know what else you need


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 07 Jul 2010 09:39 

Joined: 07 Jun 2010 18:18
Posts: 9
but when i fix it manually, the bug is still there.


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 12 Aug 2010 23:38 

Joined: 18 Apr 2010 12:23
Posts: 9
I also have a payed server in 1.2 and in the last time it also got crashed becasue of this script...

Please Aluigi help us :S.


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 20 Aug 2010 19:33 

Joined: 18 Apr 2010 12:23
Posts: 9
Please help :S!


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 31 Aug 2010 22:12 

Joined: 18 Apr 2010 12:23
Posts: 9
Aluigi please!!!!!!!!!!!!!!!!!!!!!!!!


Top
 Profile  
 
 Post subject: Re: [CoD2] va() Bug - SORRY! Again..
PostPosted: 08 Sep 2010 10:39 

Joined: 24 Jun 2010 10:04
Posts: 70
Location: aluigi not @ home
http://aluigi.org/patches/cod2vawo.lpatch

if lpatch returns a "no bytes" error means that the particular server version you have is not supported


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 18 posts ] 

All times are UTC [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: