hlp and i function updates

master
51x 2017-01-14 16:27:28 +01:00
parent 47acaf40fd
commit 7cdc1d5512
2 changed files with 28 additions and 1 deletions

View File

@ -13,7 +13,7 @@ Works on Debian if the dependencies are met or on Kali. Probably works on Pentoo
Installing full console after you have the dependencies: cp profile_files/.* -R ~/ Installing full console after you have the dependencies: cp profile_files/.* -R ~/
Using only the pentest function can be done be including: pentest_functions.zsh Using only the pentest function can be done by including: pentest_functions.zsh
Functions Functions
@ -52,3 +52,5 @@ help functions
hlp - Get help of the hlp command hlp - Get help of the hlp command
hlprnd - Get random strings (lengths: 8,16,32,64) hlprnd - Get random strings (lengths: 8,16,32,64)
hlp <var> - Get help about <var> - not yet implemented
i - Get information about a topic, use tab after i

View File

@ -2,20 +2,43 @@ debug=1
function everythingworksornot"?" { function everythingworksornot"?" {
echo "really?" echo "really?"
# tba: dependency checks for all functions
} }
function i {
if [ -d "~/.ptz/v3das" ]
then
cat ~/.ptz/v3das/
fi
}
function hlp {
echo "this function is not yet implemented"
if [ $# -ne 1 ]
then
echo "this function is not yet implemented"
return
fi
}
function ton { function ton {
. torsocks on . torsocks on
} }
function tof { function tof {
. torsocks off . torsocks off
} }
function tip { function tip {
wget -qO- https://check.torproject.org/ -U "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0" | egrep -i "Congratulations. This browser is configured to use Tor.|Sorry. You are not using Tor." | uniq wget -qO- https://check.torproject.org/ -U "Mozilla/5.0 (Windows NT 6.1; rv:45.0) Gecko/20100101 Firefox/45.0" | egrep -i "Congratulations. This browser is configured to use Tor.|Sorry. You are not using Tor." | uniq
} }
function wip { function wip {
if [ $RANDOM -gt $RANDOM ] if [ $RANDOM -gt $RANDOM ]
then then
@ -27,6 +50,7 @@ function wip {
# dig +short myip.opendns.com @resolver1.opendns.com # Alternative 2 # dig +short myip.opendns.com @resolver1.opendns.com # Alternative 2
} }
function chkhttpz { function chkhttpz {
echo "HTTP responses" echo "HTTP responses"
wget --spider -S "http://$1:$2/" 2>&1 | grep "HTTP/" wget --spider -S "http://$1:$2/" 2>&1 | grep "HTTP/"
@ -48,6 +72,7 @@ function hlp {
done done
} }
function hlprnd { function hlprnd {
cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-8};echo; cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-8};echo;
cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo; cat /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c${1:-16};echo;