Improved tools: stegano-tools (#196)

* Improved tools: stegano-tools

* Fixed home
This commit is contained in:
Alex 2022-03-02 21:28:22 +01:00 committed by GitHub
parent ed7117e9eb
commit 299355fdbe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 2 deletions

View file

@ -4,10 +4,16 @@ ctf-tools-pip install --upgrade tinyscript
ctf-tools-pip3 install --upgrade tinyscript
[ -e stegano-tools ] || git clone --recurse https://github.com/dhondta/stegano-tools
source ctf-tools-venv-activate3
mkdir -p bin
for F in `find stegano-tools -type f -iname "*.py"`; do
chmod +x $F
N="${F##*/}"
N="${N%.py}"
ln -s ../../$F bin/$N
P1="`pwd`/$F"
P2="$VIRTUAL_ENV/bin/$N"
echo "$N"
chmod +x $P1
cp $P1 $P2
sed -i '1s/.*/\#\!\$HOME\/\.virtualenvs\/ctftools3\/bin\/python3/' $P2
ln -s $P2 bin/$N
done

7
stegano-tools/uninstall Executable file
View file

@ -0,0 +1,7 @@
#!/bin/bash -ex
for F in paddinganograph stegolsb stegopit stegopvd; do
rm -f $HOME/tools/bin/$F
rm -f $HOME/.virtualenvs/ctftools/bin/$F
rm -f $HOME/.virtualenvs/ctftools3/bin/$F
done