How to use the runas command in Windows to elevate privileges.

The runas command in Windows allows a user to elevate their level of privileges to run a command as the Administrator user. The example below shows the usage of the runas command to open another cmd window as the Administrator user. C:\Users\mike\Documents\openvpn>runas /user:Scott\Dobbo cmd Enter the password for Scott\Dobbo: Attempting to start cmd as user […]

Information about satellite packet routing as it relates to the Internet.

This paper I found, PDF relates to the routing of network packets through a satellite connection. This might be very interesting to a student of networking who is interested in satellite networking and the unavoidable latency issues that come with such a connection. With a 250ms latency, this would add on to any existing latency […]

How to crack Linux passwords using john the ripper.

Firstly, for the purposes of this exercise, we are creating a new user with a simple password. I used a user named “vaas” and gave him the simple password “password”. Then run this command to create the file that john the ripper will be using. ubuntu@ip-172-31-20-16:~$ sudo unshadow /etc/passwd /etc/shadow > pass.out Now run the […]

How to remove unneeded packages on your Ubuntu Linux system.

I wanted to update my Ubuntu 14.04 server and I saw this output. I needed to remove these unwanted packages on my system. ubuntu@ip-172-31-20-16:~$ sudo apt-get upgrade Reading package lists… Done Building dependency tree Reading state information… Done Calculating upgrade… Done The following packages were automatically installed and are no longer required: libdigest-hmac-perl libdrm-intel1 libdrm-nouveau2 […]

How to convert a jpg image to ASCII using the Linux command line.

The jp2a package for Ubuntu will convert a jpeg image into an ascii text representation. This is useful for creating useful ascii images to post on the Internet. Install it by typing: sudo apt-get install jp2a and then convert an image this way. ~$ jp2a myimage.jpg This will output ascii text to the terminal. A […]

How to set a hostname on a Cisco 2950 switch with the terminal.

To set a new hostname on a Cisco router, switch to privileged exec mode by typing enable at the prompt. Enter configuration mode by entering this command. eng_floor_2#configure terminal Then set the hostname by typing this command. eng_floor_2(config)#hostname eng_floor_2 Now the proper hostname has been set on the switch. eng_floor_2#show running-config Building configuration…   Current […]

How to erase the configuration of a Cisco 2950 switch with Putty.

I am assuming that you already know how to access your switch and you do not need any help with this. Log into the switch using Putty and wait until the prompt appears awaiting commands. % Please answer ‘yes’ or ‘no’. Would you like to enter the initial configuration dialog? [yes/no]: no       […]

How to find the Ubuntu version using the command line terminal.

The lsb_release -a command will print the Ubuntu version to the terminal. This is how you find out information about your Ubuntu installation. ubuntu@ip-172-31-20-16:~$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 14.04.2 LTS Release: 14.04 Codename: trusty Use this command to view the support status for your distribution. ubuntu@ip-172-31-20-16:~$ ubuntu-support-status […]

How to list all recently logged in users on your Linux system. And other useful Linux tricks.

The sudo lastb command will list all recently logged in users on your Linux system. This is a useful tool on a server. jason@eyjafjallajkull:~$ sudo lastb jason :0 :0 Thu Jan 8 12:41 – 12:41 (00:00) jason :0 :0 Mon Jan 5 11:42 – 11:42 (00:00) jason :0 :0 Mon Jan 5 11:42 – 11:42 […]

A brief look a various network attacks that can compromise your network resources.

A handful of network attacks that can compromise your network nodes TCP attacks   TCP SYN attack: This attack begins as a normal TCP connection, the client and server exchange information in TCP packets. A client sends an ACK packets to the server requesting a connection. The server will respond with a packet acknowledging the […]

How to get the brand and model of your graphics card with the command line.

This command will print out the model and make of your graphics card. This is another command to run on an unknown computer to see what hardware is in it. jason@eyjafjallajkull:~$ lspci -vnn | grep VGA -A 12 | head -n 1 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon […]

C code that will select a random word from an array and include it in a string.

This code will pick a random word from the x[] array and include it in the printed string. This program will also get your current Linux username to customize the output. I am sure this code would be very useful to someone who wants to know how to handle arrays in C. #include <stdio.h> #include […]

How to format a partition in Linux. This is very easy.

Formatting a partition in Linux is very easy when you use the mkfs command. In this example I am formatting a 35 gigabyte partition with an EXT4 file-system. I am intending to try out a Linux From Scratch build and I want to have a dedicated partition to build this on. jason@eyjafjallajkull:~/Documents$ sudo mkfs.ext4 /dev/sdb2 […]

Linux in Arma 3! A tiling window manager on a laptop in the game.

This is a laptop in Arma 3 that can be placed as an in-game decoration. This is running Linux! Apparently the military dumped Windows after the collapse of Microsoft in 2035. This is a good sign. Linux would be better and more reliable in the field compared to Windows anyway. I wonder what kernel version […]

C code that will open a file and print the contents to the terminal.

This code will print the contents of a file to the terminal. Feel free to use this in your own projects if you wish. #include <stdio.h>   #define MEM "/proc/meminfo"   int main (void) {   FILE *g; char Meminfo[40]; g = fopen(MEM, "r"); if(!g) { printf ("Sorry, I cannot" \ "open: %s.\n", MEM); } […]