|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
Please help me to decode this php script |
|
Posted: Mon Dec 28, 2009 7:15 am |
|
|
maumaju |
Beginner |
|
|
Joined: Dec 28, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
<?php if (!function_exists("T7FC56270E7A70FA81A5935B72EACBE29")) { function T7FC56270E7A70FA81A5935B72EACBE29($TF186217753C37B9B9F958D906208506E) { $TF186217753C37B9B9F958D906208506E = base64_decode($TF186217753C37B9B9F958D906208506E); $T7FC56270E7A70FA81A5935B72EACBE29 = 0; $T9D5ED678FE57BCCA610140957AFAB571 = 0; $T0D61F8370CAD1D412F80B84D143E1257 = 0; $TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[1]) << + ord($TF186217753C37B9B9F958D906208506E[2]); $T3A3EA00CFC35332CEDF6E5E9A32E94DA = 3; $T800618943025315F869E4E1F09471012 = 0; $TDFCF28D0734569A6A693BC8194DE62BF = 16; $TC1D9F50F86825A1A2302EC2449C17196 = ""; $TDD7536794B63BF90ECCFD37F9B147D7F = strlen($TF186217753C37B9B9F958D906208506E); $TFF44570ACA8241914870AFBC310CDB85 = __FILE__; $TFF44570ACA8241914870AFBC310CDB85 = file_get_contents($TFF44570ACA8241914870AFBC310CDB85); $TA5F3C6A11B03839D46AF9FB43C97C188 = 0; preg_match(base64_decode("LyhwcmludHxzcHJpbnR8ZWNobykv"), $TFF44570ACA8241914870AFBC310CDB85, $TA5F3C6A11B03839D46AF9FB43C97C188); for (;$T3A3EA00CFC35332CEDF6E5E9A32E94DA<$TDD7536794B63BF90ECCFD37F9B147D7F;) { if (count($TA5F3C6A11B03839D46AF9FB43C97C188)) exit; if ($TDFCF28D0734569A6A693BC8194DE62BF == 0) { $TF623E75AF30E62BBD73D6DF5B50BB7B5 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << ; $TF623E75AF30E62BBD73D6DF5B50BB7B5 += ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]); $TDFCF28D0734569A6A693BC8194DE62BF = 16; } if ($TF623E75AF30E62BBD73D6DF5B50BB7B5 & 0x8000) { $T7FC56270E7A70FA81A5935B72EACBE29 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << 4); $T7FC56270E7A70FA81A5935B72EACBE29 += (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA]) >> 4); if ($T7FC56270E7A70FA81A5935B72EACBE29) { $T9D5ED678FE57BCCA610140957AFAB571 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) & 0x0F) + 3; for ($T0D61F8370CAD1D412F80B84D143E1257 = 0; $T0D61F8370CAD1D412F80B84D143E1257 < $T9D5ED678FE57BCCA610140957AFAB571; $T0D61F8370CAD1D412F80B84D143E1257++) $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012+$T0D61F8370CAD1D412F80B84D143E1257] = $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012-$T7FC56270E7A70FA81A5935B72EACBE29+$T0D61F8370CAD1D412F80B84D143E1257]; $T800618943025315F869E4E1F09471012 += $T9D5ED678FE57BCCA610140957AFAB571; } else { $T9D5ED678FE57BCCA610140957AFAB571 = (ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) << ; $T9D5ED678FE57BCCA610140957AFAB571 += ord($TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]) + 16; for ($T0D61F8370CAD1D412F80B84D143E1257 = 0; $T0D61F8370CAD1D412F80B84D143E1257 < $T9D5ED678FE57BCCA610140957AFAB571; $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012+$T0D61F8370CAD1D412F80B84D143E1257++] = $TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA]); $T3A3EA00CFC35332CEDF6E5E9A32E94DA++; $T800618943025315F869E4E1F09471012 += $T9D5ED678FE57BCCA610140957AFAB571; } } else $TC1D9F50F86825A1A2302EC2449C17196[$T800618943025315F869E4E1F09471012++] = $TF186217753C37B9B9F958D906208506E[$T3A3EA00CFC35332CEDF6E5E9A32E94DA++]; $TF623E75AF30E62BBD73D6DF5B50BB7B5 <<= 1; $TDFCF28D0734569A6A693BC8194DE62BF--; if ($T3A3EA00CFC35332CEDF6E5E9A32E94DA == $TDD7536794B63BF90ECCFD37F9B147D7F) { $TFF44570ACA8241914870AFBC310CDB85 = implode("", $TC1D9F50F86825A1A2302EC2449C17196); $TFF44570ACA8241914870AFBC310CDB85 = "?".">".$TFF44570ACA8241914870AFBC310CDB85."<"."?"; return $TFF44570ACA8241914870AFBC310CDB85; } } } } eval(T7FC56270E7A70FA81A5935B72EACBE29("QAAAPE1FVEEgSFRUUC1FUVVJVgAAPXJlZnJlc2ggQ09OVEVOVAAAPTc7VVJMPSIiID4NCjw/cAAAaHAgIGluY2x1ZGUgImNvbgoAZmlnLgEALgGQIjsgIHJ1dGluAUBzbXMoMTEpAPAgABgkc3FsZGUAAGxheT0ic2VsZWN0IGlkLHIAAGVjaXBpZW50LHRleHQsY3ICAmVhdGVfZABQLGZsYXNoXwTALIAAAPF0aW1lX3NlbmQsc3RhdHUQgHMsZwJAd2F5XwRQaWRfaW5ibwEBeCBmcm9tIAMgc2VydmVyXwbigQAII3doZXJlIAOzIT0nMScgYW4ggGQgBZogPCAnJAElJyBvcmRlchAAIGJ5CmAgZGVzYyBsaW1pdCBiRDMOYQVDICAkEqBsdAZyPW15DgBfcQYAdWVyeSgOthBJd2hpbGUoJHJvRAB3AxIgPSADM2ZldGNoX2FycmHEAAOQBRcpKXsAAAYgJGlkPXN0cmlwc5A+EhFlcwU3WyJpZCJdB0kKmBaEA78I4lt3/yIYpgQvBGEk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bSBuKgVhbQMARgSgTgCgIiB2YWx1ARByBgAAYGluLndhdiIgLwNvA2NBdXRvUwhAdGFydAN2dHJ1ZQMcZW1iZWQghQ0Jf3gtbXAS4jINoHJjPSIHORQPMA5q2NpD8T7QchWQBzI+PC8GggqpLw9DATk/G4EgUAAgI2I/AZA=")); ?> |
|
|
|
|
|
|
|
|
Posted: Mon Dec 28, 2009 3:02 pm |
|
|
zerobytes |
Valuable expert |
|
|
Joined: Aug 30, 2008 |
Posts: 199 |
|
|
|
|
|
|
|
Code: |
<META HTTP-EQUIV=refresh CONTENT=7;URL="" >
<?php include "config.inc.php";
rutinsms(11);
$sqldelay = "select id,recipient,text,create_date,flash_sms,datetime_send,status,gateway_id,id_inbox from smsserver_delay where status!='1' and datetime_send < '$datetime' order by id desc limit 3";
$resltdelay = mysql_query($sqldelay);
while ($rowdelay = mysql_fetch_array($resltdelay)) {
$id = stripslashes($rowdelay["id"]);
$recipient = stripslashes($rowdelay["recipient"]);
$text = stripslashes($rowdelay["text"]);
$gateway_id = stripslashes($rowdelay["gateway_id"]);
Update1(smsserver_delay, status, 1, id, $id);
$id_smsserver_out = SendSMSg($recipient, $text, $inboxid, $useridx, $gateway_id) ;
Update1(smsserver_delay, id_smsserver_out, $id_smsserver_out, id, $id);
}
$tgl_skr = date("d");
$bln_skr = date("m");
$thn_skr = date("Y");
$jam_skr = date("H");
$jam_sms_ultah = TulisNama(jam_sms_ultah, bimbel_config, id_bimbel_config, 1);
$status_sms_ultah = TulisNama(status_sms_ultah, bimbel_config, id_bimbel_config, 1);
if ($jam_skr == nol1($jam_sms_ultah) && $status_sms_ultah) {
$sqlultah = "select id_kontak, kontak,YEAR(tanggal_lahir) as tahun from kontak where DAY(tanggal_lahir)='$tgl_skr' and MONTH(tanggal_lahir)= '$bln_skr' order by id_kontak desc limit 5";
$resltultah = mysql_query($sqlultah);
while ($rowultah = mysql_fetch_array($resltultah)) {
$id_kontak = stripslashes($rowultah["id_kontak"]);
$tahun = stripslashes($rowultah["tahun"]);
$kontak = stripslashes($rowultah["kontak"]);
$cekdilog = TulisNama3(id_log1, log1, tabel, kontak, id, $id_kontak, nilai2, $thn_skr);
if (!$cekdilog) {
$recipient = TulisNama2(hp, hp, id, $id_kontak, pemilik, kontak);
$tahunke = $tahun - $thn_skr;
$text = TulisNama(template_sms_ultah, bimbel_config, id_bimbel_config, 1);
$text2 = str_replace("<nama>", $kontak, $text);
$text3 = str_replace("<tahunke>", $tahunke, $text2);
$id = SendSMS($recipient, $text3, $inboxid, $useridx) ;
in2log1(kontak, $id_kontak, smsserver_out, $id, tahun, $thn_skr, $datetime);
}
}
}
$sql = "select id,originator,type,text,gateway_id from smsserver_in where process='0' limit 1 ";
$data = mysql_query($sql);
while ($row = mysql_fetch_array($data)) {
$id = stripslashes($row["id"]);
$originator = stripslashes($row["originator"]);
$type = stripslashes($row["type"]);
$text = stripslashes($row["text"]);
$gateway_id = stripslashes($row["gateway_id"]);
$cekgateway_id = TulisNama(id_gateway, gateway, gateway, $gateway_id);
if (!$cekgateway_id) {
in2gateway($gateway_id);
}
upconfig($text, $originator);
if ($originator{0} !== "0") {
$originatormin62 = substr($originator, 2);
$originator0 = "0$originatormin62";
$originatorplus = "+$originator";
$number = $originatorplus;
} else {
$number = zeroto62($originator);
}
$inboxid = $id;
Update1(smsserver_in, process, "1", id, $id);
InTabel1(inbox, id, $id);
$activautorespon = TulisNama(activautorespon, config, configid, 1);
$SMSAutoReply = TulisNama(SMSAutoReply, config, configid, 1);
$organisationname = TulisNama(organisationname, config, configid, 1);
$softwarename = TulisNama(softwarename, config, configid, 1);
$id_kontak = TulisNama(id, hp, hp, $number);
if ($activautorespon == "true") {
$keysms = explode(" ", $text);
$jumlahkata = count($keysms);
$keysms0 = strtolower($keysms[0]);
$keysms1 = strtolower($keysms[1]);
$aksi = TulisNama(aksi, aksi, katakunci, $keysms0);
$aksiid = TulisNama(aksiid, aksi, katakunci, $keysms0);
if ($aksi) {
Update1(inbox, aksiid, $aksiid, id, $id);
if ($aksi == "autorespon") {
$text = TulisNama(text, aksi, katakunci, $keysms0);
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id) ;
exit;
}
if ($aksi == "forward2pb") {
$text = "SMS dari $name ($number) : $text";
$number = TulisNama(id, aksi, katakunci, $keysms0);
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id) ;
exit;
}
if ($aksi == "poll") {
$aksiid = TulisNama(aksiid, aksi, katakunci, $keysms0);
$id_poll = TulisNama2(id_poll, poll, opsi, $keysms1, aksiid, $aksiid);
$status = TulisNama(status, aksi, aksiid, $aksiid);
$jawaban = TulisNama(keterangan, poll, id_poll, $id_poll);
$pertanyaan = TulisNama(namaksi, aksi, aksiid, $aksiid);
$ceksudah = ceksudah($aksiid, $number);
include 'db.php';
if ($status) {
if ($ceksudah) {
$text = $sms_jawab_poll_sudah;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
} else {
if ($id_poll) {
inlog_poll($id_poll, $inboxid);
Update1(inbox, aksiid, $aksiid, inboxid, $inboxid);
$text = $sms_jawab_poll;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
} else {
$text = $sms_jawab_poll_sudah;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
}
}
} else {
$text = $sms_jawab_poll_tutup;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
}
}
} else {
$status_sms_auto_reply = TulisNama(status_sms_auto_reply, config, configid, 1);
if ($status_sms_auto_reply) {
$SMSAutoReply1 = str_replace("<nama>", $kontak, $SMSAutoReply);
$SMSAutoReply2 = str_replace("<sapaan>", $sapaan, $SMSAutoReply1);
$text = $SMSAutoReply2;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
exit;
}
}
}
}
$csound = Count1(inbox, sound, 0);
if ($csound > 0) {
Update1(inbox, sound, 1, sound, 0);
?>
<object id="objMediaPlayer" width="0" height="0"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="Loading file..."
type="application/x-oleobject">
<param name="FileName" value="ringin.wav" />
<param name="AutoStart" value="true" />
<embed type="application/x-mplayer2" src="ringin.wav" width="0" height="0"
autostart="true"></embed>
</object>
<?php }
?>
|
ZeroBytes |
|
_________________ Decoded by ASD @ Lost-codes.co.uk |
|
|
|
|
|
|
|
Posted: Mon Mar 22, 2010 1:33 am |
|
|
maumaju |
Beginner |
|
|
Joined: Dec 28, 2009 |
Posts: 4 |
|
|
|
|
|
|
|
zerobytes wrote: | Code: |
<META HTTP-EQUIV=refresh CONTENT=7;URL="" >
<?php include "config.inc.php";
rutinsms(11);
$sqldelay = "select id,recipient,text,create_date,flash_sms,datetime_send,status,gateway_id,id_inbox from smsserver_delay where status!='1' and datetime_send < '$datetime' order by id desc limit 3";
$resltdelay = mysql_query($sqldelay);
while ($rowdelay = mysql_fetch_array($resltdelay)) {
$id = stripslashes($rowdelay["id"]);
$recipient = stripslashes($rowdelay["recipient"]);
$text = stripslashes($rowdelay["text"]);
$gateway_id = stripslashes($rowdelay["gateway_id"]);
Update1(smsserver_delay, status, 1, id, $id);
$id_smsserver_out = SendSMSg($recipient, $text, $inboxid, $useridx, $gateway_id) ;
Update1(smsserver_delay, id_smsserver_out, $id_smsserver_out, id, $id);
}
$tgl_skr = date("d");
$bln_skr = date("m");
$thn_skr = date("Y");
$jam_skr = date("H");
$jam_sms_ultah = TulisNama(jam_sms_ultah, bimbel_config, id_bimbel_config, 1);
$status_sms_ultah = TulisNama(status_sms_ultah, bimbel_config, id_bimbel_config, 1);
if ($jam_skr == nol1($jam_sms_ultah) && $status_sms_ultah) {
$sqlultah = "select id_kontak, kontak,YEAR(tanggal_lahir) as tahun from kontak where DAY(tanggal_lahir)='$tgl_skr' and MONTH(tanggal_lahir)= '$bln_skr' order by id_kontak desc limit 5";
$resltultah = mysql_query($sqlultah);
while ($rowultah = mysql_fetch_array($resltultah)) {
$id_kontak = stripslashes($rowultah["id_kontak"]);
$tahun = stripslashes($rowultah["tahun"]);
$kontak = stripslashes($rowultah["kontak"]);
$cekdilog = TulisNama3(id_log1, log1, tabel, kontak, id, $id_kontak, nilai2, $thn_skr);
if (!$cekdilog) {
$recipient = TulisNama2(hp, hp, id, $id_kontak, pemilik, kontak);
$tahunke = $tahun - $thn_skr;
$text = TulisNama(template_sms_ultah, bimbel_config, id_bimbel_config, 1);
$text2 = str_replace("<nama>", $kontak, $text);
$text3 = str_replace("<tahunke>", $tahunke, $text2);
$id = SendSMS($recipient, $text3, $inboxid, $useridx) ;
in2log1(kontak, $id_kontak, smsserver_out, $id, tahun, $thn_skr, $datetime);
}
}
}
$sql = "select id,originator,type,text,gateway_id from smsserver_in where process='0' limit 1 ";
$data = mysql_query($sql);
while ($row = mysql_fetch_array($data)) {
$id = stripslashes($row["id"]);
$originator = stripslashes($row["originator"]);
$type = stripslashes($row["type"]);
$text = stripslashes($row["text"]);
$gateway_id = stripslashes($row["gateway_id"]);
$cekgateway_id = TulisNama(id_gateway, gateway, gateway, $gateway_id);
if (!$cekgateway_id) {
in2gateway($gateway_id);
}
upconfig($text, $originator);
if ($originator{0} !== "0") {
$originatormin62 = substr($originator, 2);
$originator0 = "0$originatormin62";
$originatorplus = "+$originator";
$number = $originatorplus;
} else {
$number = zeroto62($originator);
}
$inboxid = $id;
Update1(smsserver_in, process, "1", id, $id);
InTabel1(inbox, id, $id);
$activautorespon = TulisNama(activautorespon, config, configid, 1);
$SMSAutoReply = TulisNama(SMSAutoReply, config, configid, 1);
$organisationname = TulisNama(organisationname, config, configid, 1);
$softwarename = TulisNama(softwarename, config, configid, 1);
$id_kontak = TulisNama(id, hp, hp, $number);
if ($activautorespon == "true") {
$keysms = explode(" ", $text);
$jumlahkata = count($keysms);
$keysms0 = strtolower($keysms[0]);
$keysms1 = strtolower($keysms[1]);
$aksi = TulisNama(aksi, aksi, katakunci, $keysms0);
$aksiid = TulisNama(aksiid, aksi, katakunci, $keysms0);
if ($aksi) {
Update1(inbox, aksiid, $aksiid, id, $id);
if ($aksi == "autorespon") {
$text = TulisNama(text, aksi, katakunci, $keysms0);
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id) ;
exit;
}
if ($aksi == "forward2pb") {
$text = "SMS dari $name ($number) : $text";
$number = TulisNama(id, aksi, katakunci, $keysms0);
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id) ;
exit;
}
if ($aksi == "poll") {
$aksiid = TulisNama(aksiid, aksi, katakunci, $keysms0);
$id_poll = TulisNama2(id_poll, poll, opsi, $keysms1, aksiid, $aksiid);
$status = TulisNama(status, aksi, aksiid, $aksiid);
$jawaban = TulisNama(keterangan, poll, id_poll, $id_poll);
$pertanyaan = TulisNama(namaksi, aksi, aksiid, $aksiid);
$ceksudah = ceksudah($aksiid, $number);
include 'db.php';
if ($status) {
if ($ceksudah) {
$text = $sms_jawab_poll_sudah;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
} else {
if ($id_poll) {
inlog_poll($id_poll, $inboxid);
Update1(inbox, aksiid, $aksiid, inboxid, $inboxid);
$text = $sms_jawab_poll;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
} else {
$text = $sms_jawab_poll_sudah;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
}
}
} else {
$text = $sms_jawab_poll_tutup;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
}
}
} else {
$status_sms_auto_reply = TulisNama(status_sms_auto_reply, config, configid, 1);
if ($status_sms_auto_reply) {
$SMSAutoReply1 = str_replace("<nama>", $kontak, $SMSAutoReply);
$SMSAutoReply2 = str_replace("<sapaan>", $sapaan, $SMSAutoReply1);
$text = $SMSAutoReply2;
SendSMSg($number, $text, $inboxid, $useridx, $gateway_id);
exit;
exit;
}
}
}
}
$csound = Count1(inbox, sound, 0);
if ($csound > 0) {
Update1(inbox, sound, 1, sound, 0);
?>
<object id="objMediaPlayer" width="0" height="0"
classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" standby="Loading file..."
type="application/x-oleobject">
<param name="FileName" value="ringin.wav" />
<param name="AutoStart" value="true" />
<embed type="application/x-mplayer2" src="ringin.wav" width="0" height="0"
autostart="true"></embed>
</object>
<?php }
?>
|
ZeroBytes |
Thanks ZeroByte for your help. |
|
|
|
|
|
www.waraxe.us Forum Index -> PHP script decode requests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
All times are GMT
Page 1 of 1
|
|
|
Powered by phpBB © 2001-2008 phpBB Group
|
|
|
|
|