2020-11-25 14:30:43 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
sudo apt-get --quiet --assume-yes update
|
|
|
|
sudo apt-get --quiet --assume-yes upgrade
|
|
|
|
|
|
|
|
sudo apt-get --quiet --assume-yes install build-essential
|
|
|
|
sudo apt-get --quiet --assume-yes install gdb
|
|
|
|
sudo apt-get --quiet --assume-yes install gcc-multilib
|
|
|
|
sudo apt-get --quiet --assume-yes install zsh
|
2020-11-26 17:55:08 +00:00
|
|
|
sudo apt-get --quiet --assume-yes install libncurses5 libncurses5-dev libncursesw5
|
2020-11-25 14:30:43 +00:00
|
|
|
|
2020-11-26 17:55:08 +00:00
|
|
|
sudo apt-get --assume-yes --quiet install git libssl-dev libffi-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev
|
|
|
|
|
|
|
|
## pyenv
|
|
|
|
cd /home/vagrant/ && curl https://pyenv.run | bash
|
|
|
|
echo 'export PATH="/home/vagrant/.pyenv/bin:$PATH"' >> /home/vagrant/.bashrc
|
|
|
|
echo 'eval "$(pyenv init -)"' >> /home/vagrant/.bashrc
|
|
|
|
echo 'eval "$(pyenv virtualenv-init -)"' >> /home/vagrant/.bashrc
|
|
|
|
|
|
|
|
export PATH="/home/vagrant/.pyenv/bin:$PATH"
|
|
|
|
eval "$(pyenv init -)"
|
|
|
|
eval "$(pyenv virtualenv-init -)"
|
|
|
|
|
|
|
|
pyenv install 3.9.0
|
|
|
|
pyenv global 3.9.0
|
|
|
|
|
|
|
|
python3 -m pip install --upgrade setuptools
|
2020-11-25 14:52:07 +00:00
|
|
|
python3 -m pip install --upgrade pip
|
|
|
|
python3 -m pip install --upgrade pwntools
|
2020-11-25 18:55:01 +00:00
|
|
|
python3 -m pip uninstall --yes ROPgadget
|
|
|
|
|
|
|
|
cd /home/vagrant/cw && ./ropinstall.sh
|
2020-11-25 14:52:07 +00:00
|
|
|
|
2020-11-25 14:30:43 +00:00
|
|
|
sudo apt-get clean
|
|
|
|
|
2020-11-25 14:52:07 +00:00
|
|
|
echo ":)"
|