Future of Linux looking brighter.

I am running Linux at the moment with a Geforce 740 and I have not installed the proprietary drivers at all. I am using the Nouveau drivers and my system is performing very quickly indeed. Previously, I had a Radeon HD6670 installed and the open-source drivers were used. And in that case, the system was […]

Add BASH styled line editing and persistent history to the CMD window.

This useful utility: http://mridgers.github.io/clink/. Will allow persistent history and line editing in the Windows 10 CMD window. This makes the CMD session much more enjoyable to use. Press Alt-H in the CMD window to get help that shows the keyboard shortcuts for this addon. Microsoft Windows [Version 10.0.10130] (c) 2015 Microsoft Corporation. All rights reserved. […]

Using the runas command in Windows 10 to run a command as admin.

The runas command in Windows 7 8 and now Windows 10 allows the unprivileged user to execute a command as a superuser. This is rather like the sudo command for Linux and UNIX. In the example below, I am executing a command on the computer BLUFOR as the user Dobbo. I am running notepad as […]

Get information about your network connection with Linux.

This command will return only the IP address of the host. ubuntu ~ $ hostname -i Querying for all local IP addresses on the host. ubuntu ~ $ hostname -I This simple script will ping Google and will check the return value of the ping command to see if the Internet is […]

Searching for packages on an Ubuntu system with the aptitude command.

The aptitude command for Ubuntu may be used to search for packages. This makes it easy to find the appropriate package you are searching for. In this example, I am searching for the openvpn packages. ubuntu ~ $ sudo aptitude search openvpn p gadmin-openvpn-client – GTK+ configuration tool for openvpn (client) p gadmin-openvpn-client-dbg – GTK+ […]

Examining a piece of Linux malware with Kali Linux tools.

I have recently downloaded an executable, this is a piece of Linux malware. I run a query with strings on this file and I find out that this file makes changes to various utility commands on a Linux system such as netstat, ps, top and /bin/sh. This would be all the hallmarks of a rootkit […]

Check the status of your laptop battery with Powershell on Windows.

This simple one liner will print the battery status of your laptop battery in percent. This shows that I have 48% battery charge remaining. PS C:\> (Get-WmiObject -Class Win32_Battery).estimatedchargeremaining 48 Run it like this to get all of the information about your laptop battery. PS C:\WINDOWS\system32> (Get-WmiObject -Class Win32_Battery)     __GENUS : 2 __CLASS […]

Show interface status with the command line on a Cisco switch.

The show interface brief command, issued at the elevated command prompt will show the status of all ports on the switch/router and also show your vlan interfaces you have created. tyrion#show ip interface brief Interface IP-Address OK? Method Status Protocol Vlan1 unassigned YES NVRAM up down Vlan2 YES NVRAM up up GigabitEthernet0/1 unassigned YES […]

Set or change a passphrase for an OpenVPN server key.

This command will set a passphrase for the server pem file for OpenVPN on Linux. I setup a VPN configuration on Ubuntu and forgot to set the passphrase. This is how I managed to set one. ubuntu@ip-172-31-13-140:~$ sudo openssl rsa -des3 -in server-key.pem -out server2.pem Enter pass phrase for server-key.pem: writing RSA key Enter PEM […]

How to set a MAC address on a Cisco 3700 router.

This command in interface configuration mode will change the MAC address for a specific interface on the router. R1(config-if)#mac-address DE.AD.BE And this is what I get when I use the show run command and view the properties of the interface. interface FastEthernet0/0 mac-address 00de.00ad.00be ip address ip nat inside ip nat enable ip […]

How to get comprehensive SSL information out of a website with Ubuntu.

The sslscan utility will print out a comprehensive report listing all of the SSL ciphers used by a website secured by SSL. This can be very useful information when you are planning to attack this website. Or just for research purposes. In this example, I am scanning facebook.com and getting information about the ssl ciphers […]

How to create keys with easy-rsa without a password prompt.

To create a new set of keys for OpenVPN using Easy-RSA, we firstly need to clean our environment and get ready for the build. $ ./easyrsa init-pki Now we need to build the certificate authority. $ ./easyrsa build-ca nopass   Note: using Easy-RSA configuration from: ./vars Generating a 2048 bit RSA private key ………..+++ ………………………………………+++ […]

Cisco access control lists I have worked out.

These Cisco ACL`s are to block ICMP ping requests from a certain IP address. I developed these experimenting with GNS3. I had two Cisco 3750 routers in GNS3 and I added static IP addresses. for the R1 router and for R2. I then added the ACL lists to R1 and ran the write-memory […]

Add a fancy progress bar to the apt command on Linux.

To add a fancy progress bar to the apt command on Linux, edit this file: /etc/apt/apt.conf.d/99progressbar and add the line below. Dpkg::Progress-Fancy "1"; Save the file and when you next install software with the apt command, you will get a fancy progress bar at the bottom of the screen. This is a very nice addition […]

Get information about your computer hardware with Linux.

This command will print the make and model of your motherboard. jason@eyjafjallajkull:~$ sudo dmidecode -t baseboard [sudo] password for jason: # dmidecode 2.12 SMBIOS 2.4 present.   Handle 0x0002, DMI type 2, 8 bytes Base Board Information Manufacturer: Gigabyte Technology Co., Ltd. Product Name: H55-USB3 Version: x.x Serial Number: To get information about your network […]