mirror of
https://github.com/zardus/ctf-tools
synced 2024-12-04 18:29:26 +00:00
Improved tools: stegano-tools (#196)
* Improved tools: stegano-tools * Fixed home
This commit is contained in:
parent
ed7117e9eb
commit
299355fdbe
2 changed files with 15 additions and 2 deletions
|
@ -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
7
stegano-tools/uninstall
Executable 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
|
Loading…
Reference in a new issue