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 ~/
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
@ -52,3 +52,5 @@ help functions
hlp - Get help of the hlp command
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"?" {
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 {
. torsocks on
}
function tof {
. torsocks off
}
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
}
function wip {
if [ $RANDOM -gt $RANDOM ]
then
@ -27,6 +50,7 @@ function wip {
# dig +short myip.opendns.com @resolver1.opendns.com # Alternative 2
}
function chkhttpz {
echo "HTTP responses"
wget --spider -S "http://$1:$2/" 2>&1 | grep "HTTP/"
@ -48,6 +72,7 @@ function hlp {
done
}
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:-16};echo;