BOF for Linux
Linux Buffer Overflow Lab Setup
1. Install Dependencies
#!/bin/bash
sudo apt-get update -y
sudo apt-get install -y edb-debugger
sudo dpkg --add-architecture i386
echo "foreign-architecture i386" | sudo tee /etc/dpkg/dpkg.cfg.d/multiarch
sudo apt-get update
sudo apt-get install libc6:i386 libncurses5:i386 libstdc++6:i386
sudo apt-get install multiarch-support
sudo apt-get install libxaw7 libxaw7-dev -y
sudo apt install checksec
wget www.offensive-security.com/crossfire.tar.gz
tar -zxf crossfire.tar.gz
sudo cp -r crossfire /usr/games/
checksec --file=/usr/games/crossfire/bin/crossfire2. Disable NX
sudo nano /etc/default/grub
# Add this line:
# GRUB_CMDLINE_LINUX_DEFAULT="quiet noexec=off noexec32=off"
sudo update-grub3. Fuzzing (fuzzing.py)
4. Controlling EIP (locate_eip.py)
5. Locating Space for Shellcode (locate_shellcode.py)
6. Checking for Bad Characters (find_bad_characters.py)
7. Find Return Address (exploit.py)
Last updated
Was this helpful?