Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 15.04.2007, 11:41   #1
bruj0
Архивный участник
 
Join Date: Mar 2007
Posts: 17
Default [SHARE] Script to "fix" authd exploit

Hi, after reading this thread:
https://postpacific.loc-online.com/f...ead.php?t=7349
I decided to make a script that will generate said updates statements but EACH uid will have a 7 digit ramdom number instead of uid+random number for all of them:
This scrips takes as input 2 files
1) uid.csv wich is a listing 1 per line of ALL the uids in the row lin2db.user_account.uids

2)builderuids.csv, linsting of uids from lin2world.builder_account.account_id

It generates a ramdom uids between $min and $max and creates
the files:
lin2db_user_account.sql
lin2world_builder_account.sql
lin2world_user_data.sql
lin2world_user_newbie.sql

Ie,
UPDATE user_account set uid=7346380 where uid=69

Its a php script so rename it to ranuids.php, edit the variables at the start, put the .csv files in the same directory and run it.
Its not 100% tested but it should work fine, use it at your own discretion. Thanx to PyroMaker for the idea and all the other posters in the thread.
Cheer,
bruj0

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
randuids.txt — 2595 байт
bruj0 is offline  
Old 15.04.2007, 12:37   #2
reflian
Архивный участник
 
Join Date: Apr 2007
Posts: 8
Default

nice share ^^ its what i had in mind 2, dont forget to make sure new ppl registering dont get a uid assigned as 1, 2, 3 etc
reflian is offline  
Old 15.04.2007, 14:12   #3
humordwarf
Архивный участник
 
Join Date: Feb 2006
Posts: 453
Default

=\
i even dunno what to say... random uid =\
not a real programmers methods...
humordwarf is offline  
Old 15.04.2007, 14:29   #4
alysia
Архивный участник
 
Join Date: Apr 2005
Posts: 151
Default

but still better as nothing
alysia is offline  
Old 15.04.2007, 15:13   #5
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

in actuality its not really better than nothing, just take a little longer for the kiddies to find ur account id... so hf
testdude is offline  
Old 15.04.2007, 15:16   #6
bruj0
Архивный участник
 
Join Date: Mar 2007
Posts: 17
Default

Quote:
Originally Posted by testdude View Post
in actuality its not really better than nothing, just take a little longer for the kiddies to find ur account id... so hf
Yes they just need to try 9.9xx.xx9 combinations
bruj0 is offline  
Old 15.04.2007, 15:23   #7
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

Quote:
Originally Posted by bruj0 View Post
Yes they just need to try 9.9xx.xx9 combinations
and? i just made an auto incrementing bot to go from acc id 1-65535 in 5 minutes, if i can do it, someone from the cheat community can also.
testdude is offline  
Old 15.04.2007, 15:38   #8
Forcer
Архивный участник
 
Join Date: Apr 2006
Posts: 554
Default

Mb increase time between 2 packets in amped?
Ex: 10sec to 0x08, it make so hard to brute.
Forcer is offline  
Old 15.04.2007, 15:46   #9
bruj0
Архивный участник
 
Join Date: Mar 2007
Posts: 17
Default

Quote:
Originally Posted by Forcer View Post
Mb increase time between 2 packets in amped?
Ex: 10sec to 0x08, it make so hard to brute.
Thats a fab idea, acording to my calcs it would take 3 years to run all the 10 million combinations. Still not a fix tho Btw if anybody has the packet, i want to reproduce it to make a proper fix.
bruj0 is offline  
Old 15.04.2007, 23:22   #10
reflian
Архивный участник
 
Join Date: Apr 2007
Posts: 8
Default

course its not a actual fix =) it only takes away the scriptkiddies for now for servers that are in trouble, i wonder why noone spoke up when pyromaker posted lol, anyways the delay would make it almost impossible to use the exploit so itd be a good temp fix for anyone unable to get his hands on anything different, but course a real one is needed. (that is actually shared to all cus imo there might be a lot near2"plugnplay" but its not about that, its about doing anything to stop these stupid kiddos and helping the players to be protected no matter what server =) ) when im not sick anymore ill try to search some myself if its still needed by then (btw can anyone tell me whats wrong with khelbens fix and why noone uses that as fix? im not a server owner so i cant try that)
reflian is offline  
Old 16.04.2007, 00:09   #11
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by Forcer View Post
Mb increase time between 2 packets in amped?
Ex: 10sec to 0x08, it make so hard to brute.
If you're talking about amped delay between packets... correct me if im wrong but the delay is for the same user, so, if you relog that delay has no effect and a brute force attack will need to relog each time if am not wrong because i made several test and if after get char selection screen I try to change to another account isnt working.
FidoW is offline  
Old 16.04.2007, 01:16   #12
reflian
Архивный участник
 
Join Date: Apr 2007
Posts: 8
Default

i think u can and if u relog to do it u only need to have a delay between login atempts =)
reflian is offline  
Old 16.04.2007, 02:16   #13
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by reflian View Post
i think u can and if u relog to do it u only need to have a delay between login atempts =)
Yeah, thats would work, but not for 08 packet in amped settings, that was my point, you are right.
FidoW is offline  
Old 17.04.2007, 20:46   #14
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Here i share a more "optimized" way of applying this patch. Several fixes, it should work with latest php.exe (i attached the one i used on the RAR).

Just unrar to a folder, put the uid.csv on same folder, 1 account_id per line, and the program will ask YOU for $min and $max values at START (and check for min and max correct values and if nº of accounts > $max-$min it will ask you for a bigger number). It will create a new .csv with relationship between old UID and new UID (for checking and tracking purposes).

Share: ppdoesshare

Atte

Oso

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
AuthDPatchScript.rar — 1632388 байт
Osito2Dancer is offline  
Old 17.04.2007, 21:01   #15
bruj0
Архивный участник
 
Join Date: Mar 2007
Posts: 17
Default

Quote:
Originally Posted by Osito2Dancer View Post
Here i share a more "optimized" way of applying this patch. Several fixes, it should work with latest php.exe (i attached the one i used on the RAR).
Thanx for sharing, could you specify what fixes you did? I cant see any in a fast look at the code..
bruj0 is offline  
Old 17.04.2007, 21:11   #16
Osito2Dancer
Архивный участник
 
Join Date: Mar 2005
Posts: 442
Default

Quote:
Originally Posted by bruj0 View Post
Thanx for sharing, could you specify what fixes you did? I cant see any in a fast look at the code..
From yours:

1) Instead of using "file(XXX)" i used a function proposed in php.net that opens the file with fopen, and while it doesnt find the EOF, it stores the whole line (with \n included and separator between files) on an array. Slower, but for servers with a lot of accounts, it functions in a better way.

2) I eliminated the funtion "UniqueRands" and made a secuential program (it doesnt get called, but it just works in a "while" loop). It feeds "rands" array with the uid and the new uid (in the form: rand[0] = uid1, rand[1] = newuid1, rand[2] = uid2, rand[3] = newuid2, etc.

3) Added some messages for display (so the user can know that the program is doing something ).

4) Fixed some errors on the query part (you had $uid inside the " " and didnt take the value from outside, but instead did a query with '$uid' rather than the actual value).

5) Added a new file writing part that writes the whole temporal array "rands" to a file, so you can check which ID got which number.

6) Fixed some "OOB" problems with some of the arrays.

7) Just asks for uid.csv (not builderuid.csv, that can be fixed by own server admins).

Nothing much, just fixed it to be more secuential and more easy to understand. I kept the credits to you on the file and just added myself below you .

Atte

Oso
Osito2Dancer is offline  
Old 17.04.2007, 23:22   #17
bruj0
Архивный участник
 
Join Date: Mar 2007
Posts: 17
Default

Quote:
Originally Posted by reflian View Post
i think u can and if u relog to do it u only need to have a delay between login atempts =)
How do you set a delay if not in amped? I checked all the other .ini and couldnt find a variable that even looks like a delay.
bruj0 is offline  
Old 27.04.2007, 04:03   #18
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default packets to change

This is what I did;
1. Increase the delay on x08
2. Set a delay AND action for x0D
3. Recreated all account ids and REALLY spread them out across the 2 billion limit
4. Changed my registration system to no longer increment the uid, instead using a random one

Now I just need that DLL :P
Firedaemon is offline  
Old 27.04.2007, 06:30   #19
FidoW
Архивный участник
 
Join Date: Sep 2005
Posts: 1,014
Default

Quote:
Originally Posted by Firedaemon View Post
This is what I did;
1. Increase the delay on x08
2. Set a delay AND action for x0D
If you read what i wrote... that have no effect... you must increment relog time, not delay between 08 packet....

new login = new user = amped delay have no effect

(only wondering, if i wrong, correct me please)

Anyway, right now there at least 3 dlls fixing this exploit without need to change anything on db/SP/regsystem
FidoW is offline  
Old 27.04.2007, 19:49   #20
Firedaemon
Архивный участник
 
Join Date: Oct 2005
Posts: 267
Default

Quote:
right now there at least 3 dlls fixing this exploit without need to change anything on db/SP/regsystem
just got it
Firedaemon 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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 16:23.