Skip to content

Commit 98d1997

Browse files
committed
KB for ftp_version
1 parent 9c1ae39 commit 98d1997

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
## Description
2+
3+
This module allows us to scan through a series of IP Addresses and provide details about the version of ftp running on that address.
4+
5+
## Vulnerable Application
6+
7+
### Install ftp server on Kali Linux:
8+
9+
1. ```apt-get install vsftpd```
10+
2. Allow local users to log in and to allow ftp uploads by editing file /etc/vsftpd.conf uncommenting the following:
11+
```
12+
local_enable=YES
13+
write_enable=YES
14+
chroot_list_enable=YES
15+
chroot_list_file=/etc/vsftpd.chroot_list
16+
```
17+
3. **IMPORTANT:** For allowing anonymous access set ```anonymous_enable=YES```
18+
4. Create the file /etc/vsftpd.chroot_list and add the local users you want allow to connect to FTP server. Start service and test connections:
19+
5. ```service vsftpd start```
20+
21+
### Installing FTP for IIS 7.5 in Windows:
22+
23+
#### IIS 7.5 for Windows Server 2008 R2:
24+
25+
1. On the taskbar, click Start, point to Administrative Tools, and then click Server Manager.
26+
2. In the Server Manager hierarchy pane, expand Roles, and then click Web Server (IIS).
27+
3. In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.
28+
4. On the Select Role Services page of the Add Role Services Wizard, expand FTP Server.
29+
5. Select FTP Service. (Note: To support ASP.NET Membership or IIS Manager authentication for the FTP service, you will also need to select FTP Extensibility.)
30+
6. Click Next.
31+
7. On the Confirm Installation Selections page, click Install.
32+
8. On the Results page, click Close.
33+
34+
#### IIS 7.5 for Windows 7:
35+
36+
1. On the taskbar, click Start, and then click Control Panel.
37+
2. In Control Panel, click Programs and Features, and then click Turn Windows Features on or off.
38+
3. Expand Internet Information Services, then FTP Server.
39+
4. Select FTP Service. (Note: To support ASP.NET Membership or IIS Manager authentication for the FTP service, you will also need to select FTP Extensibility.)
40+
5. Click OK.
41+
42+
## Verification Steps
43+
44+
1. Do: ```use auxiliary/scanner/ftp/anonymous```
45+
2. Do: ```set RHOSTS [IP]```
46+
3. Do: ```set RPORT [IP]```
47+
4. Do: ```run```
48+
49+
## Sample Output
50+
```
51+
msf > use auxiliary/scanner/ftp/ftp_version
52+
msf auxiliary(ftp_version) > set RHOSTS 127.0.0.1
53+
RHOSTS => 127.0.0.1
54+
msf auxiliary(ftp_version) > set RPORT 21
55+
RPORT => 21
56+
msf auxiliary(ftp_version) > exploit
57+
58+
[*] 127.0.0.1:21 - FTP Banner: '220 (vsFTPd 3.0.3)\x0d\x0a'
59+
[*] Scanned 1 of 1 hosts (100% complete)
60+
[*] Auxiliary module execution completed
61+
msf auxiliary(ftp_version) >
62+
```

0 commit comments

Comments
 (0)