How to generate a random password using the command line.

The shuf command for Linux allows a command-line user to select a given number of random words from a wordlist. [jason@localhost ~]$ shuf -n 8 /usr/share/dict/words amphivasal thoracically U. bluet Dabih thioamid taxiing convictism This can be used to generate a word based password using piping. The example below shows how to generate a random […]

How to add a Red Hat Linux 7.2 subscription after installation.

To add a subscription after installing Red Hat Enterprise Linux 7.2, type this command as root. [root@localhost jason]# subscription-manager register –username USERNAME –password "PASSWORD" This will setup your Red Hat subscription. Then enter this command. This will refresh all of the information on your machine. [root@localhost jason]# subscription-manager refresh And finally, run this command to […]

Encryption under threat after latest Paris terror attacks.

The latest Paris terrorist attacks are the impetus for more discussion about encryption. It is claimed that the terrorists used services such as TOR or a VPN to hide their traffic on the Internet when discussing their plans before the attacks. This will of course lead to more plans to tighten Internet monitoring and restricting […]

New Linux ransomware targeting machines in the wild.

There is a new Linux ransomware in the wild that is targeting machines by encrypting the home directories and locking users out of their files until they visit a deep web site and pay a ransom. This is why you should have regular backups of your files in case your Linux directories are encrypted. the […]

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

To install NT on Linux and get the system time updating automatically, firstly install the NTP client. jason@darkstar:~$ sudo apt-get install ntp Then install the ntpdate utility. sudo apt-get install ntpdate Then you may synchronize the time on your machine with the Internet time server. jason@darkstar:~$ sudo ntpdate -s jason@darkstar:~$ ntpstat synchronised to NTP […]

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 […]

Firefox tips and tricks for habitual Internet users.

To open the Firefox developer tools, press Ctrl-Shift-K. This is good if you have Firebug installed, as F12 will open it instead. To take a full-page screenshot of a web site, press Shift-F2 and then type this command and hit press ENTER. screenshot –fullpage This will be saved in the ~/Downloads folder by default. There […]

How to display excerpts in WordPress posts.

To display post excerpts in WordPress, put this code in the index.php <?php if(is_single() || is_page()) { ?> <?php the_content(__('(more…)’)); ?> <?php } else { ?> <?php the_excerpt(__('(more…)’)); ?> <? } ?> This will display full posts when the post is clicked, but excerpts on the main blog page. This is a simple way to […]

How to set an IP address for a VLAN on a Cisco 2960G switch.

To set an IP address on a VLAN on a Cisco switch, firstly access the configuration section for the VLAN in configuration mode. arya(config)#interface vlan 1 Then the administrator may set an IP address for the VLAN. arya(config-if)#ip address Then you are all set. To save the running configuration of the switch, use […]

Get Prolific USB-serial adapter working with Windows 8.

Getting the Prolific USB serial adapter working with Windows 8 can be difficult. Especially if you are studying for CCNA and you need to access a 2960G switch on Windows with Putty. As strange as it may look, you need an outdated driver to make it work. The only working version I have found is […]

Thermal paste application methods.

This video is a demonstration of thermal paste application methods with various brands. This will assist with application on your PC when installing a CPU.

How to strip comments out of configuration files in Linux.

Stripping comments out of a configuration file can be useful when submitting it to a forum for others to study. This is how to do this. ubuntu /etc/ssh $ grep -vE ‘^#’ sshd_config This will print the file to the terminal, allowing the user to copy the text with all comments stripped out. Very useful […]

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::: The […]

Mandatory data retention laws passed the senate this week.

Mandatory data retention laws passed the senate this week. The premise is to fight against Islamic terrorist attacks by retention of ISP customer data. But this will not work out right from the start. ISP`s are confused by the 400 page document that outlines what they must retain, and they are not ready to capture […]

Search for a specific package with dnf on Fedora 22.

To find a specific package that offers a certain file, the whatprovides parameter to dnf will do what you wish. Here is an example, I am looking for all packages that provide the vim command. [jason@hackerbox Documents]$ dnf whatprovides "*/vim" Last metadata expiration check performed 26 days, 19:55:19 ago on Tue Sep 15 12:49:19 2015. […]