Python

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 ...