Advertisement
RoryPrayana

Authorize Checker

Aug 14th, 2014
1,264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 6.27 KB | None | 0 0
  1. //Hacking tutorial underground, cyber,security,sql inject,basic,ethical hacking
  2. //just on http://jok3d.blogspot.com/
  3.  
  4. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
  5.   "http://www.w3.org/TR/html4/loose.dtd">
  6. <HTML lang='en'>
  7. <HEAD>
  8. <link href='https://lh4.googleusercontent.com/-sOnLe5URs2E/UhqYOahs-hI/AAAAAAAAAEU/AA3pRyxWxRg/h120/indonesia.gif' rel='shortcut icon'/>
  9. <style type="text/css">
  10. <!--
  11. .ui-effects-transfer { border: 2px dotted gray; }
  12. body,td,th {
  13.     font-family: Georgia;
  14.     color: #00FF00;
  15. }
  16. body, html {
  17.     background-color: #000000;
  18.     padding:0;
  19.     margin:0;
  20.     height:100%;
  21. }
  22. h1 {
  23.     font-size:250%;
  24. }
  25. .theAbs {
  26.     top:0;
  27.     position:absolute;
  28. }
  29.  
  30. -->
  31. </style>
  32.     <TITLE>Authorize Checker by ...::[BABY CORP]::...</TITLE>
  33. </HEAD>
  34. <BODY>
  35. <br><br>
  36. <div align="center"><font size="16px">
  37. Authorize Checker by ...::[BABY CORP]::...
  38. </font>
  39. </div>
  40.  
  41. <form name="payform" method="post" action="<?php $_SERVER['PHP_SELF'];?>">
  42. <div class="maindiv" align="center">
  43. <input name="firstname" type="hidden" value="Jonny">
  44. <input name="lastname" type="hidden" value="Daniel">
  45. <input name="email" type="hidden" value="hoamsss@hotmail.com">
  46. <input name="address" type="hidden" value="385 Homestead Ave">
  47. <input name="city" type="hidden" value="Hartford">
  48. <input name="state" type="hidden" value="CT">
  49. <input name="cardholder" type="hidden" value="Jonny Daniel">
  50.     <input name="zip" type="hidden" value="06112">
  51.     <div class="rightbox"><br><br><br>
  52.     <div class="leftone">Card Number</div>
  53.     <div class="rightone"><input name="cardnumber" type="text" maxlength="16"></div>
  54.     <div class="leftone">Expiration</div>
  55.     <div class="leftone"><input name="cardyear" type="text" maxlength="4"></div>
  56.     <div class="leftone">CVV Number</div>
  57.     <div class="rightone"><input name="cardcvv" type="text" maxlength="4"></div>
  58.     <div class="leftone">Amount</div>
  59.     <div class="rightone"><input name="amount" type="text" maxlength="3" value="100"></div>
  60. <br><br><br>
  61.     <div class="leftone""><input value="Pay Now" style="border:1px outset gray; width:100px;" type="submit"></div>
  62.     <div class="clear"></div>
  63. </div>
  64. <br><br>
  65. </form>
  66. <?php
  67. if ($_SERVER['REQUEST_METHOD'] == "POST") {
  68.         $LOGINKEY = 'CHANGE IT';// x_login
  69.         $TRANSKEY = 'CHANGE IT';//x_tran_key
  70.         $firstName =urlencode( $_POST['firstname']);
  71.         $lastName =urlencode($_POST['lastname']);
  72.         $creditCardType =urlencode( $_POST['cardtype']);
  73.         $creditCardNumber = urlencode($_POST['cardnumber']);
  74.         $expDateYear =urlencode( $_POST['cardyear']);
  75.         $cvv2Number = urlencode($_POST['cardcvv']);
  76.         $address1 = urlencode($_POST['address']);
  77.         $city = urlencode($_POST['city']);
  78.         $state =urlencode( $_POST['state']);
  79.         $zip = urlencode($_POST['zip']);
  80.         //give the actual amount below
  81.         $amount = urlencode( $_POST['amount']);
  82.         $currencyCode="USD";
  83.         $paymentType="Sale";
  84.     $post_values = array(
  85.          "x_login"            => "$LOGINKEY",
  86.         "x_tran_key"        => "$TRANSKEY",
  87.          "x_version"            => "3.1",
  88.         "x_delim_data"        => "TRUE",
  89.         "x_delim_char"        => "|",
  90.         "x_relay_response"    => "FALSE",
  91.         //"x_market_type"        => "2",
  92.         "x_device_type"        => "1",
  93.           "x_type"            => "AUTH_CAPTURE",
  94.         "x_method"            => "CC",
  95.         "x_card_num"        => $creditCardNumber,
  96.         "x_exp_date"        => $expDateYear,
  97.          "x_card_code"        => $cvv2Number,
  98.          "x_amount"            => $amount,
  99.          "x_first_name"        => $firstName,
  100.         "x_last_name"        => $lastName,
  101.         "x_address"            => $address1,
  102.         "x_state"            => $state,
  103.         "x_response_format"    => "1",
  104.          "x_zip"                => $zip
  105.     );
  106.    
  107.  
  108.     $post_string = "";
  109.     foreach( $post_values as $key => $value )$post_string .= "$key=" . urlencode( $value ) . "&";
  110.     $post_string = rtrim($post_string,"& ");
  111.  
  112.     //for live mode use the followin url
  113.     $post_url = "https://secure.authorize.net/gateway/transact.dll";
  114.     //for test use this url
  115.     //$post_url = "https://test.authorize.net/gateway/transact.dll";
  116.  
  117.     $request = curl_init($post_url); // initiate curl object
  118.     curl_setopt($request, CURLOPT_HEADER, 0); // set to 0 to eliminate header info from response
  119.     curl_setopt($request, CURLOPT_RETURNTRANSFER, 1); // Returns response data instead of TRUE(1)
  120.     curl_setopt($request, CURLOPT_POSTFIELDS, $post_string); // use HTTP POST to send form data
  121.     curl_setopt($request, CURLOPT_SSL_VERIFYPEER, FALSE); // uncomment this line if you get no gateway response.
  122.     $post_response = curl_exec($request); // execute curl post and store results in $post_response
  123.     // additional options may be required depending upon your server configuration
  124.     // you can find documentation on curl options at http://www.php.net/curl_setopt
  125.     curl_close ($request); // close curl object
  126.  
  127.     // This line takes the response and breaks it into an array using the specified delimiting character
  128.     $response_array = explode($post_values["x_delim_char"],$post_response);
  129.     if($response_array[0]==2||$response_array[0]==3)
  130.     {
  131.         //success
  132.         echo '<b>Payment Failure</b>. <br>';
  133.         echo '<br><br><b>Merchant Respond</b>: '.$response_array[3];
  134.         echo '<br><br><b>Merchant CC Respond</b>: '.$response_array[5];
  135.         echo '<br><br><b>Merchant CVV Respond</b>: '.$response_array[38];
  136.         echo '<br><br>Press back button to go back to the previous page';
  137.         echo "<br><br><br><br>";
  138.     }
  139.     else
  140.     {
  141.         $ptid = $response_array[6];
  142.         $ptidmd5 = $response_array[7];
  143.         echo "Payment Success";
  144.         echo '<br><br><b>Merchant Respond</b>: '.$response_array[3];
  145.         echo '<br><br><b>Merchant CC Respond</b>: '.$response_array[5];
  146.         echo '<br><br><b>Merchant CVV Respond</b>: '.$response_array[38];
  147.         echo "<br><br><br><br>";
  148.     }
  149. }
  150. ?>
  151. <div align="center">
  152. <a href='http://www.babycorp.name' target='_blank'><b>BabyCorp Authorize Checker 1.0</b></a> - Copyright &copy; 2011 - <a href="http://www.babycorp.name" target="_blank"><b>...::[BABY CORP]::...</b></a>
  153. <br />
  154. </div>
  155. </BODY>
  156. </HTML>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement