My Projects

The following port scanner C code checks approximately 65535 ports in about 15 seconds on-network. #include <stdio.h> #include <stdlib.h> #include <netinet/in.h> #include <string.h> #include <sys/socket.h> #include <arpa/inet.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <netdb.h> #include <sys/types.h> #include <sys/time.h> #include <sys/ioctl.h> #include <sys/wait.h> #define MAX_PORTS 65535 #define MAX_SOCKETS 1023 // gcc -o portscanner portscanner.c int…

Read More A Port Scanner in C

// gcc bofh.c -o bofh #include <stdio.h> #include <stdlib.h> #include <time.h> #define NUM_QUOTES 10 const char* bofh_quotes[NUM_QUOTES] = { “No, my powers can only be used for good.”, “It must be a hardware problem.”, “I’m sorry, we don’t support that feature.”, “That’s a PEBCAK error (Problem Exists Between Chair And Keyboard).”, “Have you tried turning…

Read More A BOFH Generator in C

A small WordPress plugin to create a BOFH excuse using a shortcode anywhere on your WordPress website shortcodes are supported. Usage popper unable to process jumbo kernel Output Example

Read More WP-BOFH

Over the last few weeks I’ve been using Python to scrape the Pennsylvania Department of Health’s Coronavirus page. Over time the page has evolved and even split into sub-pages which contain table date of cases, deaths and other statistics. I’ve decided to put my Python script on GitHub for public consumption. Initially when I had…

Read More Pennsylvania COVID-19 Data Scraping with Python

A quick Powershell script I hacked together that will enumerate all Active Directory users, and build an XML file for an application I wrote that generates user reports for a specific application. The output file format is similar to: <quickreports> <report name=Organizational Unit> <database name=v001/> <usrlogin name=jdoe01/> </report> <quickreports> $ErrorActionPreference= ‘silentlycontinue’ $arr=@{} foreach ($usr in…

Read More Allscripts Vision User Reporting

This was a rather interesting project I took on.  The project was created to monitor and restrict how many Remote Desktop sessions were permitted to logon based on configuration per-OrganizationalUnit (OU) in Active Directory. There are 2 parts to this. Userlock – the GUI management part sessioncheck – the executable that needs to be set…

Read More Userlock – Restricting Number of Remote Desktop Sessions Per OU

An excercise in FileSystemWatcher in .NET that was used to create an application to monitor a given folder (and subfolders) for specific file/folder operations such as Creation, Deletion, Rename, and Modification.  It also has the ability to send an email alert upon detecting one of the operations selected to monitor for.

Read More TheWatcher