kg3 / Basic_Bash_Script_Botnet

A very basic; completely detectable bot-net for a simple capture the flag game

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Basic_Bash_Script_Botnet

A simple (very detectable) botnet made for a capture the flag game based on Mafia-2007

Servers are running Unbuntu 7.10

  • The ctf_sploiting.py script utilizes two code execution vulnerabilities to download the exp.sh script
  • After executing the exp.sh it uses a priviledge exploit to obtain root and re-download itself and all tools as root
    • All tools and activities are done in /dev/shm/.tools/
  • When cmnd.sh is executed (from the first run of exp.sh) the 'cmnd.sh -c' command is inserted into /etc/crontab directly and ran every minute
  • 'cmnd.sh -c' grabs a file from the server called: file_[last 3 digits of IP]; and then executes every line/command of that file as root
    • Probably overkill to send commands through the priv-esc, since crontab runs as root, but that's what happens coding in the 'am
  • 'dump.sh' calls all the locations of the flags and dumps them to a file

List of exploits used

About

A very basic; completely detectable bot-net for a simple capture the flag game


Languages

Language:Python 61.8%Language:Shell 38.2%