View Single Post
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.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 байт
bruj0 is offline