Jump to content


Photo

script no longer working

php

  • Please log in to reply
2 replies to this topic

#1 JohnRedden

JohnRedden

    Newbie

  • New Members
  • Pip
  • 5 posts

Posted 23 April 2014 - 05:22 PM

I had a working script that no longer works due to a change in the curl  hoping someone4 can help me was told this was a great place to go and that someone would help  thanks in advance i included the script and a working account was hoping to make it so all my accounts could be loaded in it  

 

account  http://play.degenera...acec66e27174fa1

 

 

 

<?php
 
$id="";
$auth="";
$deposit_heal_cash=TRUE; // Deposits all your cash into bank if needed to heal your account.
$target_id[]="1102992285"; // Make as many lines of IDs as you want.
 
 
 
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////
 
 
echo "\n RACiO - WWW.STFUALLDAY.COM\n Attacker Script v1.0\n\n";
sleep(3);
echo "\n         \\=============================\\";
echo "\n          ...STARTING ATTACKER SCRIPT...";
echo "\n         \\=============================\\\n\n\n";
 
$stats=file_get_contents($source_link."get_stats.php?target_id=".$id."&user_id=".$id."&auth_key=".$auth);
$name= split("<name>", $stats);
$name= split("<", $name[1]);
$level= split("<level>", $stats);
$level= split("<", $level[1]);
$cash= split("<cash>", $stats);
$cash= split("<", $cash[1]);
 
$decoded_name=urldecode($name[0]);
if ($name[0]==""){
echo "  Invalid Auth/User ID.";
sleep(18923);
}
$sat=-1;
for($l=0; $l<$sat || $sat == -1; $l++){
$stats=file_get_contents($source_link."get_stats.php?target_id=".$id."&user_id=".$id."&auth_key=".$auth);
$stamina= split("<stamina>", $stats);
$stamina= split("<", $stamina[1]);
$bank= split("<stamina>", $stats);
$bank= split("<", $bank[1]);
$health= split("<health>", $stats);
$health= split("<", $health[1]);
$max_health= split("<max_health>", $stats);
$max_health= split("<", $max_health[1]);
$percent_health = (100 * $health[0] / $max_health[0]);
 
if($percent_health < 67){
      $heal=file_get_contents($source_link."heal.php?user_id=".$id."&auth_key=".$auth);
      xml_parse_into_struct($iP=xml_parser_create(), $heal, $iS, $iX); xml_parser_free($iP);
      $msg="".strip_tags(str_replace("<br>","\n",$iS[$iX['MESSAGE'][0]]['value']))."";
 $message=urldecode($msg);
     if (stristr($message, "declined")&&$deposit_heal_cash==FALSE){
 echo "  [".$decoded_name."] ".date("H:i:s").": Not enough cash in bank to heal... Deposit more manually or turn 'deposit_heal_cash' to TRUE and restart the program.\n";
 sleep(1864);
 }
$heal_pts= split("You regained ", $message);
      $heal_pts= split(" health", $heal_pts[1]);
 echo "  [".$decoded_name."] ".date("H:i:s").": You regained ".$heal_pts[0]." health.\n";
 
if (stristr($message, "declined")&&$deposit_heal_cash==TRUE){
 $stats=file_get_contents($source_link."get_stats.php?target_id=".$id."&user_id=".$id."&auth_key=".$auth);
      $cash= split("<cash>", $stats);
      $cash= split("<", $cash[1]);
 if($cash < 2000){
 echo "  [".$decoded_name."] ".date("H:i:s").":Not enough cash to heal... Get more cash and restart the program.\n";
 sleep(1864);
 }
 $deposit=file_get_contents($source_link."deposit.php?amount=".$cash[0]."&user_id=".$id."&auth_key=".$auth);
      xml_parse_into_struct($iP=xml_parser_create(), $deposit, $iS, $iX); xml_parser_free($iP);
      $msg="".strip_tags(str_replace("<br>","\n",$iS[$iX['MESSAGE'][0]]['value']))."";
 $message=urldecode($msg);
 echo "  [".$decoded_name."] ".date("H:i:s").": ".$message."\n";
 }
 
 $stats=file_get_contents($source_link."get_stats.php?target_id=".$id."&user_id=".$id."&auth_key=".$auth);
      $health= split("<health>", $stats);
      $health= split("<", $health[1]);
      $max_health= split("<max_health>", $stats);
      $max_health= split("<", $max_health[1]);
      $percent_health = (100 * $health[0] / $max_health[0]);
       echo "  [".$decoded_name."] ".date("H:i:s").": Your account is ".$percent_health."% healed.\n";
  }
  
  
 foreach ($target_id as $v => $trolol){
 $attack=file_get_contents($source_link."attack.php?target_id=".$trolol."&user_id=".$id."&auth_key=".$auth);
      xml_parse_into_struct($iP=xml_parser_create(), $attack, $iS, $iX); xml_parser_free($iP);
      $msg="".strip_tags(str_replace("<br>","\n",$iS[$iX['MESSAGE'][0]]['value']))."";
 $message=urldecode($msg);
 echo "  [".$decoded_name."] ".date("H:i:s").": ".$message."\n";
}
 
  } 
 
 
 
?> }
 
  } 
 
 
 
?>
 
new curl  
 
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);    
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');    
curl_setopt($ch, CURLOPT_ENCODING, "UTF8");    
curl_setopt($ch, CURLOPT_HTTPHEADER, 
array(
'Accept:application/xml, text/xml, */*; q=0.01',
'Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3',
'Accept-Encoding:gzip,deflate,sdch',
'Accept-Language:en-US,en;q=0.8',
'Connection:keep-alive',
'Cookie:; ',
'Host:degeneratesapp.net',
'User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.31 (KHTML, like Gecko) Chrome/26.0.1410.64 Safari/537.31',
'X-Requested-With:XMLHttpRequest',
)
);    
$data = curl_exec($ch);

 



#2 Maq

Maq

    Advanced Member

  • Moderators
  • 9,358 posts
  • LocationPennsylvania, USA

Posted 24 April 2014 - 02:39 PM

Please use code tags when posting code.

 

What do you mean by "no longer working"? Does it error out? What happens?


tjmothy

ini_set ("display_errors", "1");
error_reporting(E_ALL);

#3 jowettgo

jowettgo

    Newbie

  • New Members
  • Pip
  • 1 posts

Posted 09 May 2014 - 04:29 AM

Where did you get this php script by the way?  You should be vigilant of the scripts you get from third party providers especially if it's free.. got a related php script of this from codebasket . net, also, there are a lot that you can google in as well.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com