overflow tmp folder on aws

When you receive an error message like

scp: writing /tmp/mkinitramfs_Y2BgCE/ [..] : No space left on device

check how big your tmp folder is. If it looks like

overflow        1.0M  1.0M     0 100% /tmp

your volume was probably full at a time. After you allocated new disk space umount your volume with

umount /tmp

If you receive the error “umount: /tmp: device is busy.” run “lsof /tmp/” to see what is using it.

After umounting /tmp your system should work fine again. You can prevent /tmp from reappearing after a restart with

echo 'MINTMPKB=0' > /etc/default/mountoverflowtmp

 

How to run a VMware image in Virtualbox

Having just downloaded Kali Linux I was wondering how to convert its VMware image to VirtualBox, thankfully I quickly found a page that just recommended to create a new virtual machine and add the VMware image as a disk: http://opendirective.net/blog/2014/07/on-converting-a-vm-from-vmware-to-virtualbox/

So if you want to run Kali Linux in Virtualbox, just

a) Create a new virtual machine in VirtualBox
b) Slect ‘Use an existing virtual hard drive file’ and select the Kali-Linux image (e.g. Kali-Linux-1.1.0-vm-amd64, the one without -s00x in the name)

By they way, the default login for Kali Linux is root / toor

 

Turn on SNMP in Asuswrt-Merlin

Asus routers like the RT-N66U have support for SNMP in the latest firmware. Here is how to enable and test it (here using the awesome Asuswrt-merlin alternative firmware ).

Go To Administration and click on SNMP. Enable SNMP, enter a system name, system location, SNMP Get Community (just any text, this acts like a password). Click on Apply to activate the changes.

asus-snmp-settings

To test if SNMP is working you can use the snmpwalk command. If your router IP address is 192.168.1.1 and your SNMP Get Community string is ‘public’, run

snmpwalk -Os -c public -v2c 192.168.1.1 iso.3.6.1.2.1.1.1

The output should look like “iso.3.6.1.2.1.1.1.0 = STRING: “Linux RT-N66U 2.6.22.19 #1 Thu Nov 20 13:57:15 EST 2014 mips” if SNMP is working. If it is not working you will receive a message like “Timeout: No Response from 192.168.1.1”.

To get more data from SNMP run ‘snmpwalk -Os -c public -v2c 192.168.1.1’

 

USB stick read only

If you cannot write on your USB stick on Debian please check if you have entries like this in your /etc/fstab file.

/dev/sdb1       /media/usb0     auto    rw,user,noauto  0       0
/dev/sdb2       /media/usb1     auto    rw,user,noauto  0       0

If you do, please comment them out, restart your computer and try to mount your USB stick again.

 

vulnerable to POODLE

How can I detect if my website is vulnerable to POODLE?

You can use Nmap to check if your site is vulnerable to POODLE by supporting SSLv3.

nmap --script ssl-enum-ciphers -p 443 ghost2.eu.saecas.com

If it is and you are running Apache you can disable SSLv3 in your virtual host by add the line

SSLProtocol All -SSLv2 -SSLv3

For more information and Nginx and other services please see http://askubuntu.com/questions/537196/how-do-i-patch-workaround-sslv3-poodle-vulnerability-cve-2014-3566.