Skip to content

Instantly share code, notes, and snippets.

@suk-6
Last active May 19, 2024 11:22
Show Gist options
  • Save suk-6/7fadf6bb801992f2aa2a53993e8bcedd to your computer and use it in GitHub Desktop.
Save suk-6/7fadf6bb801992f2aa2a53993e8bcedd to your computer and use it in GitHub Desktop.
#!/bin/bash
export DEBIAN_FRONTEND=noninteractive
apt update
apt install vim git gcc netcat ssh curl wget net-tools gdb sudo zsh tmux python3 python3-pip python3.10-venv libffi-dev build-essential libssl-dev libc6-i386 libc6-dbg libgl1-mesa-glx gcc-multilib tree make -y
chsh -s /usr/bin/zsh
dpkg --add-architecture i386
apt update
apt install libc6:i386 -y
python3 -m pip install --upgrade pip
pip3 install unicorn
pip3 install keystone-engine
pip3 install pwntools
pip3 install ropgadget
apt install libcapstone-dev -y
apt install ruby-full -y
gem install one_gadget seccomp-tools
git clone https://github.com/longld/peda.git ~/.gdb-peda
echo "source ~/.gdb-peda/peda.py" >> ~/.gdbinit
sh -c "$(wget -O- https://github.com/deluan/zsh-in-docker/releases/download/v1.1.5/zsh-in-docker.sh)" -- \
-p https://github.com/zsh-users/zsh-autosuggestions \
-p https://github.com/zsh-users/zsh-completions \
-p https://github.com/zsh-users/zsh-syntax-highlighting
curl -sLf https://spacevim.org/install.sh | bash
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | zsh
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
echo '[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"' >> ~/.zshrc
nvm install --lts
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
apt update
apt install -y yarn
echo "alias python=python3" >> ~/.zshrc
echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment