diff --git a/README.md b/README.md index 4ab5fac..976f9d1 100755 --- a/README.md +++ b/README.md @@ -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 - Get help about - not yet implemented +i - Get information about a topic, use tab after i diff --git a/profile_files/.zsh/pentest_functions.zsh b/profile_files/.zsh/pentest_functions.zsh index 91615a0..712a812 100644 --- a/profile_files/.zsh/pentest_functions.zsh +++ b/profile_files/.zsh/pentest_functions.zsh @@ -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;