forked from PIG-007/pwnDockerAll
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
102 lines (86 loc) · 2.25 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
#! /bin/bash
apt-get -y update
apt-get -y install tzdata
apt-get -y install vim
apt-get -y install libxml2-dev
apt-get -y install libxslt-dev
apt-get -y install libmysqlclient-dev
apt-get -y install libsqlite3-dev
apt-get -y install zlib1g-dev
apt-get -y install python-dev
apt-get -y install libffi-dev
apt-get -y install libssl-dev
apt-get -y install wget
apt-get -y install gcc
apt-get -y install make
apt-get -y install zip
apt-get -y install build-essential python-setuptools python-pip python-smbus
apt-get -y install libndcursesw5-dev libgdbm-dev libc6-dev
apt-get -y install tk-dev
apt-get -y install openssl
apt-get -y install virtualenv
apt -y install curl
apt-get -y install software-properties-common
add-apt-repository ppa:deadsnakes/ppa
apt-get update
apt -y install python2
##apt-get -y install python3.8.10
curl -sS https://bootstrap.pypa.io/get-pip.py | python3.10
unzip setuptools-36.6.0.zip
cd setuptools-36.6.0
python2 setup.py install
python3 setup.py install
cd ../
tar -zxvf pip-9.0.1.tar.gz
cd pip-9.0.1
python2 setup.py install
python3 setup.py install
python2 -m pip install --upgrade pip
python3 setup.py install
python3 -m pip install --upgrade pip
pip2 config set global.index-url https://pypi.douban.com/simple/
pip3 config set global.index-url https://pypi.douban.com/simple/
cd ../
pip2 install pathlib2
pip2 install pwntools
pip3 install pwntools
cat >> ~/.vimrc << EOF
syntax on
set number
set scrolloff=6
EOF
apt-get -y install git
##apt-get -y install libffi-dev
##apt-get -y install libssl-dev
##apt install libc6-dev-i386
##apt-get -y install lib32z1
git clone https://github.com/pwndbg/pwndbg
cd pwndbg
./setup.sh
cd ../
##git clone https://gitee.com/Piggy007/pwndbg.git
##cd pwndbg
##./setup.sh
##cd ../
git clone https://gitee.com/Piggy007/Pwngdb.git
cp ~/Pwngdb/.gdbinit ~/
sed -i 'N;2 i source ~/pwndbg/gdbinit.py' ~/.gdbinit
## ropper
pip install ropper
## one_gadget
apt-get -y install ruby ruby-dev
gem install one_gadget
## patchelf
apt-get -y install autoconf automake libtool
git clone https://github.com/NixOS/patchelf.git
cd patchelf/
./bootstrap.sh
./configure
make
make check
make install
cd ../
## glibc-all-in-one
git clone https://github.com/matrix1001/glibc-all-in-one
#git clone https://gitee.com/Piggy007/peda.git
apt -y autoremove