Arch Linux pacman – Just the Most Useful Commands

Wading through man pages can be a tedious process. Often it's not clear which options or commands you will be using 99% of the time and which ones are the more obscure options that are only occasionally useful. I was largely mystified by pacman's man page until I decided to do an exhaustive search through … Continue reading Arch Linux pacman – Just the Most Useful Commands

C Program to Plot the Gamma Function in the Terminal

Plotting the gamma function in the terminal

In this post I want to talk about a C program I wrote just recently that plots a mathematical function - specifically the gamma function. I think it's worth looking at, because this program demonstrates how to handle the various aspects of graphing and plotting using just ASCII characters in the terminal. The program draws … Continue reading C Program to Plot the Gamma Function in the Terminal

Reverse-Engineering a Linux Process with strace

The pill you took is part of a trace program. It's designed to disrupt your input/output carrier signals so we can pinpoint your location. And just like that, we can trace signals as they bounce around the Matrix, whether it's the Matrix that simulates Earth in 1999 or the Matrix that generates pretty pictures on … Continue reading Reverse-Engineering a Linux Process with strace

C Program to Generate a Blank MS-DOS Floppy Image in Linux

How do you do, fellow old-timers? Today's post is going to be a bit of a crossover, because I'm going to get into some programming stuff, some Linux stuff, and some DOS stuff all at the same time. I'm going to show you a program that I wrote a while back that uses POSIX API … Continue reading C Program to Generate a Blank MS-DOS Floppy Image in Linux

My (Revised) Step-by-Step Process for Starting Arch Linux Live

In this post I talked about my process for setting up my Arch Linux live system. I still use a live distro (mostly because I don't want to overwrite any files currently on the hard drive), but in the last few months I've made quite a few revisions to my startup process for Arch Linux … Continue reading My (Revised) Step-by-Step Process for Starting Arch Linux Live

How to Transfer Files Over SSH on a Linux/Windows Network

Transferring files over SSH

In this tutorial I want to show you how to copy files from one computer to another on a network containing both Linux and Windows hosts, using the SSH protocol. Linux-to-Linux, Linux-to-Windows, and Windows-to-Linux file transfer can be accomplished with an SSH daemon running on one or more Linux hosts and/or a copy of Cygwin … Continue reading How to Transfer Files Over SSH on a Linux/Windows Network

Obfuscated Unix Scripting with dc

dc, an elegant calculator for the Unix time sharing system

So I realized that I liked the concept behind Obfuscated Unix Scripting with sed and I thought I'd make a series. There are a number of scripting languages native to Unix, and many of them qualify as being what you would call "obfuscated". One such language is the classic Unix calculator known as dc. This … Continue reading Obfuscated Unix Scripting with dc

Exploring Kali Linux

So in this post I started documenting my efforts to learn about offensive security by researching vulnerability reports. In the present post, I will be documenting my efforts to learn about offensive security by exploring a Linux distro designed specifically for that purpose: Kali Linux. Kali is a Linux distro based on Debian. In fact … Continue reading Exploring Kali Linux

Doing Statistics in awk

Statistics in awk

One exercise that offers a lot of interesting challenges in coding is to use a programming language for an application that it's not intended to be used for. Writing a Fortran compiler in TECO and solving the Towers of Hanoi problem in the troff text formatter are two examples from the legendary Hacker Purity Test. … Continue reading Doing Statistics in awk

Making Text Files Colorful – With a Hex Editor

Output of text file with ANSI escape sequences

Hello, friends. In this tutorial I will be sharing a neat hack that you can use to add colors and other styles to a plain text file. This means that when you view the file with cat, the text will be color-coded. We accomplish this using ANSI escape sequences, a text editor, and a hex … Continue reading Making Text Files Colorful – With a Hex Editor