|
|
|
|
|
|
IT Security and Insecurity Portal |
|
|
the master help me in this decoding |
|
Posted: Sun Mar 28, 2010 1:48 am |
|
|
cah_gemblunk |
Regular user |
|
|
Joined: Mar 28, 2010 |
Posts: 8 |
|
|
|
|
|
|
|
|
Last edited by cah_gemblunk on Fri Apr 02, 2010 1:27 am; edited 3 times in total |
|
|
|
|
|
|
|
Posted: Sun Mar 28, 2010 2:47 am |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
one.php:
Code: | <?php
include 'config.inc.php';
$number =$_REQUEST["number"];
$modeofform =$_POST["modeofform"];
$text =$_POST["Text"];
$inboxid =$_GET["inboxid"];
$userid = $useridx;
$SMSCRoute =$_POST["SMSCRoute"];
$Phonenumbers =$_POST["Phonenumbers"];
if(CountThisDay(outbox,datetime,$tglskr)>100){
echo "<div class=salah>Maaf, Hari ini anda telah mengirim 100 SMS. software SMS Center versi gratis ini hanya bisa mengirim SMS maksimal 100 SMS perhari, <br>bila ingin mencoba mengirim SMS massal banyak tanpa batas, gunakan software SMS Center versi personal<br> hubungi email aswandiweb@gmail.com untuk informasi lebih lanjut </div>";
exit;
}
?>
<?php
$pemisah=array(">","=",",");
if(empty($modeofform)) $modeofform="";
if(($modeofform=="u") || ($modeofform=="i")) {
dbconnect($site["dbhost"], $site["dblogin"], $site["dbpass"], $site["dbname"], $site["dbport"]);
$outboxid=addslashes($outboxid);
$text=addslashes($text);
$processed=addslashes($processed);
$pemisah=array(">","=",",");
if($modeofform=="x"){
dbconnect($site["dbhost"], $site["dblogin"], $site["dbpass"], $site["dbname"], $site["dbport"]);
$sql="update outbox
set
outboxid='$outboxid',
number='$number',
text='$text',
datetime='$datetime',
processed='$processed'
where outboxid=$outboxid";
dbquery($sql);
echo $updated_msg;
exit;
}
else {
$textsms = urlencode($text);
################################################################ IF PBGROUPID
if($pbgroupid){
$id_template=$temp2group;
$sqllog_outbox="insert into log_outbox
(smscroute,datetime,id_template,pbgroupid,text)
Values
('$smscroute','$datetime','$id_template','$pbgroupid','$text')";
dbquery($sqllog_outbox);
$id_log_outbox=mysql_insert_id();
if($pbgroupid=="all"){
$sql2 ="select pbid,pbgroupid,name,number,datetime from pb $q";
$query2 = dbquery($sql2);
$quantos= mysql_num_rows($query2);
if($quantos>10){
echo "<div class=salah>Maaf, software SMS Center versi gratis ini hanya bisa mengirim SMS maksimal 10 nomor HP untuk sekali kirim, <br>
bila ingin mencoba mengirim SMS massal banyak (maksimal 10ribu nomor HP sekali klik, gunakan software SMS Center versi personal<br>
hubungi email aswandiweb@gmail.com untuk informasi lebih lanjut </div>";
exit;
}
}
else if($pbgroupid=="KIRIM ULANG"){
$q = "where processed = '0000-00-00 00:00:00' ";
$sql2="select outboxid,number,text from outbox $q";
$query2 = dbquery($sql2);
$quantos= mysql_num_rows($query2);
if($quantos>10){
echo "<div class=salah>Maaf, software SMS Center versi gratis ini hanya bisa mengirim SMS maksimal 10 nomor HP untuk sekali kirim, <br>
bila ingin mencoba mengirim SMS massal banyak (maksimal 10ribu nomor HP sekali klik, gunakan software SMS Center versi personal<br>
hubungi email aswandiweb@gmail.com untuk informasi lebih lanjut </div>";
exit;
}
}
else{
$q = "where pbgroupid='$pbgroupid' or
pbgroupid2='$pbgroupid' or
pbgroupid3='$pbgroupid' or
pbgroupid4='$pbgroupid' or
pbgroupid5='$pbgroupid' ";
$sql2="select pbid,pbgroupid,name,number,datetime from pb $q";
$query2 = dbquery($sql2);
$quantos= mysql_num_rows($query2);
/*
if($quantos>10){
echo "<div class=salah>Maaf, software SMS Center versi gratis ini hanya bisa mengirim SMS maksimal 10 nomor HP untuk sekali kirim, <br>
bila ingin mencoba mengirim SMS massal banyak (maksimal 10ribu nomor HP sekali klik, gunakan software SMS Center versi personal<br>
hubungi email aswandiweb@gmail.com untuk informasi lebih lanjut </div>";
exit;
}
*/ }
$data2=mysql_query($sql2);
//echo "SMS proses dikirim ke : ";
while($row2=mysql_fetch_array($data2)){
if($pbgroupid=="KIRIM ULANG"){
$outboxid=stripslashes($row2["outboxid"]);
$number=stripslashes($row2["number"]);
$text=stripslashes($row2["text"]);
}
else{
$name=stripslashes($row2["name"]);
$number=stripslashes($row2["number"]);
if(!$number){
continue;
}
$numberx=zeroto62($number);
echo $sql="insert into outbox
(number,text,datetime,processed,userid)
Values
('$numberx','$text','$datetime','$processed','$userid')";
dbquery($sql);
$outboxid=mysql_insert_id();
}
if($number) echo $handle = SendSMS($number, $text,$SMSCRoute) ;
if($handle){
$handle=str_replace($pemisah," ",$handle);
$arrhandle=explode(" ",$handle);
$carrhandle=count($arrhandle);
//for($i=0;$i<$carrhandle;$i++){ $MessageID .= "$i $arrhandle[$i]________ "; }
$MessageID = $arrhandle[29];
Update1(outbox,MessageID,$MessageID,outboxid,$outboxid);
Update1(outbox,processed,$datetime,outboxid,$outboxid);
log_template($id_template,$outboxid,$datetime);
echo "$name ($number) ........ ";
$arrhandle="";
}
else{
echo "SMS gagal dikirim";
}
}
echo $loading;
echo "<META HTTP-EQUIV=refresh CONTENT=2;URL=?d=outbox&f=outbox.list";
exit;
################################################################ END FOR GROUP
}
else{
$arrnumber=explode(";",$Phonenumbers);
$countnumber = count($arrnumber);
if($countnumber>10){
echo "<div class=salah>Maaf, software SMS Center versi gratis ini hanya bisa mengirim SMS maksimal 10 nomor HP untuk sekali kirim, <br>bila ingin mencoba mengirim SMS massal banyak (maksimal 10ribu nomor HP sekali klik, gunakan software SMS Center versi personal<br> hubungi email aswandiweb@gmail.com untuk informasi lebih lanjut </div>";
exit;
}
for($i=0;
$i<$countnumber;
$i++){
if($arrnumber[$i]){
$numberx=zeroto62($arrnumber[$i]);
$sql="insert into outbox
(number,text,datetime,processed,userid)
Values
('$numberx','$text','$datetime','$processed','$userid')";
dbquery($sql);
$outboxid=mysql_insert_id();
echo $handle = SendSMS($arrnumber[$i], $text,$SMSCRoute) ;
if($handle){
in2log($datetime,$userid,"kirim sms kenumber $number text $text SMSCRoute $SMSCRoute validhp $validhp pbidRECEIPTMESSAGEID $pbidRECEIPTMESSAGEID");
if($temp2pb){
$id_template = $temp2pb;
$sql="insert into log_template
(id_log_template,id_template,outboxid,datetime)
Values
('$id_log_template','$id_template','$outboxid','$datetime')";
dbquery($sql);
}
$handle=str_replace($pemisah," ",$handle);
$arrhandle=explode(" ",$handle);
$carrhandle=count($arrhandle);
//for($i=0;$i<$carrhandle;$i++){ $MessageID .= "$i $arrhandle[$i]________ "; }
$MessageID = $arrhandle[29];
Update1(outbox,MessageID,$MessageID,outboxid,$outboxid);
Update1(outbox,processed,$datetime,outboxid,$outboxid);
Update1(inbox,processed,"1",inboxid,$inboxid);
in2reply($inboxid,$outboxid,"0");
echo "SMS proses dikirim<p>";
}
else{
echo "SMS gagal dikirim";
}
}
}
echo $loading;
echo "<META HTTP-EQUIV=refresh CONTENT=2;URL=?d=outbox&f=outbox.list";
exit;
}
}
}
elseif(isset($outboxid)){
$modeofform="i";
dbconnect($site["dbhost"], $site["dblogin"], $site["dbpass"], $site["dbname"], $site["dbport"]);
$sql="select outboxid,number,text,datetime,processed from outbox
where outboxid=$outboxid";
$reslt=dbquery($sql);
$row = dbnext($reslt);
$outboxid=stripslashes($row["outboxid"]);
$number=stripslashes($row["number"]);
$text=stripslashes($row["text"]);
$datetime=stripslashes($row["datetime"]);
$processed=stripslashes($row["processed"]);
}
else {
$modeofform="i";
}
if($inboxid4forward){
$text = TulisNama(text,inbox,inboxid,$inboxid4forward);
}
if($temp2pb){
$text = TulisNama(template,template,id_template,$temp2pb);
}
if($forward2group){
$text = TulisNama(text,inbox,inboxid,$forward2group);
}
if($temp2group){
$text = TulisNama(template,template,id_template,$temp2group);
}
if($outbox2group){
$text = TulisNama(text,outbox,outboxid,$outbox2group);
}
?>
<BODY>
<FORM method="post" enctype="multipart-form-data" name="smsform"
onsubmit="clearTextBoxCounter()"
action="">
<TABLE border=0>
<TR>
<TD colspan="2" class=headgbr>KIRIM SMS</TD>
</TR>
<? if($pbgroupid || $forward2group || $outbox2group || $temp2group){
?>
<TR>
<TD>Group</TD>
<TD>
<? if($pbgroupid=="all"){
echo "Semua";
}
else{
echo GetValue1(pbgroupid,pbgroupname,pbgroup,$pbgroupid);
}
?></TD>
</TR>
<? }
else{
?>
<TR>
<TD>Nomor HP</TD>
<TD>
<input name="Phonenumbers" type="text" class="gensmall" value="<?php echo @$number;
?>" size="40"" />
<input type="button" name="Button2" value=" ... " class="tombol" onClick="Javascript:OpenSearch('phonebook.php')" /> </TD>
</TR>
<? }
?>
<TR>
<TD valign="top">Isi SMS</TD>
<TD>
<textarea rows="6" name="Text" cols="48" onKeyUp="updateTextBoxCounter()"><?php $header = TulisNama(header,config,configid,1);
$footer = TulisNama(footer,config,configid,1);
if($text){
echo $text;
}
else{
echo "$header \n\n$footer";
}
?></textarea>
<br>
Ambil Template
<input type="button" name="Button22" value=" ... " class="tombol" onClick="Javascript:OpenSearch('template.php')" />
<br>
<INPUT TYPE="TEXT" SIZE="39" NAME="InfoCharCounter">
<span class="MsoNormal">
<INPUT TYPE="hidden" SIZE="10" NAME="DestPort" onKeyUp="updateTextBoxCounter()">
</span> </p></TD>
</TR>
<TR>
<TD valign="top"></TD>
<TD><? $SMSCRoute =TulisNama(modem,inbox,inboxid,$inboxid);
echo "Melalui $SMSCRoute";
echo Opsi1($SMSCRoute,smscroute,SMSCRoute) //GetValue4(smscroute,smscroute) ; //GetValue3(smscroute,smscroute,smscroute,SMSCRoute,$SMSCRoute);
?>
</TD>
</TR>
<TR>
<TD> ;;</TD>
<TD><INPUT TYPE=Submit value="KIRIM"></TD>
</TR>
</TABLE>
<input type="hidden" name="modeofform" value="<?php echo $modeofform;
?>">
<?php if(isset($outboxid)) echo "<input type='hidden' name='outboxid' value='$outboxid'>";
?>
</FORM> |
|
|
|
|
|
|
|
|
|
Posted: Sun Mar 28, 2010 2:48 am |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
Second one:
Code: | <?php
function kirimsms($number,$text,$inboxid){
global $db;
$number = zeroto62($number);
$pemisah=array(">","=",",");
$datetime =date("Y-m-d H:i:s");
$sql2="insert into outbox
(number,text,datetime)
Values
('$number','$text','$datetime')";
dbquery($sql2);
$outboxid=mysql_insert_id();
$auto=1;
in2reply($inboxid,$outboxid,$auto);
$SMSCRoute = TulisNama(modem,inbox,inboxid,$inboxid);
$handle = SendSMS($number, $text,$smscroute) ;
if($handle){
$handle=str_replace($pemisah," ",$handle);
$arrhandle=explode(" ",$handle);
$carrhandle=count($arrhandle);
//for($i=0;$i<$carrhandle;$i++){ $MessageID .= "$i $arrhandle[$i]________ "; }
$MessageID = $arrhandle[29];
Update1(outbox,MessageID,$MessageID,outboxid,$outboxid);
Update1(outbox,processed,$datetime,outboxid,$outboxid);
}
}
function kirimsms2($number,$text,$SMSCRoute){
global $db;
$number = zeroto62($number);
$pemisah=array(">","=",",");
$datetime =date("Y-m-d H:i:s");
$sql="insert into outbox
(number,text,datetime,userid)
Values
('$number','$text','$datetime','$userid')";
dbquery($sql);
$outboxid=mysql_insert_id();
$handle = SendSMS($number, $text,$SMSCRoute) ;
if($handle){
$handle=str_replace($pemisah," ",$handle);
$arrhandle=explode(" ",$handle);
$carrhandle=count($arrhandle);
$MessageID = $arrhandle[29];
Update1(outbox,MessageID,$MessageID,outboxid,$outboxid);
Update1(outbox,processed,$datetime,outboxid,$outboxid);
}
}
?> |
|
|
|
|
|
|
|
|
|
Posted: Sun Mar 28, 2010 2:49 am |
|
|
Cyko |
Moderator |
|
|
Joined: Jul 21, 2009 |
Posts: 375 |
|
|
|
|
|
|
|
Third one:
Code: | <?php
$checkbox = $_POST['checkbox'];
$countin=count($checkbox);
$hitung = CountTotal(outbox);
if($hitung>1000){
echo "Maaf anda hanya bisa mengirim sampai 1000 SMS pada versi trial ini";
exit;
}
if(!$countin){
echo "maaf anda tidak menconteng satupun nomor hp";
exit;
}
include 'f-inbox.php';
echo "SMS sedang antri untuk dikirim ke :<br>";
for($i=0;
$i<$countin;
$i++){
if($checkbox[$i]){
$number = TulisNama(number,pb,pbid,$checkbox[$i]);
kirimsms2($number,$Text,$SMSCRoute);
$nama = TulisNama(name,pb,pbid,$checkbox[$i]);
$number = plus62tozero($number);
echo "$nama ($number) ... <br>";
}
}
?>
<p>
Untuk melihat data SMS keluar silahkan masuk ke halaman <a href="?d=outbox&f=outbox.list"> OUTBOX </a> |
|
|
|
|
|
|
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
|
|
|
|
|