IP Chicken at the Command Line

Why?  Why not?!  Using curl and piping into a short grep statement, I’ll show you how to use IPChicken.com in the terminal.

While I’m partial to the chicken of the IP, my Twitter bros pointed out a few other sites that are built with a lightweight response in mind:

ifconfig.pro, curlmyip.com, icanhazip.com

Here’s the code used in the video:

#Getting your public IP at the command line

#1st Step: Curl to request page, parse the ip with regex & grep
curl ipchicken.com -s | grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b" -m 1

#2nd Step: Add our one-liner to a script
mkdir ~/scripts
cd ~/scripts
#edit our text file
nano ipchicken
#make it executable
chmod +x ipchicken

#3rd Step:
nano ~/.bash_profile

Posted in Linux, OSX

My Favorite OSX Utilities

OSX is a capable operating system out of the box, but there are a few tools that I like to add to every new system I get.  I’ve been asked for the list a few times, so in no particular order,  here goes:

Keka is a free file archiver for Mac OS X. The main compression core is p7zip (7-zip port). Compression formats supported: 7z, Zip, Tar, Gzip, Bzip2, DMG, ISO.  Extraction formats supported: RAR, 7z, Lzma, Zip, Tar, Gzip, Bzip2, ISO, EXE, CAB, PAX, ACE (PPC).

Chicken of the VNC
Chicken is a VNC client for Mac OS X. A VNC client allows remote access to another computer over the network. Chicken is based on Chicken of the VNC.

Remote Desktop (RDP) software that saves sessions and preferences.  A must have if you’re using Terminal Services/RDP.

Airconsole Driver
The Airconsole is device that provides bluetooth & wifi access to serial devices (no more serial to USB).  This driver maps the wireless port to a local serial port that your terminal programs can reference.

A fine note taking program with cloud sync, ability to import for physical notes and a nice web-clipping tool to import sections of content.

Scans target folders/drives for duplicate files and folders.

LimeChat is an IRC client for Mac OS X

Wireless discovery tool that will show networks & devices discovered (and signal strength) on Wifi and Bluetooth. 

Text Wrangler
TextWrangler is a very capable text editor. 

VMWare Fusion
Virtualize all the things.  Virtualbox and Parellels also work well here, but VMWare remains my preference for compatibility and functionality.

A damn fine console program, albeit a little pricey at around $100 per user.

Console into things for free if SecureCRT isn’t in the budget.

Zenmap is the official Nmap Security Scanner GUI. It is a multi-platform (Linux, Windows, Mac OS X, BSD, etc.)

Password Management.

Vienna is an RSS/ATOM reader for OSX.

HandBrake is a tool for converting video from nearly any format to a selection of modern, widely supported codecs.

The gold standard for packet analysis.  Don’t forget to update X11 as well.

A Linux command to continuously execute a program and monitor output.

Did I miss anything?  Let me know!


Posted in OSX