Fixed the PHP date code.

I have fixed my PHP date code, major facepalm when I had a default date hardcoded in the PHP… Should be all good now.


Read more...

Ubuntu 16.04 sources.list file. Might be useful.

This sources.list file might be useful for an Ubuntu desktop user who has overwritten their file and needs a new one. ## SOURCES LIST FOR UBUNTU 16.04 LTS XENIAL XERUS ## ALSO FOR XUBUNTU 16.04, LUBUNTU 16.04 ## AND KUBUNTU 16.04 ## From: http://sites.google.com/site/easylinuxtipsproject ## This list is for the Main server; you might want […]


Read more...

Secret easter eggs in Linux software.

There are a few Linux easter eggs out there. The above screenshot shows the Douglas Adams quote in VIM. Type :42 in the command mode to get this quote. The apt-command for Ubuntu, Debian and Mint has had an embedded easter egg for quite a while. If you type the help command for apt-get, you […]


Read more...

Create aliases with the Linux command line to make commands easier to remember.

Creating an alias for bash makes remembering a command easier. This is how longer commands may be simplified. Here is an example. [[email protected]:~] alias lseasy=’ls -lAhF’ This is the output. [[email protected]:~/Videos] lseasy total 4.8G -rw-r–r– 1 jason jason 18 Mar 24 13:34 authrootseq.txt -rw-r–r– 1 jason jason 23K Mar 24 13:55 heap2.htm -rw-r–r– 1 jason […]


Read more...

Windows 10 bash shell not very impressive at all.

The new Windows 10 bash shell is not very impressive once you get it installed. I have tried it and I could not ping websites even though Microsoft Edge could access the Internet. It is possible to install packages if these lines are added to the /etc/hosts file. 91.189.91.14 archive.ubuntu.com 91.189.92.201 security.ubuntu.com But using ping […]


Read more...

How to get weather information with curl on Linux.

The curl command on Linux may be used to get weather information from the Internet. The curl wttr.in/”new york” command will retrieve weather information from wttr.in. [[email protected]:~] curl wttr.in/"new york" Weather for City: New York, United States of America   \ / Clear .-. 6 – 8 °C ― ( ) ― ↓ 9 km/h […]


Read more...

Windows 10 bash shell 10.0.14316 very good for getting system information.

The new bash shell in Windows 10 build 10.0.14316 is the best addition to Windows 10 yet. Here I am getting information about the CPU. [email protected]:/mnt/c/Users/johnc# cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 60 model name : Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz stepping : 3 microcode : […]


Read more...

Windows 10 getting a Linux shell.

Windows 10 is getting a bash shell in the summer release. This is a couple of months away. But here are a couple of screenshots from developers I have found on the web that show what this will look like. Here a person is installing the bash shell using CMD. Now this is the bash […]


Read more...

Linux bash shell coming to Windows 10.

Apparently, the Linux bash shell is coming to Windows 10. This will offer a fully functional Linux bash prompt in the Windows app store, a good alternative to Powershell. This is in partnership with Canonical who work on the Ubuntu Linux distribution. As long as this offers tools such as dig, wget, and whois, it […]


Read more...

How to build a 4.6 kernel on Ubuntu 16.04.

Firstly, download a kernel tarball from kernel.org. [email protected]:~$ wget https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz –2016-03-29 10:22:34– https://cdn.kernel.org/pub/linux/kernel/v4.x/testing/linux-4.6-rc1.tar.xz Resolving cdn.kernel.org (cdn.kernel.org)… 103.245.222.69 Connecting to cdn.kernel.org (cdn.kernel.org)|103.245.222.69|:443… connected. HTTP request sent, awaiting response… 200 OK Length: 89423304 (85M) [application/x-xz] Saving to: ‘linux-4.6-rc1.tar.xz’   linux-4.6-rc1.tar.xz 100%[======================================================================>] 85.28M 1.29MB/s in 66s   2016-03-29 10:23:54 (1.28 MB/s) – ‘linux-4.6-rc1.tar.xz’ saved [89423304/89423304] Then unpack the […]


Read more...

Awesome Linux tricks and tips.

Convert a Linux text file to DOS format with AWK. [[email protected]:~] cat dodo-ip.txt | awk ‘{sub(/$/,"\r")};1’ > dodo2.txt Convert a DOS text file to UNIX format. [[email protected]:~] cat dodo2.txt | awk ‘{sub(/\r$/,"")};1’ > dodo3.txt Get your Internet facing IP address from the command line. This shows all information. [email protected]:~/Documents$ curl ifconfig.me/all Get just your Internet […]


Read more...

Move the Unity launcher to the bottom of the screen with the new 16.04 release.

The new Ubuntu 16.04 release allows moving the Unity launcher to the bottom of the screen. This does make sense, screens are wider than they are tall, and I like having the bar on the bottom of the screen. Use the command below to move the bar to the bottom. [email protected]:~$ gsettings set com.canonical.Unity.Launcher launcher-position […]


Read more...

How to format a new Linux partition with the command line.

This is how to format a hard disk partition that will hold data for your Linux system. The partition must be unmounted before formatting, but this is the ideal way to create a file-system on a new partition that has been created with fdisk. [email protected]:~# mkfs.ext4 mkfs.ext4 mkfs.ext4dev [email protected]:~# mkfs.ext4 /dev/sdd3 mke2fs 1.42.13 (17-May-2015) /dev/sdd3 […]


Read more...

Cracking a pin number hash with hashcat on Debian Linux.

I recently needed to crack a pin number hash that was four digits and used the numbers 2490. This sounds easy, but hard until you realise that it is a relatively simple PIN. I used the command below to generate a 60 Gigabyte wordlist, containing all possible combinations of the numbers in the PIN. crunch […]


Read more...

Cracking Windows 10 passwords with john the ripper on Kali Linux 2016.

Cracking the SAM file in Windows 10 is easy with Kali Linux. Use a Live Kali Linux DVD and mount the Windows 10 partition. Firstly, get the SAM and SYSTEM files from the C:\Windows\System32\config folder. Copy these to your desktop directory. Then dump the password hashes. [email protected]:~/Desktop# samdump2 SYSTEM SAM -o out Now grab the […]


Read more...

Richard Stallman, interviewed by Matthias Schüssler, in Zurich on February, 9th, of 2016.

Richard Stallman, interviewed by Matthias Schüssler, in Zurich on February, 9th, of 2016. This is an interesting interview regarding information security and free software versus closed source proprietary software.


Read more...

How to fix the read timeout with Me TV on Ubuntu GNU/Linux 16.04.

I was getting the read time-out error on Me TV on Ubuntu 16.04 and this is how I fixed it. Just run the application with this command line. ~$ me-tv –read-timeout 60 This fixed the error. My ASUS My Cinema-U3100Mini Plus V2 device is now working and I am happy again. So try this if […]


Read more...

How to list all passwords on a Cisco switch.

This Cisco command will list all passwords on a switch. mrrobot#sh ru | inc password service password-encryption password 7 00141215174C04140B70 password 7 00141215174C04140B70 The inc command looks for any text that matches the argument. Like this: mrrobot#sh ru | inc line line con 0 line aux 0 line vty 0 4 This is how to […]


Read more...

How to crack Cisco 7 “encrypted” passwords with a simple tool.

This website will crack any “encrypted” Cisco 7 password instantly. http://www.ibeast.com/content/tools/ciscopassword/. This shows that this type of “encryption” is useless when an attacker has access to view the configuration of the switch. Better to use more stringent encryption like 4096 bit. But this is the way that Cisco work. If you get access to a […]


Read more...

Use the ip route command to create an ip route manually on Linux.

This command will add an IP route to the 172.29.59.1 router using the wlan0 wireless interface card on my laptop. [email protected]:~$ sudo ip route add 0/0 via 172.29.59.1 dev wlan0 This is part of the process of creating a network connection from your machine to a network when it is necessary to set IP addressing […]


Read more...