Install and configure a ProFTPD instance in KaliLinux
1. Install ProFTPD
In
Root @ kali :~ # Wget ftp://ftp.proftpd.org/historic/source/proftpd-1.3.0a.tar.gz
Root @ kali :~ # Tar-xf proftpd-1.3.0a.tar.bz2 (or tar zxvf proftpd-1.3.0a.tar.gz)
Root @ kali :~ # Cd proftpd-1.3.0a
Root @ kali :~ #./Configure -- prefix =/var/proftpd -- sysconfdir =/etc // set the installation directory/var/proftpd, configuration file directory/etc
Note: if an error occurs in this step
Configure: error: C ++ preprocessor "/lib/cpp" sanity check
Check See 'config. log' for more details
It indicates that the C ++ compiler package is not installed or the kernel header package is missing.
Solution:
1. Run apt-get install glibc-headers gcc-c ++ on the terminal.
2, apt-get install build-essential
Uname-r
Apt-get install linux-headers-'kernel version'
Root @ kali:/proftpd-1.3.0a # make // compile
Root @ kali:/proftpd-1.3.0a # make install // install
2. Configure ProFTPD
Root @ kali:/proftpd-1.3.0a # groupadd kevin // create the kevin Group
Root @ kali:/proftpd-1.3.0a # useradd kevin-g kevin-d/var/ftp-s/sbin/nologin // Add User kevin
Note: you must add a line "/sbin/nologin" to the/etc/shells file (otherwise, a logon Failure error occurs during ftp logon)
Root @ kali:/proftpd-1.3.0a # passwd kevin // SET Password
Root @ kali:/proftpd-1.3.0a # mkdir/var/ftp // create directory
Root @ kali:/proftpd-1.3.0a # chgrp kevin/var/ftp // change the group to which the ftp directory belongs to kevin
Root @ kali:/proftpd-1.3.0a # chmod-R 755/var/ftp // change ftp directory permission to master all permissions, same group and others for read permission
Root @ kali:/proftpd-1.3.0a # vim/etc/proftpd. conf // modify the configuration file
Change User nobody to User kevin and Group nogroup to Group kevin.
Root @ kali:/proftpd-1.3.0a #/var/proftpd/sbin/proftpd // start the service
Use ifconfig to view the IP address, for example, 192.168.121.129.
Root @ kali :~ # Ftp 192.168.121.129
Enter the new user name and password.
Alternatively, enter ftp: // 192.168.121.129 in the browser and log on to the page.