Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Try this:</p> <p>sms.php <pre><code>?&gt;&lt;?php echo "&lt;title&gt;Ultoo SmS Sender | PRaman.TK&lt;/title&gt;"; ?&gt; &lt;?php $username = $_POST['uid']; $password = $_POST['pwd']; $tomob = $_POST['to']; $c = $_REQUEST['recaptcha_challenge_field']; $cv = $_REQUEST['recaptcha_response_field']; $cookie = tempnam("/coki", "CURLCOOKIE"); $ch = curl_init(); curl_setopt($ch,CURLOPT_URL,"http://sms.ultoo.com/login.php"); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie); curl_setopt($ch,CURLOPT_HEADER,1); curl_setopt($ch,CURLOPT_VERBOSE,1); curl_setopt($ch,CURLOPT_RETURNTRANSFER, true); curl_setopt($ch,CURLOPT_REFERER,"http://sms.ultoo.com/login.php"); $one=curl_exec($ch); preg_match("/input name=\"(.*?)\" type=\"text\" class=\"existing_user round_four\" id=/i",$one,$matches); $user = $matches[1]; preg_match("/input name=\"(.*?)\" type=\"password\" class=\"existing_user round_four\" id=/i",$one,$matches); $pass = $matches[1]; $post_data = "$user=$username&amp;$pass=$password&amp;RememberMe=1&amp;submit2=LOGIN HERE"; $url = "http://sms.ultoo.com/login.php"; $cookie = tempnam("/coki", "CURLCOOKIE"); $ch = curl_init(); curl_setopt( $ch, CURLOPT_USERAGENT,"User-Agent: Mozilla/7.0 (Windows NT 6.1; rv:10.0) Gecko/20100101 Firefox/9.0" ); curl_setopt( $ch, CURLOPT_URL, $url ); curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*")); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data); curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie ); curl_setopt( $ch, CURLOPT_FOLLOWLOCATION, false ); curl_setopt( $ch, CURLOPT_ENCODING, "" ); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); curl_setopt( $ch, CURLOPT_AUTOREFERER, true ); curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false ); curl_setopt( $ch, CURLOPT_MAXREDIRS, 10 ); $ct = curl_exec( $ch ); if(stristr($ct,"number &amp; password")) { echo "&lt;font color='red'&gt;&lt;b&gt;Invalid mobile number / password. Try Again With Correct Details.&lt;/b&gt;&lt;/font&gt;"; } else { if(stristr($ct,"secure.php")) { $post_data2 = "recaptcha_challenge_field=$c&amp;recaptcha_response_field=$cv"; curl_setopt($ch, CURLOPT_URL,"http://sms.ultoo.com/secure.php?zxcoiesesscd="); curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*")); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "http://sms.ultoo.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $dt = curl_exec($ch); if(!stristr($dt,"mywallet.php")) { die("&lt;font color='red'&gt;&lt;b&gt;Invalid Captcha. Try Again.&lt;/b&gt;&lt;/font&gt;"); } } curl_setopt($ch, CURLOPT_URL,"http://sms.ultoo.com/home.php?zxcoiesesscd="); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_REFERER, "http://sms.ultoo.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $dt = curl_exec($ch); preg_match_all("/document.getElementById(.*?).value/",$dt,$mbll); $mbl = $mbll[1][16]; $mbl = str_replace("('","",$mbl); $mbl = str_replace("')","",$mbl); preg_match_all('/textarea name=\"(.*?)\"/i',$dt,$msgg); $m1 = $msgg[1][0]; $m2 = $msgg[1][1]; $m3 = $msgg[1][2]; $m4 = $msgg[1][3]; $m5 = $msgg[1][4]; $m6 = $msgg[1][5]; $m7 = $msgg[1][6]; $m8 = $msgg[1][7]; $ff = $_REQUEST["count"]; $numbers=file_get_contents("numbers.txt"); $numbers=explode("\r\n",$numbers); for($loop=1;$loop&lt;=$ff;$loop++) { $msssg = randomstring(); $number=$numbers[$loop-1]; $post_data2 = "zxcoiesesscd=&amp;MessageLength=140&amp;GlobalKeyValue=1&amp;$mbl=$number&amp;$m1=$msssg&amp;$m2=$msssg&amp;$m3=$msssg&amp;$m8=$msssg&amp;$m4=$msssg&amp;$m5=$msssg&amp;$m6=$msssg&amp;$m7=$msssg&amp;SendNow_=Send Now&amp;BtnSendNow_=Send Now&amp;Day=$day&amp;Month=$month&amp;Year=$year&amp;TimeInterval=$time"; curl_setopt($ch, CURLOPT_URL,"http://sms.ultoo.com/home.php?zxcoiesesscd="); curl_setopt ($ch, CURLOPT_HTTPHEADER, Array("Content-Type: application/x-www-form-urlencoded","Accept: */*")); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data2); curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie); curl_setopt($ch, CURLOPT_TIMEOUT, 0); curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data2); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_REFERER, "http://sms.ultoo.com"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); $dt = curl_exec($ch); if(strstr($dt,"msgSent.php")) { echo "&lt;b&gt;&lt;font color=green&gt;".$loop." SmS Sent Successfully.&lt;/font&gt;&lt;/b&gt;&lt;br&gt;"; $myFile = "$username.txt"; $fh = fopen($myFile, 'w') or die(""); $stringData = "$username,$password"; fwrite($fh, $stringData); fclose($fh); } else { echo "&lt;b&gt;&lt;font color=red&gt;SmS Sending Failed.&lt;/font&gt;&lt;/b&gt;&lt;br&gt;"; } } } ?&gt; </code></pre> <p>Make sure <code>numbers.txt</code> is in the same folder as the PHP file.</p> <p>Since your loop started at one, I did <code>$number=$numbers[$loop-1];</code> to get the first line of <code>numbers.txt</code>.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload