Skip to content

Instantly share code, notes, and snippets.

View FirasBayazed's full-sized avatar
👓
Learning

Firas Bayazed FirasBayazed

👓
Learning
View GitHub Profile
#
# CCS811_RPi
#
# Petr Lukas
# July, 11 2017
#
# Version 1.0
import struct, array, time, io, fcntl
@FirasBayazed
FirasBayazed / progress_printer.py
Created October 23, 2019 22:37 — forked from leyyce/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
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