mirror of https://github.com/n1nj4sec/pupy.git
Add script to setup basic env in termux
This commit is contained in:
parent
c3c5e8da2d
commit
f73f1ae776
|
@ -0,0 +1,29 @@
|
|||
#!/bin/sh
|
||||
|
||||
apt update
|
||||
pkg upgrade -y
|
||||
|
||||
pkg install -y python2-dev curl clang libcrypt-dev libffi-dev openssl-dev \
|
||||
automake autoconf libtool make pkg-config libuv-dev
|
||||
|
||||
ln -fs /data/data/com.termux/files/usr/bin/python2 /data/data/com.termux/files/usr/bin/python
|
||||
ln -fs /data/data/com.termux/files/usr/bin/pip2 /data/data/com.termux/files/usr/bin/pip
|
||||
|
||||
python2 -m pip install --global-option 'build_ext' --global-option '--use-system-libuv' pyuv
|
||||
python2 -m pip install -r pupy/requirements.txt
|
||||
python2 -m pip install --upgrade --force-reinstall pycryptodome
|
||||
|
||||
mkdir -p ~/netbase/wireshark/share/wireshark
|
||||
|
||||
curl -L http://http.debian.net/debian/pool/main/n/netbase/netbase_5.4.tar.xz | \
|
||||
tar -C ~/netbase -Jxf -
|
||||
curl -qL 'https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf' \
|
||||
> ~/netbase/wireshark/share/wireshark/manuf
|
||||
|
||||
for f in protocols ethertypes services; do
|
||||
sed -i /data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/data.py \
|
||||
-e "s@/etc/$f@/data/data/com.termux/files/home/netbase/netbase-5.4/etc-$f@g"
|
||||
done
|
||||
|
||||
sed -i /data/data/com.termux/files/usr/lib/python2.7/site-packages/scapy/data.py \
|
||||
-e 's@/opt/wireshark@/data/data/com.termux/files/home/netbase/wireshark@g'
|
Loading…
Reference in New Issue