Python

Basic tkinter usage for Python 3

Basic tkinter usage for Python 3

I am offering a job online and was flooded with applicants. I needed a way to cut and paste the data and then save it for later processing. Lessons in this Tutorial tkinter basics Classes Basic flow control in loops Python Dictionaries List Splicing json writes Regex Field validation Grid layout in tkinter Tkinter or tkinter? Among the most popular gui frameworks for python such as ...

Verify SSL Expiration with Python 3

Verify SSL Expiration with Python 3

If you’ve ever had a need to verify multiple SSL certificates for expiration times in a batch and wanted to script it in Python, you’ll find this article interesting. When I try to solve a problem, programatically, I usually start with the “what makes sense” question. In this case, the SSL cert main problem ...

Read and Write JSON File Python 3

Read and Write JSON File Python 3

JSON data is a pretty common format, especially if you work with API. Many popular APIs will give or expect to get data in JSON format. Here is how to read and write JSON data files with Python 3. What is JSON? In the most simple form, JSON is a text file containing data. ...

Python 3 Create SVG Gameboard 9 Mens Morris

Python 3 Create SVG Gameboard 9 Mens Morris

9 Men’s Morris is one of my favorite games. It’s simple enough to play against most 5 year olds, but complex enough to challenge most adults. You can print out this game board created with python and see how to create SVG files in Python. This python script is a demo of ...

Python 3 Single Threaded Ping Sweeper

Python 3 Single Threaded Ping Sweeper

I wouldn’t suggest this code be used for production (it’s very slow). We are using to demonstrate the difference in multi threading and single threading. This is the single threaded version of the ping sweeper. The multi threaded version of the python pingsweeper is also available to study. Python 3 Single ...

Python 3 Multi Threaded Port Scanner

Python 3 Multi Threaded Port Scanner

nmap does a better job of scanning, fingerprinting, detecting OS, etc. However if you wanted to roll your own port scanner, python can do it: Python 3 Multi Threaded Port Scanner Python import socket # as we are opening sockets, need the module import time # time our script import threading # we want to multi thread ...

Python 3 Multi Threaded Ping Sweep Scanner

Python 3 Multi Threaded Ping Sweep Scanner

We know that nmap and other tools are great for scanning a network. What if we want to do it in python? The following code is a demonstration of multi threading, using python 3 to sweep a network using pings on windows. The single threaded version took almost 2 minutes to check ...