Python 2.7 Tkinter GUI Example Code

February 28, 2015
Tags:

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 […]

0

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 […]

0

Python 3.2 Tkinter GUI Beginners Example Code

February 2, 2013
Tags:

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 […]

6

Simple Text Converter

July 25, 2011
Tags:

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 […]

0

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 […]

11

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 […]

7

Python WordPress Spam Bot Automated Commenter

August 12, 2009
Tags:

I started with a project that would automatically log in to t-mobile.com 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 […]

5