Category Archives: Shell Scripting

Entries about the UNIX shell scripting

Using bash to monitor devices entering/exiting a LAN

Someone asked me for help on a scripting problem, and it seemed both simple and interesting. They had a raspberry Pi set up to control some lights, and they wanted to turn lights on and off if a set of … Continue reading

Posted in Hardware Hacking, Linux, Shell Scripting | Tagged , , , , , , | 1 Comment

LetsEncrypt + Amazon EC2 = SSLLabs A Rating

I wanted to easily add web security to a static AWS EC2 website to improve the search rankings. I found a guide by Ivo Petkov however there were a few problems with his instructions. I followed his advice: sudo yum install … Continue reading

Posted in Linux, Security, Shell Scripting, System Administration, System Engineering, Uncategorized, Web Security | Tagged , , , , , , , | Leave a comment

Scanning for confidential information on external web servers

One of my clients wanted us to scan their web servers for confidential information. This was going to be done both from the Internet, and from an internal intranet location (between cooperative but separate organizations). In particular they were concerned … Continue reading

Posted in Linux, Security, Shell Scripting | Tagged , , , , , , , , , , , , , , , , , | 1 Comment

Extracting shell commands from Kali’s application menu

I use the Linux command line whenever I can.  Using the mouse to execute something when my fingers are on the keyboard irritates me. I was using the Kali linux distribution to do some pentesting. And I was getting frustrated. … Continue reading

Posted in Linux, Security, Shell Scripting | Tagged , , , | Leave a comment

Cataloging SDHC Cards on Ubuntu using a bash script

I have a lot of SD memory cards. I use them for my Camera, my Raspberry Pi, and for my laptop. They are cheap enough, I get several spares. And it makes it easy to convert my Raspberry Pi into … Continue reading

Posted in Linux, Shell Scripting | Tagged , , , , , , , | 1 Comment

Setting up your Linux environment to support multiple versions of Java

Four ways to change your version of Java Most people just define their JAVA_HOME variable, and rarely change it. If you do want to change it, or perhaps switch between different versions, you have some choices:  Use update-alternatives (Debian systems) … Continue reading

Posted in Linux, Shell Scripting, System Administration | Tagged , , , , , , , | 7 Comments

Remote Input shell scripts for your Android Device, or my screen is cracked

My Android has a cracked screen. Help! I, too, had this happen to me. I had TitaniumBackup Pro on my device, but when the new version of KitKat came out, I lost root access because of the update.  I never … Continue reading

More Galleries | Tagged , , , , , , , | 4 Comments

Creating Table of Contents for static web pages using sed, make, and perl

Earlier, I showed you how I created a multi-page navigation section for static web pages. But this system has some flaws. I needed better navigation within the web page. I also needed a better way to keep track of my … Continue reading

Posted in Linux, Shell Scripting, System Administration | Tagged , , , , , , , | 1 Comment

Generating website navigation using perl, sed, and make

The problem – Site navigation without frames I wanted to add an easy way to navigate to any of my web pages, but I didn’t want to use frames, or break any of the current links. I also have a … Continue reading

Posted in Shell Scripting, Technology | Tagged , , , , , , | 1 Comment

Cracking Alchemy on the iPhone

Someone asked me how I got all of the Recipes for Alchemy on the IPhone. The answer – I cheated. I hacked the system. Let me describe how I did this. There is some simple perl scripting involved, which might … Continue reading

Posted in Hacking, Shell Scripting | Tagged , , , , , , , | Leave a comment