![]() |
|
|
#1 |
|
Архивный участник
Join Date: Mar 2007
Posts: 17
|
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 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2007
Posts: 8
|
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
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2006
Posts: 453
|
=\
i even dunno what to say... random uid =\ not a real programmers methods... |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Apr 2005
Posts: 151
|
but still better as nothing
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
in actuality its not really better than nothing, just take a little longer for the kiddies to find ur account id... so hf
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Mar 2007
Posts: 17
|
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Nov 2005
Posts: 504
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Apr 2006
Posts: 554
|
Mb increase time between 2 packets in amped?
![]() Ex: 10sec to 0x08, it make so hard to brute. |
|
|
|
|
#9 | |
|
Архивный участник
Join Date: Mar 2007
Posts: 17
|
Quote:
Btw if anybody has the packet, i want to reproduce it to make a proper fix.
|
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2007
Posts: 8
|
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)
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
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.
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Apr 2007
Posts: 8
|
i think u can and if u relog to do it u only need to have a delay between login atempts =)
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
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 байт |
|
|
|
|
#15 |
|
Архивный участник
Join Date: Mar 2007
Posts: 17
|
|
|
|
|
|
#16 | |
|
Архивный участник
Join Date: Mar 2005
Posts: 442
|
Quote:
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 |
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Mar 2007
Posts: 17
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
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 |
|
|
|
|
#19 | |
|
Архивный участник
Join Date: Sep 2005
Posts: 1,014
|
Quote:
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 |
|
|
|
|
|
#20 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 267
|
Quote:
|
|
|
|
|
|