- 2,696
- 1,469
Как это сделать?
Код:
[CODE]{$CLEO}
const
SITE = "legend2360.7ci.ru"
CHECK_FILE = "sn_check.php"
end
0000:
0662: "by legend2360"
0662: "BlastHack - cheating is art"
while not SAMP.Available()
wait 400
end
if call @checkSerial 0
then chat "true" -1
end
0A93: end_custom_thread
:checkSerial
// call @checkSerial 0
ret_false
0AA2: 1@ = load_library "wininet.dll"
0AA4: 2@ = get_proc_address "InternetCloseHandle" library 1@
0AA4: 3@ = get_proc_address "InternetOpenA" library 1@
0AA7: call_function 3@ num_params 5 pop 0 0 "" "" 0 "CLEO Check SN" retr_to 4@
if 4@ <> 0
then
0AA4: 3@ = get_proc_address "InternetConnectA" library 1@
0AA7: call_function 3@ num_params 8 pop 0 0 0 3 "" "" 80 SITE 4@ retr_to 5@
if 5@ <> 0
then
0AA4: 3@ = get_proc_address "HttpOpenRequestA" library 1@
0AA7: call_function 3@ num_params 8 pop 0 0 0x80400100 0 "" "HTTP/1.1" CHECK_FILE "POST" 5@ retr_to 6@
if 6@ <> 0
then
alloc 7@ 32 // buf
memset 7@ 0 32
call @GetSN 0 retr_to 8@
format 7@ = "sn=%d" 8@
strlen 9@ 7@
0AA4: 3@ = get_proc_address "HttpSendRequestA" library 1@
0AA7: call_function 3@ num_params 5 pop 0 params 9@ 7@ 47 "Content-Type: application/x-www-form-urlencoded" 6@ to 10@
memset 7@ 0 32
0AA4: 3@ = get_proc_address "InternetReadFile" library 1@
0AA5: call_function 3@ num_params 4 pop 0 params 9@v 31 7@ 6@
if 9@ > 0
then
if 0C25: strncmp string1 7@ string2 "true" size 4
then ret_true
end
end
free 7@
0AA5: call_function 2@ num_params 1 pop 0 6@
end
0AA5: call_function 2@ num_params 1 pop 0 5@
end
0AA5: call_function 2@ num_params 1 pop 0 4@
end
0AA3: free_library 1@
ret 0
:GetSN
0AA2: 1@ = load_library "kernel32.dll"
0AA4: 2@ = get_proc_address "GetVolumeInformationA" library 1@
0AA5: call 2@ num_params 8 pop 0 params 0 0 0 0 0@v 0 0 0
ret 1 0@
На PHP осталось прикрутить скрипт, который пишется в очень быстро, буквально за 20 минут(если с дб), который будет выводить true если переменная $_POST['sn'] совпала с SN из списка.