Adding a default route in Linux. How to define the default gateway.

Adding a default route in Linux is easy. The route command is the best way to do this. ~# route add default gw 172.18.31.1~# route add default gw 172.18.31.1 I used this command on a machine that previously had an IP address in the 192.168.0.xx range and the default gateway was 192.168.0.1. So I had … Read more

How to scan a network for responsive hosts using Kali Linux.

To scan a network for hosts using Kali Linux, the netdiscover command will come in handy. Just give it an IP address and it will find all hosts within that range. I am scanning for all hosts within the range of 172.29.59.1 to 172.29.59.254. root@kali:~/Documents# netdiscover -r 172.29.59.0/24   Currently scanning: Finished! | Screen View: … Read more

How I got the Internet connection working in Ubuntu server 14.03.

I installed Ubuntu server 14.03 in a Virtual Machine and after installation the Internet connection was not working. To fix this I added the nameservers to the /etc/resolv.conf file like this. nameserver 8.8.8.8 nameserver 8.8.4.4nameserver 8.8.8.8 nameserver 8.8.4.4 After saving this file, I ran this command. sudo service resolveconf restartsudo service resolveconf restart This fixed … Read more

Enable copy and paste to and from a VMware Kali Linux instance.

Kali Linux runs very well in a VM, but having copy and paste to and from the Virtual Machine is very helpful. To get this working in VMware Pro 12, install these packages. Firstly, this one. root@kali:~# apt-get install open-vm-toolsroot@kali:~# apt-get install open-vm-tools Then this one. root@kali:~# apt-get install open-vm-tools-desktoproot@kali:~# apt-get install open-vm-tools-desktop Then copy … Read more

How to install Ubuntu server and setup a simple LAMP instance.

Installing Ubuntu server is quite straightforward. Firstly, choose the language. Then the user needs to choose what country they are in. And choose what keyboard layout you are using. After this is out of the way, we get to the main installation tasks. We need to choose a hostname for our server instance. Now we … Read more

Best Software to Protect Your PC

I’m sure most everyone has had the following scenario happen once or twice during there lifetime of owning a computer, or an email for that matter. You log-in to your email account to catch up on work, personal emails, etc.  The first email you see is from your mom.  The subject line is a little weird but … Read more

A simple shell script to create a new Linux user account.

This simple script will help create new user accounts on a Linux system. This is very useful when administering a Linux machine and it is necessary to create a few user accounts. #!/bin/bash   clear   trap "" SIGHUP SIGINT SIGTERM SIGTSTP   # Get username, check if its taken, and if it is the … Read more

Simple Linux commands to get information about your system.

This simple command will print the remaining free space on your hard disk. root@ip-172-31-20-16:~# df -Hla Filesystem Size Used Avail Use% Mounted on /dev/xvda1 32G 9.6G 21G 32% / proc 0 0 0 – /proc sysfs 0 0 0 – /sys none 4.1k 0 4.1k 0% /sys/fs/cgroup none 0 0 0 – /sys/fs/fuse/connections none 0 … Read more

Why you should always turn off WPS on your wireless network.

Many people are using wireless networks with WPS turned on. This allows a user to enter a pin or press a button to allow a new device to connect. But this approach will fall easily to brute force attacks unless the router has rate limiting enabled, this prevents brute forcing the WIFI, although even this … Read more

Some awesome Android or Apple wallpapers for your phone.

Sun shining through grapes on the vine: Wallpaper. Black and white brick wall wallpaper: Wallpaper. Amanita mushrooms and glowing butterflies: Wallpaper. Concrete texture 1080p: Wallpaper. Old Ford car dashboard: Wallpaper. Rocky Mountains mobile wallpaper 1080p: Wallpaper. Railroad tracks glowing in afternoon light: Wallpaper. Push for the end mobile wallpaper: Wallpaper. More HD mobile wallpapers: http://mwp4.me/1080×1920/. … Read more

Linux command line in Mr Robot. Showing some accurate Linux usage.

Linux command line in Mr Robot. This directory listing is showing a few files under the /opt/2/task/2/fd1info directory. The fsociety file is the one he was looking for. This file is only 4096 bytes in size, so does not contain too much juicy information. Or does it? The screenshot below, shows a computer store in … Read more

Some modern themes for your Linux desktop.

Themes This blog post: http://jfnlinuxproject.blogspot.com.au/2015/01/windows-10-theme.html has a list of links and screenshots that show a themed desktop that looks roughly like Windows 10. This does need more work. But I am sure that you could make a Linux desktop resemble Windows 10 if you so wished. In time, there will be an actual Windows 10 … Read more

Find where an executable is on your Linux system.

Finding the location of an installed program can be annoying. But this is how to find where a program is. The whereis(1) command will print out the installed locations of various programs. darkstar:~/Documents> whereis tcsh tcsh: /usr/bin/tcsh /bin/tcsh /usr/share/man/man1/tcsh.1.gzdarkstar:~/Documents> whereis tcsh tcsh: /usr/bin/tcsh /bin/tcsh /usr/share/man/man1/tcsh.1.gz The find command will also allow you to locate an … Read more

How to fork off a process from a program in C. Simple netcat example.

This post will explain how to fork() off a daemon process from a program in C. This is good if you wish to run a process on a machine after the program has finished and you have been returned to the command prompt. The sample program below uses the int daemon(int nochdir, int noclose); function … Read more