Python 2.7 Tkinter GUI Example Code

February 28, 2015

Some example code for future reference. # This accepts preformatted text from textedit and formats it from bs4 import BeautifulSoup import collections import Tkinter as tk import sys class MyWindow(tk.Frame): def __init__(self, parent): tk.Frame.__init__(self, parent) self.parent = parent self.grid() self.article_url = tk.StringVar() self.article_title = tk.StringVar() self.current_status = tk.StringVar() self.choice = tk.IntVar() self.article_total = 0 for […]


Splunk free Configuration

March 14, 2014
Tags: ,

Splunk Free This is the second post in how to setup pfSense, Squid, and Splunk. Here is a link to the first post, pfSense, Squid, and Splunk free Sometime around 2013 Splunk switched to a paid and free version. The free version does not allow for emailed alerts or user authentication. For this post, I will […]


Python 3.2 Tkinter GUI Beginners Example Code

February 2, 2013

UPDATED (2/2/2013) This example is now working. I had to add a sequence to the bind statements. Have you ever wanted to add a simple GUI to an excellent python script without installing any additional modules? Here is some basic example code to help you. When I started I wanted a GUI solution that would […]


Simple Text Converter

July 25, 2011

This is a simple wordlist converter. I wanted to try out argparse and continue learning about python. This is the result. I really liked working with argparse and think this is a good example. Convert wordlist text files to various formats. optional arguments: -h, –help show this help message and exit -v, –verbose Increases messages […]


Custom pfSense Firewall Log Analyzer

April 18, 2011
Tags: , ,

UPDATE: Just use Splunk! Preamble: This was setup using a pfSense machine and a Debian based LAMP. pfSense is an amazing open source firewall capable of protecting a network ranging from a home network to a large corporate network. The one thing I could not get it to do was show me statistics on blocked […]


Python Nmap.xml Parser

February 24, 2010
Tags: ,

For a school project, I was required to go through a Nmap.xml file and copy and paste to an excel file. This task seemed a little daunting since the Nmap file contained hundreds of results. So I set out to use python to parse the file. I was having a hard time until I looked […]


Python WordPress Spam Bot Automated Commenter

August 12, 2009

I started with a project that would automatically log in to and parse the page and email me how many minutes I used. I learned that this might work with Python and the mechanized package. I later learned that although the mechanized package can deal with cookies it can not deal with JavaScript which […]