How to setup NTP on Ubuntu to set the system time automatically.

To install NTP on Linux and update the system time automatically from the Internet, firstly install the NTP client. jason@darkstar:~$ sudo apt-get install ntpjason@darkstar:~$ sudo apt-get install ntp Then install the ntpdate utility. sudo apt-get install ntpdatesudo apt-get install ntpdate Then you may synchronize the time on your machine with the Internet time server. jason@darkstar:~$ … Read more

More commands to get information about your network adapter.

There are a few commands available in Red Hat Linux to get information about your network adapter. Here are a couple. The ifstat command returns information about the network throughput of your adapter. [jason@darknet ~]$ ifstat #kernel Interface RX Pkts/Rate TX Pkts/Rate RX Data/Rate TX Data/Rate RX Errs/Drop TX Errs/Drop RX Over/Rate TX Coll/Rate lo … Read more

How to crack a SHA512 Linux password hash with oclHashcat on Linux.

Cracking a SHA512 Debian password hash with oclhashcat on Debian 8.0. I am using a Radeon HD6670 card and I created a user with the crappy password of “password”. Then I downloaded oclHashcat 1.37 and used this to crack the password using the GPU. This is the password hash in the /etc/shadow file. fred:$6$5l70Gupv$xBTxhCSexudn5jJ9hampIfTK0KIR3nqK1K1Rxye.OA5obtKArO7jgftjJtVSdp31MPxItEPmOuWhbgBvp0wqn.:16737:0:99999:7:::fred:$6$5l70Gupv$xBTxhCSexudn5jJ9hampIfTK0KIR3nqK1K1Rxye.OA5obtKArO7jgftjJtVSdp31MPxItEPmOuWhbgBvp0wqn.:16737:0:99999:7::: The … Read more

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

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

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