Skip to content

Commit de650e7

Browse files
committed
Use ctftools virtualenv instead of system pip
1 parent 182dbc5 commit de650e7

File tree

9 files changed

+30
-11
lines changed

9 files changed

+30
-11
lines changed

barf/install

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,27 @@
11
#!/bin/bash
22

33
# it's z3!
4-
pip install https://github.com/zardus/z3/archive/pypy-and-setup.zip
4+
ctf-tools-pip install https://github.com/zardus/z3/archive/pypy-and-setup.zip
5+
6+
source ${VIRTUALENVWRAPPER_SCRIPT}
7+
workon ctftools
58

69
# pybfd can't be installed with pip
710
git clone --depth 1 https://github.com/Groundworkstech/pybfd
811
cd pybfd/
912
python setup.py install
1013
cd ..
1114

15+
# install pyasmjit
16+
git clone --depth 1 https://github.com/programa-stic/pyasmjit.git
17+
cd pyasmjit
18+
python setup.py install
19+
cd ..
20+
1221
# install barf
1322
git clone --depth 1 https://github.com/programa-stic/barf-project
1423
cd barf-project/
15-
pip install -e pyasmjit/
16-
pip install -e barf/
24+
python setup.py install
1725
cd ..
1826

1927
mkdir -p bin

barf/uninstall

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
#!/bin/bash
22

3-
pip uninstall -y barf pyasmjit
3+
ctf-tools-pip uninstall -y barf pyasmjit
44
rm -f $VIRTUAL_ENV/bin/BARFgadgets

binwalk/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash -e
22

33
git clone --depth 1 https://github.com/devttys0/binwalk.git
4-
pip install -e binwalk
4+
ctf-tools-pip install -e binwalk
55

66
mkdir -p bin
77
ln -s $VIRTUAL_ENV/bin/binwalk bin

panda/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cp distorm3/make/linux/*.so distorm3/*.a lib
1111
mkdir -p include
1212
cp distorm3/include/*.h include
1313

14-
pip install -U pycparser
14+
ctf-tools-pip install -U pycparser
1515

1616
sed -i -e "s|/usr/local|$PWD|" panda/qemu/build.sh
1717
export QEMU_CFLAGS="-I $PWD/include -L $PWD/lib"

ropper/install

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
[ -e ropper ] || git clone --depth 1 https://github.com/sashs/Ropper.git ropper
44

5-
pip install --no-use-wheel --no-cache-dir -I capstone
6-
pip install filebytes
7-
pip install -e ropper
5+
ctf-tools-pip install --no-use-wheel --no-cache-dir -I capstone
6+
ctf-tools-pip install filebytes
7+
ctf-tools-pip install -e ropper

ropper/test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
#!/bin/bash -e
22

3+
set +e
4+
source ${VIRTUALENVWRAPPER_SCRIPT}
5+
workon ctftools
6+
set -e
7+
38
[ $(ropper --file /bin/false | wc -l) -gt 400 ] || exit 1
49
exit 0

shellsploit/install

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
git clone https://github.com/b3mb4m/shellsploit-framework.git
44
cd shellsploit-framework
5+
6+
set +e
7+
source ${VIRTUALENVWRAPPER_SCRIPT}
8+
workon ctftools
9+
set -e
510
python easyinstall.py install
611
cd ..
712

813
mkdir -p bin
914
cd bin
1015
ln -sf $VIRTUAL_ENV/bin/shellsploit .
1116
cd ..
17+
deactivate

sqlmap/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/bash
22

33
git clone --depth 1 https://github.com/sqlmapproject/sqlmap.git
4-
pip install pymysql psycopg2 pysqlite2 python-ntlm
4+
ctf-tools-pip install pymysql psycopg2 pysqlite2 python-ntlm
55
mkdir bin
66
cd bin
77
ln -s ../sqlmap/sqlmap.py .

virtualsocket/install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
git clone --depth 1 https://github.com/antoniobianchi333/virtualsocket.git
2-
pip install -e virtualsocket/
2+
ctf-tools-pip install -e virtualsocket/
33

0 commit comments

Comments
 (0)