Defcon1

If you have a backup and you never test that backup you do not have a backup. - Unknown

I do not remember where I read this quote but it always resonated with me. Especially sense disaster recovery was one of my major responsibilities for a globally used web application. Much …

more ...

Get the exit code of a bash command

If you want to see the exit status of a Linux shell command in bash use the variable
$?
This will return the exit status of the last command.

Now this will only give you the right most exit code if you are piping a command.

~> ls | sort

the last command …

more ...

LVM: Move a logical volume into a new volume group.

OS: nix
Require: LVM, the power of root
Skill Level:* Intermediate

Here is how to move a logical volume into a new volume group in LVM using vgsplit

Lets say you want to change the volume group settings for some of your logical volumes or you just want the logical …

more ...

Getting Started with Metasploit in Kali Linux

OS: Kali Linux
Skill Level: Intermediate
Prerequisites: Linux CLI, Basic Networking Concepts, PostgresSQL

Metasploit is the closet thing to push button security and penetration testing one can find. It is by far the most popular security testing framework. Metasploit has thousands of modules and is growing daily with a very …

more ...


File count from the command line on a Linux system

OS: Linux
Skill Level: Beginner
Prerequisites: Basic Linux CLI and regular expression understanding

Intro:

When a folder only has a few items in it this trick is not that important, but let say the folder you are looking at has 754,586 files in it? Here is a quick trick …

more ...

SSH Login Banner

Want a custom banner or warning message when a user connects via SSH on your server?

Skill level: Beginner
OS: Linux
Prerequisites: Understand how to edit a file with vim or other text editor in Linux.
Dependencies: Config files:
/etc/ssh/sshd_config /etc/issue.net

  1. Open /etc/ssh/sshd_config and …
more ...