Gary Kessler Associates
Over the years, I have written a few little software utilities that I have shared with some others and they have encouraged me to make them more readily available.
Most of these programs are written in Perl. If you have a MacOS X, Linux, or Unix system, a Perl interpreter is part of the operating system. For Windows users, you can run these programs in a Cygwin environment or, even easier, use one of the many Perl interpreters for Windows, such as Strawberry Perl or ActivePerl.
See License and Warranty section below for additional information.
- AIS BlackToolkit (12/04/2018): Two programs a preprocessor/user interface and NMEA encoder both written in Perl, contributed to the TrendMicro AIS BlackToolkit project at GitHub.
AIS Tools (01/02/2023): A set of Perl scripts, as described below, to customize and parse NMEA 0183/ITU-R M.1371 sentences for AIS applications. All 27 message types can be created and parsed, plus nearly three dozen Type 6 and 8 Application-Specific Messages (ASMs). The README.TXT file provides details about the package and each file has a help message (use the -h or --help switch). These programs, although relatively stable, continue to be under development. See also my "AIS Research Using a Raspberry Pi" page.
[MD5: d28008ad9956d68db2a60cc7c864f4ff | SHA1: e4f81ba54d6e1a08388703af282237b38857822d]
- AIS_menu.pl (v4.7.20, 01/02/2023) is a preprocessor to create an input command line to AIS Ping.
- AIS_ping.pl (v7.2.6, 01/02/2023) creates custom AIS messages; the program produces output for AIS NMEA or for the GnuRadio program found in the AIS BlackToolkit.
- AIS_NMEA.pl (v5.4.4, 01/02/2023) accepts the binary output from AIS Ping to form NMEA_formatted AIS sentences.
- AIS_parser.pl (v4.7.21, 01/02/2023) decodes an NMEA binary string or AIS sentence to display the contents, field by field.
- parser2html.pl (v1.5, 05/11/2019) produces an HTML file from the output of the parser program.
- ais_tools.sh is a Linux/Unix script file that will auto-run AIS_menu, AIS_ping, and AIS_NMEA.
- ais_tools.bat is a Windows batch file that will auto-run AIS_menu, AIS_ping, and AIS_NMEA. (Contributed by Glenn Dardick.)
- MaritimeIdentificationDigits-20591760-ITU.csv contains a list of Maritime Identification Digits (MID) codes for use with the AIS Parser.
- README.TXT (01/02/2023) is the README file for these programs. It is essential reading to understand how the programs work and, in particular, how they work together. It also contains detailed information about what parameters are used with what message types, all message formats, and even a few programming notes to make the code a bit more understandable.
timestamp_data (v2.2, 09/14/2019): A small Perl program that can connect to a TCP or UDP socket on a local or remote host, and read a data stream for a specified amount of time. This was intended to read AIS sentences from a program such as OpenCPN and add timestamps. Output is directed to a "|"-separated file that also contains a timestamp of when the data was received. Users can, optionally, also see the data in real-time. Use the --help (or -h) switch for instructions.
[MD5: 79722ab1e985c0381ce33e31e6382cc5 | SHA1: fd064cf4ad3ee89b66c69dcced918caa55f66266]
play_ais (v2.3.2, 05/24/2022): A Perl program that can read AIS sentences with a timestamp from a file, then connect to a TCP or UDP socket on a local or remote host, and replay the data stream in relative real-time. This is intended to read the output from timestamp_data.pl but can read any file that has records with a timestamp (seconds) and an AIS message. Also intended to send output to chartplotter software such as OpenCPN. Use the --help (or -h) switch for instructions.
[MD5: 29cf3d5febd59b8415a348920b8c93d8 | SHA1: 958b5dce18e0fbbe40bc53fab1e4c2a0f164b169]
Boot record and other parsers: These are a number of programs that parse a variety of file system and other logical structures. All of the programs are written in Perl:
- apmparser (v1.5, 3/14/2013) parses an Apple Partition Map (APM)
[MD5: 590e3edf6c5d3017d68768265bfb2f10 | SHA1: 53f824ab07d6621dfeded5ee907186bb523143b8]
- bsparser (v3.1, 3/13/2013) parses a FAT or NTFS boot sector
[MD5: c3cc1a6a8ead08eabdcbc9c5d1375049 | SHA1: e210994cebdffbe079f934de1ccd9bb2229a3619]
- dirparser (v2.1,01/03/2018) parses a FAT directory
[MD5: cd3f1ee8cef58e6eb5491931537761b9 | SHA1: 9d15d4a6319ac60fc925b60010445b7b75cb40e8]
- fatparser (v2.1, 07/01/2016) parses a FAT12, FAT16, or FAT32 table. Output can be directed to the screen or CSV file.
[MD5: c19e7d9774f9d1b79992b5803303ed9b | SHA1: 0f155a7193f000697599213b1255b16d91ab82ef]
- gptparser (v1.4beta, 3/14/2013) parses a GUID Partition Table (GPT) header
[MD5: f0dcf44dd888e985461e455ca9f1cfcb | SHA1: 5fe142bf783ffdab829291a91a46c5095fa2403a]
- info2parser (v1.4, 4/9/2013) parses an NTFS INFO2 file
[MD5: 3a31e5bce5fa103e16304f89fb514e1f | SHA1: 04d1e967a19c0fb30ce75bab3284826c321e93aa]
- mbrparser (v2.1, 3/13/2013) parses a standard DOS/Windows Master Boot Record (MBR)
[MD5: 8fa2f1654b956c4c8870cdba4de3b8b1 | SHA1: b6cee0e7eb35a0a499d1d0e18bd78dd719bcc6af]
- mftparser (v2.1, 6/11/2013) parses NTFS Master File Table (MFT) records
[MD5: 0a5d22d2e513f45befd1da30706e2b39 | SHA1: abc17f54c64ae6422c33e1f2d04658a0d2d82b2a]
cisco7 (v1.0a, 4/24/2012): Two programs -- one in C and one in Perl -- that "cracks" a Cisco Type 7 password. Not much to the cracking, actually, since the password is merely an XOR applied to the password and a fixed string. Well, read more in the README file or in my crypto paper.
[MD5: 48aaf634c34052e08254c996245b8df2 | SHA1: 963297758563a34120d7d2e64cabf6dce2c30b71]
entropy (v1.5, 03/30/2017): This Perl program calculates the entropy (randomness) of a given file. The program displays entropy as a value from 1-8, and can optionally show a histogram and/or percentage of each of the 256 values of the bytes in the file.
]MD5: 0344ce782ec607dcaf56f7c49f03e35d | SHA1: 28133f52f10d88449fdf1ea0ea376c4d2a0e4e47]
FileSigs (07/31/2022): This ZIP archive contains versions of my File Signatures Table in a format usable by AccessData's Forensic Toolkit (FTK)®, Scalpel (supported for historical purposes only), Tim Coakley's Simple Carver and Simple Carver Lite, and Marco Pontello's TrID - File Identifier utility, as well as raw comma-delimited (CSV) and JSON text files. The _README.txt file describes how the files can be used and their formats. If there are other useful formats, please let me know and I will try to accomodate.
[MD5: 6f81e264e5f5e21bdfb26c4a735a749c | SHA1: c38a7002c2c2f95717d19fbd07a5a61a741885bd]
include (v2.2, 2/2/2011): For good or for bad, I have been writing my own HTML code since about 1993. This program is a small Perl script that allows you to insert a small block of HTML code into multiple HTML files without the use of server-side scripting or that kind of stuff. As an example, all of the main pages on the GKA Web site have a consistent left navigation bar; it has the look and feel of using frames but each page is actually stand-alone. I can change the leftnav bar on all of the site's pages in a few seconds merely by updating a file that contains just the leftnav code and running a script that inserts the new code into the HTML files. The Perl program and documentation are in the ZIP file.
[MD5: 8ff5ada1ab89fe7a2ee6eaf81f269ff1 | SHA1: 369166f4f1d273f776b9a1729ab62d072428ec89]
LiveSystem (v5.0a, 02/28/2015): This ZIP file contains a set of free utilities from a variety of sources that can be used to acquire volatile data from a running Windows system. The type of information includes currently open TCP/UDP ports and the processes associated with those ports, currently logged on users, running processes, and more! Read the _README.TXT file for more information.
[MD5: cefd3114da216e621673e44487ec61f4 | SHA1: 3fbdd731ca690561f645de4d846d9760f7f393f2]
Luhn Test (v1.4, 07/20/2014): This Perl program will inspect a numeric string ostensibly a credit card number and indicate whether it is valid per the Luhn algorithm, the scheme commonly used to validate credit card numbers. In addition, if the number is a valid Luhn value, it is checked against a list of credit card format templates to see whether it could be an actual valid credit card number. Run with the -h switch for more information; some sample numbers are provided for testing.
[MD5: 9fd1fd1b8438840d4c24395497f0cd59 | SHA1: d30dc81a24e3d04949da2fa20925f2755c01fa54]
Manual Cryptography (v0.8.05, 06/08/2018): A Perl program that implements a variety of manual crypto schemes, including the (misnamed) Vigenère cipher, Autokey cipher, Beaufort cipher, ADFGVX, and one-time pad. Good for playing around....
[MD5: f6b82e0adaf535318a39330cbcabbe22 | SHA1: 0bbfdd6ad1721d98b98f136f11dd02e9224e26eb]
PictureAlbum (v4.4, 03/15/2019): Picture Album is a Perl program that provides a simple way to take directories of pictures and create an HTML-formatted album suitable for posting on a Web site; one example of such a photo album can be found at GCK's SCUBA Photos. PictureAlbum will organize photographs by directory, showing a series of thumbnail images that are hot-linked to full-size images. A user manual describes how to set up the directories. NOTE: This program requires that ImageMagick be installed on your computer.
[MD5: e78672ca24ad16a0f98c22dcce77d6e9 | SHA1: 99b7e1fc1d03a66cba566d255600db0e6d8b6c31]
PictureReporter (v2.1, 02/19/2016): Picture Reporter is a Perl program that offers a simple way to take directories of pictures and create an HTML-formatted report. This was designed primarily for digital forensics examiners who might take a series of screen shots, for example, categorizing the pictures by placing them in different subdirectories. PictureReporter will organize the pictures by directory, showing a series of thumbnail images that are hot-linked to full-size images. A user manual describes how to set up the directories.
[MD5: faec37011e70a699139fce34223a9358 | SHA1: 8737fa4315709adf53ba787bc4a5c252554de121]
pingsweep (v1.6, 12/22/2015): A simple Perl program that pings a range of hosts in a Class C address range. Use the -h switch for the help file.
[MD5: 863b76dc8dd728eda89b8a755c25cf61 | SHA1: db00a9b875177ddf5e5808403f5f364252f4278e]
RC4 (v1.3, 11/23/2012): RC4 is a simple Perl implementation of the Rivest Cipher 4 (or Ron's Code 4) algorithm. The program is intended as a teaching tool rather than as a serious encryption application since it does not protect the key in any way, such as erasing it from RAM after use. Use the -h switch to get a list of program options or the -a switch to learn how the program works.
[MD5: 1b41ea3771c243f2a9a8d50990bff703 | SHA1: 91c0e133c2ce42578926657d52dba6a9e56849df]
SCUBA-related utilities: See the online browser-based versions of my Dive Table Calculators (PADI and NAUI), Nitrox MOD Calculators (PADI and NAUI), and EAN Partial Pressure Mixing Calculators (psi and bar) at my SCUBA Resources page.
EAN Gas Mix Calculator (v3.1, 06/23/2015): This Excel spreadsheet is a utility for partial pressure gas blending for Enhanced Air Nitrox mixes. Given a starting pO2 and tank pressure, and desired pO2 and tank pressure, the spreadsheet will indicate how much fill gas to add, followed by top off gas. Fill gas and top off gas default to 100% O2 and air (20.9% O2), respectively, but these parameters can be changed in the spreadsheet. One tab of the spreadsheet shows calculations in psi and another tab in bar.
[MD5: 7a9b78b0170f828811948ada857bb0b2 | SHA1: 1796ea02d553d4dc6988e8aed77f7d375640011d]
Latitude/Longitude Coordinate Converter (v1.0, 2/17/2012): This Excel spreadsheet converts between degree/minute/second (D°M"S'), GPS (D°M.MMM), and decimal (D.DDD°) formats for expressing latitude and longitude.
[MD5: f5f38218531f3883213739f6810a36c9 | SHA1: 5d83827a4223ce0ebc644f3d05a6d9a629bc396d]
License and Warranty
Effective 0001 UTC, 21 November 2019, all software on this page is distributed as open source under the The MIT License.
Copyright 2019- Gary C. Kessler (email@example.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All material on this site © 1996-, Gary C. Kessler. All rights reserved. Permission to use the material on this site is extended for individual personal use and for non-commercial distribution, as long as appropriate attribution is provided and the information is not altered in any way without express written permission from the author.