The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
phpp fskladjf;alskdjfaslkjfa;lsdfj
Posted by: sam | March 15, 2010 @ 1:46am
PHP Code
[
Download
]
<?php $fp = fsockopen("192.168.1.106", 33891, $errno, $errstr, 30); if (!$fp) { echo "$errstr ($errno)<br />\n"; } else { $fout = "AUTH";######################client send fwrite($fp,$fout); while (!feof($fp)) { $fin = fgets($fp,128); if ($fin == "SAUTH"){###############server response break; }else{ fclose($fp); exit; } } } $fout = "Auth: szdGFE45q#$V^%$YB$&^#^N36$#564%^N$5v6$#B^y$rg"; ^^^ client send fwrite($fp,$fout); while (!feof($fp)) { $fin = fgets($fp,128); if ($fin == "SCMD"){ ###################### server resp break; }else{ fclose($fp); exit; } } $fout = "CMD: RST S213";##############client send fwrite($fp,$fout); while (!feof($fp)) { $fin = fgets($fp,128); if ($fin == "C_SDis"){ ###############server $fout = "Dsc";#################client disconnect fwrite($fp,$fout); break; }else{ $pos = strpos($fin ,"F_SDis:");######### error code after : if ( $pos == true){ echo(substr($fin, 6, strlen($fin))); fclose($fp); exit; } } } ?>
Syntax Highlighting
[
Open in new window
]
Author Comments
none
Rating
4.60 / 8
42 Votes