Miscellaneous Reminder

Not really a post, just a small collection of things I keep forgetting.

running chrome and vlc as root – http://ksiiitm.blogspot.com/2011/05/running-chromium-browser.html

running network miner in Linux –

http://geek00l.blogspot.com/2008/12/drunken-monkey-running-network-miner.html

execute -m in Metasploit – you can run a file from your machine in memory!!!
execute -f FiLE  -H -i -m -d

Find version info
cat /etc/issue
cat /etc/lsb-release

cat /proc/version
uname -a
rpm -q kernel
dmesg | grep Linux

What’s happening?
lsof -i
netstat -antup
arp -e
chkconfig –list
ps -ef
cat /etc/service

what’s installed
ls -alh /usr/bin
ls -alh /sbin
dpkg -l

did you know?
Having troubles getting database support running on Metasploit on BackTrack5?
Getting a message:
[*] No Active Driver
[*]        Available:
blank
Tried everything you could thing of to get MySql or Postgresql working?
It could be because of the way you started msfconsole.
If you start it by /pentest/exploits/framework3/msfconsole or /opt/framework/msf3/msfconsole it does not set the environment variables properly.
Instead start msfconsole from the menu or from /usr/local/bin/msfconsole.
Tip of the hat to http://thisismyeye.blogspot.com