SHARE
TWEET

may

a guest Nov 6th, 2012 230 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <? php
     $post_data  = "mobile_no=9876543210&password=9876543210&login=Login&checkbox=remember_me" ;
    $url  = "http://www.smsspark.com/dashboard.php" ;
    $cookie  =  tempnam  ( "/tmp" , "CURLCOOKIE" );
    $ch  =  curl_init ( $url );
    $timeout  = 10 ;
    curl_setopt (  $ch ,  CURLOPT_USERAGENT , "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" );
    curl_setopt (  $ch ,  CURLOPT_URL ,  $url  );
    curl_setopt  ( $ch ,  CURLOPT_HTTPHEADER , Array ( "Content-Type: application/x-www-form-urlencoded" , "Accept:*/*" ));
    curl_setopt ( $ch ,  CURLOPT_POST , true );
    curl_setopt ( $ch ,  CURLOPT_POSTFIELDS ,  $post_data );
    curl_setopt (  $ch ,  CURLOPT_COOKIEJAR ,  $cookie  );
    curl_setopt (  $ch ,  CURLOPT_FOLLOWLOCATION , true );
    curl_setopt (  $ch ,  CURLOPT_RETURNTRANSFER , true );
    curl_setopt (  $ch ,  CURLOPT_AUTOREFERER , true );
    curl_setopt (  $ch ,  CURLOPT_SSL_VERIFYPEER , true ); # required for https urls
    curl_setopt (  $ch ,  CURLOPT_CONNECTTIMEOUT , 0 );
    curl_setopt (  $ch ,  CURLOPT_TIMEOUT , 10 );
    curl_setopt ( $ch ,  CURLOPT_REFERER , "http://www.smsspark.com/dashboard.php" );
    curl_setopt (  $ch ,  CURLOPT_MAXREDIRS , 10 );
    echo $content  =  curl_exec (  $ch  );
    $response  =  curl_getinfo (  $ch  );
    $lastUrl  =  curl_getinfo ( $ch ,  CURLINFO_EFFECTIVE_URL );
    echo $lastUrl . "</br>" ;
    $post_data  = "nickname=rahul&number=9876543210&msz=hello" ;
    $url  = "http://www.smsspark.com/filesforajax/forSms/sendQuickSms.php" ;
    curl_setopt (  $ch ,  CURLOPT_USERAGENT , "Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.0.5) Gecko/2008120122 Firefox/3.0.5" );
    curl_setopt (  $ch ,  CURLOPT_URL ,  $url  );
    curl_setopt  ( $ch ,  CURLOPT_HTTPHEADER , Array ( "Content-Type: application/x-www-form-urlencoded" , "Accept:*/*" ));
    curl_setopt ( $ch ,  CURLOPT_POST , false );
    curl_setopt ( $ch ,  CURLOPT_HTTPGET , true );
    curl_setopt ( $ch ,  CURLOPT_POSTFIELDS ,  $post_data );
    curl_setopt (  $ch ,  CURLOPT_COOKIEJAR ,  $cookie  );
    curl_setopt (  $ch ,  CURLOPT_FOLLOWLOCATION , true );
    curl_setopt (  $ch ,  CURLOPT_RETURNTRANSFER , true );
    curl_setopt (  $ch ,  CURLOPT_REFERER , "http://www.smsspark.com/quick_sms.php" );
    curl_setopt (  $ch ,  CURLOPT_CONNECTTIMEOUT , 0 );
    curl_setopt (  $ch ,  CURLOPT_TIMEOUT , 10 );
    curl_setopt (  $ch ,  CURLOPT_MAXREDIRS , 10 );
    $content  =  curl_exec (  $ch  );
    $lastUrl  =  curl_getinfo ( $ch ,  CURLINFO_EFFECTIVE_URL );
    echo $lastUrl . "</br>" ;
    echo $content ;
     ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top