Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
Code: | <?php
error_reporting( E_ALL );
ob_start( );
$username = "admin";
$password = "blog";
$code = rand( 300000, 1e+011 );
$url = "http://lt.natta.com/web/lt/buy?media=986032&cat=251586";
$url2 = "http://lt.natta.com/web/lt/buy?p_p_id=buy_lt&p_p_action=1&p_p_state=exclusive&p_p_mode=view&p_p_col_id=column-2&p_p_col_count=1&_buy_lt_struts_action=%2Fext%2Fshopping%2Fbuy%2Flt%2Fgetcostumersendpass&distinguish=0.0".$code."&msisdn=64308902&operator=38&_=";
$cookie = "ktps.txt";
$ch = curl_init( );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );
curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" );
curl_setopt( $ch, CURLOPT_TIMEOUT, 10 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie );
curl_setopt( $ch, CURLOPT_REFERER, "http://www.dos.lt/sms-10.html" );
$result1 = curl_exec( $ch );
$cookie1 = file_get_contents( $cookie );
curl_setopt( $ch, CURLOPT_URL, $url2 );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, FALSE );
curl_setopt( $ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070725 Firefox/2.0.0.6" );
curl_setopt( $ch, CURLOPT_TIMEOUT, 10 );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie );
curl_setopt( $ch, CURLOPT_REFERER, "http://www.dos.lt/sms-10.html" );
$result2 = curl_exec( $ch );
$cookie2 = file_get_contents( $cookie );
$filename = "ktpsCount.txt";
$fd = fopen( $filename, "r" );
$contents = fread( $fd, filesize( $filename ) );
fclose( $fd );
$contents += 1;
$fp = fopen( $filename, "w" );
fwrite( $fp, $contents );
fclose( $fp );
echo "<font size=\"20\">".$contents."</font>";
echo "<br/>-----------------------------------------<br/>";
echo "<br/>".$cookie1;
echo "<br/>-----------------------------------------<br/>";
echo $result2."<br/>".$cookie2;
?> |
|
|