[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


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


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

~/.vimrc < syntax on
filetype indent plugin on


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]"


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".


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


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

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


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" ]]
exec java ${JMEM} -XX:PermSize256M -jar "${BASEDIR}/zap.jar" $*
echo "[+] Going through socks5 localhost:9150"
exec java ${JMEM} -XX:PermSize256M -DsocksProxyHost127.0.0.1 -DsocksProxyPort9150 -jar "${BASEDIR}/zap.jar" $*


Before launching it do the following :

service postgresql start
service metasploit start
service metasploit stop

Mac Address change on boot

for mac in eth0 wlan0
do echo changing $mac
ifconfig $mac down
macchanger -a $mac
ifconfig $mac up

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