Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 Server Modifications ONLY! (https://postpacific.mmorpg-game.online/forumdisplay.php?f=28)
-   -   [SHARE] Script to "fix" authd exploit (https://postpacific.mmorpg-game.online/showthread.php?t=7359)

bruj0 15.04.2007 11:41

[SHARE] Script to "fix" authd exploit
 
Hi, after reading this thread:
https://postpacific.mmorpg-game.onli...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 байт

reflian 15.04.2007 12:37

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

humordwarf 15.04.2007 14:12

=\
i even dunno what to say... random uid =\
not a real programmers methods...

alysia 15.04.2007 14:29

but still better as nothing

testdude 15.04.2007 15:13

in actuality its not really better than nothing, just take a little longer for the kiddies to find ur account id... so hf

bruj0 15.04.2007 15:16

Quote:

Originally Posted by testdude (Post 83939)
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 ;)

testdude 15.04.2007 15:23

Quote:

Originally Posted by bruj0 (Post 83940)
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.

Forcer 15.04.2007 15:38

Mb increase time between 2 packets in amped? :D
Ex: 10sec to 0x08, it make so hard to brute.

bruj0 15.04.2007 15:46

Quote:

Originally Posted by Forcer (Post 83943)
Mb increase time between 2 packets in amped? :D
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.

reflian 15.04.2007 23:22

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)

FidoW 16.04.2007 00:09

Quote:

Originally Posted by Forcer (Post 83943)
Mb increase time between 2 packets in amped? :D
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.

reflian 16.04.2007 01:16

i think u can and if u relog to do it u only need to have a delay between login atempts =)

FidoW 16.04.2007 02:16

Quote:

Originally Posted by reflian (Post 83999)
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.

Osito2Dancer 17.04.2007 20:46

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 байт

bruj0 17.04.2007 21:01

Quote:

Originally Posted by Osito2Dancer (Post 84105)
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..

Osito2Dancer 17.04.2007 21:11

Quote:

Originally Posted by bruj0 (Post 84108)
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 :p).

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 :p.

Atte

Oso

bruj0 17.04.2007 23:22

Quote:

Originally Posted by reflian (Post 83999)
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. :(

Firedaemon 27.04.2007 04:03

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

FidoW 27.04.2007 06:30

Quote:

Originally Posted by Firedaemon (Post 84773)
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

Firedaemon 27.04.2007 19:49

Quote:

right now there at least 3 dlls fixing this exploit without need to change anything on db/SP/regsystem
just got it :)


All times are GMT. The time now is 21:44.