diff --git a/.zshrc b/.zshrc index 44f5c6a..11fa85c 100644 --- a/.zshrc +++ b/.zshrc @@ -66,7 +66,6 @@ alias df='df -h' alias weechat='TERM=screen-256color weechat' alias lock='xscreensaver-command --lock' hash htop 2>/dev/null && alias top='TERM=screen-256color htop' -hash dig 2>/dev/null && alias istheinternetonfire='dig +short txt istheinternetonfire.com' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' @@ -77,6 +76,17 @@ if hash chromium 2>/dev/null; then } fi +if hash dig 2>/dev/null; then +istheinternetonfire() { + txt=$(dig +short txt istheinternetonfire.com) + if hash cowsay 2>/dev/null; then + echo "$txt" | cowsay + else + echo "$txt" + fi +} +fi + stop_censorship() { msg="Halte à la censure administrative du web !" for ip in "90.85.16.50" "90.85.16.51" "90.85.16.52"