[zack@localhost]$ cat ~/randomNotes

Kali to do :

In it's current version, the pentest linux distribution needs some tweaking to be more fast and furiouss come the fun time. #Draft #Kali #Tweaks

misc

root/toor for the love of I/O change it ! Even if you are going to use it for this session only ! If not for security then for priciples

~/.vimrc

And there be light ! You'll be reading and writing code faster with some syntax highlighting !

~/.vimrc < syntax on
filetype indent plugin on

~/.screen.rc

A drop of color and data in our screen is always welcome !

~/.screenrc < caption always "%?%F%{ BW}%:%{ Wk}%? [%h] %n %t"
hardstatus alwayslastline "%{ BW} %-Lw%{ WB}%n+%f %t%{-}%+Lw %[%d/%m/%y %0c]"

Shortcuts

Productivity is the key, so let's make up some neat shortcuts : Navigate to Applications > System tools > Preferences > System Settings > Keyboard > Shortcuts .
Or, go l33t and type "gnome-control-center keyboard". From there, you can add new shortcuts by pressing "+" and putting a command ie : "gnome-terminal" then by bind it to some keyboard combination ie "Ctrl+alt+t".

TOR

Remember how i was telling you should behave by changing the toor pass earlier ? Well now, i'm gonna do the exact opposite showing you how to launch tor with root ...


vi start-tor-browser
if ["`id -u`" -eq 0]; then
complain "The Tor Browser Bundle should not be run as root. Exiting."
#exit 1
fi

proxychains

Just fix the port, if you are using tor bundle.
vim /etc/proxychains.conf
socks5 127.0.0.1 9150

testit : /usr/lib/proxychains3/proxyresolv www.4sec.fr

ZAP

Want to make the awesome OWASP ZAP tor friendly ? Just open the bash script zap.sh with your favorite text editor and add "-DsocksProxyHost127.0.0.1 -DsocksProxyPort9150" to the java command line.

vim /usr/share/zaproxy/zap.sh

if [[ "$1" "untor" ]]
then
exec java ${JMEM} -XX:PermSize256M -jar "${BASEDIR}/zap.jar" $*
else
echo "[+] Going through socks5 localhost:9150"
exec java ${JMEM} -XX:PermSize256M -DsocksProxyHost127.0.0.1 -DsocksProxyPort9150 -jar "${BASEDIR}/zap.jar" $*
fi

Armitage

Before launching it do the following :

service postgresql start
service metasploit start
service metasploit stop

Mac Address change on boot

#!/bin/sh
for mac in eth0 wlan0
do echo changing $mac
ifconfig $mac down
macchanger -a $mac
ifconfig $mac up
done

[*]Add it to startup / or bin it and ln -s cp script.sh /etc/init.d/ update-rc.d mac.sh defaults xxxx.