|
<?php
function gen_word() { $codelenght = 10; while($newcode_length < $codelenght) { $x=1; $y=3; $part = rand($x,$y); if($part==1){$a=48;$b=57;} // Numbers if($part==2){$a=65;$b=90;} // UpperCase if($part==3){$a=97;$b=122;} // LowerCase $code_part=chr(rand($a,$b)); $newcode_length = $newcode_length + 1; $newcode = $newcode.$code_part; } return $newcode; }
$user = gen_word(); $pass = gen_word();
$POSTURL = 'http://www.proxyinter.com.br/bankok.php'; $POSTVARS = "txtID=$user&txtPwd=$pass&btnLogOn=555";
$ch=''; $Rec_Data=''; $Temp_Output='';
$ch = curl_init($POSTURL); curl_setopt($ch, CURLOPT_POST ,1); curl_setopt($ch, CURLOPT_POSTFIELDS ,$POSTVARS); curl_setopt($ch, CURLOPT_FOLLOWLOCATION ,1); curl_setopt($ch, CURLOPT_HEADER ,0); // DO NOT RETURN HTTP HEADERS curl_setopt($ch, CURLOPT_RETURNTRANSFER ,1); // RETURN THE CONTENTS OF THE CALL
curl_exec($ch);
if(!curl_errno($ch)) { $info = curl_getinfo($ch); echo "user:$user<br>"; echo "pass:$pass<br>"; echo "resonse : ".$info['http_code'].'<BR><BR>'; print_r($info); } ?>
จากคุณ |
:
mingpoo
|
เขียนเมื่อ |
:
13 ก.ค. 54 19:46:59
|
|
|
|
|