Nmap cheat sheet

Nmap cheat sheet

Here is a compliation of the best Nmap cheat sheet

Nmap Target Selection
Scan a single IP    nmap 192.168.1.1
Scan a host    nmap www.testhostname.com
Scan a range of IPs    nmap 192.168.1.1-20
Scan a subnet    nmap 192.168.1.0/24
Scan targets from a text file    nmap -iL list-of-ips.txt

These are all default scans, which will scan 1000 TCP ports. Host …Read More

Install LEMP Server (Nginx, MySQL or MariaDB, PHP And phpMyAdmin) On Ubuntu 14.10/14.04/13.10

Install LEMP Server (Nginx, MySQL or MariaDB, PHP And phpMyAdmin) On Ubuntu 14.10/14.04/13.10

LEMP is a combination of the operating system and open-source software stack. The acronym LEMP comes from the first letters of Linux, Nginx(engine-x) HTTP Server, MySQL database, and PHP/Perl/Python.
In this tutorial, let us see how to install Nginx, MySQL or MariaDB, PHP and phpMyAdmin on Ubuntu 14.10.
Install Nginx

Nginx (pronounced as …Read More

Software Raid Grub issues

Software Raid Grub issues

raid (mdadm / software raid) issues with grub
Playing around on my labrat I realized that sometimes EL/Centos (6.5 when writing this) messes up booting when using Software raid.

When typical stuff like grub-install from a rescue console doesn’t work:

Or trying to boot from /boot (/dev/md0):

# grub-install /dev/md0

Let’s try something else:

grub> root (hd0,0)
root …Read More