Jump to content

need help with login error.....


gsm

Recommended Posts

Any idea where my code is going wrong...I am trying to login with the curl function ...but   stuk on errmsg=Wrong Username and Password !

<?php
      $username = "8878513825";
      $password = "650334";
      $tomob = $_REQUEST['to'];
      $cookie = tempnam("/coki", "CURLCOOKIE");
      $ch = curl_init();
      curl_setopt($ch,CURLOPT_URL,"http://site2sms.com/login.asp");

      curl_setopt($ch,CURLOPT_COOKIEJAR,$cookie);
      curl_setopt($ch,CURLOPT_RETURNTRANSFER, true);
      curl_setopt($ch,CURLOPT_REFERER,"http://site2sms.com/login.asp");
               $one=curl_exec($ch);
               print $one;
      
 $post_data = "userid=$username&password=$password&Submit=Sign+in";
   $url = "http://www.site2sms.com/auth.asp";
    $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/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept: */*"));
   curl_setopt($ch, CURLOPT_POST, true);
   curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
   curl_setopt( $ch, CURLOPT_COOKIEJAR, $cookie );
  curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
   curl_setopt($ch,CURLOPT_REFERER,"http://www.site2sms.com/login.asp");
   $ct = curl_exec( $ch );
   print $ct;



?>

.

Link to comment
Share on other sites

peope with no brain at all.. hes not only exposed his "username" and "password" his mobile number is also up there lmao. since the login field is his "mobile number for the username" and his randomize password as his password.. - i suggest you remove this mr, shiiua nitu.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.