Skip to content

Instantly share code, notes, and snippets.

Avatar
👓
Learning

Firas Bayazed FirasBayazed

👓
Learning
View GitHub Profile
@FirasBayazed
FirasBayazed / progress_printer.py
Created Oct 23, 2019 — forked from ElCap1tan/progress_printer.py
Simple and leightweight multi-threaded port scanner written in python that can work with port and ip address ranges. At the moment this script only supports full-connection tcp scans. For usage help see >python pyscan.py -h
View progress_printer.py
import sys
class ProgressPrinter:
def __init__(self, units, unit_type='', max_length=50, pre='', post='', fill='=', head='>', empty=' '):
if units > max_length:
self.steps = max_length / units
self.max_length = max_length
else:
self.steps = 1