This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
## | |
## Network device scanner with HTML output, DNS resolution, UniFi info and | |
## PoE/port info. | |
## | |
## Required commands: arping, snmpwalk, host | |
## Required Python3 libraries: requests, Python Imaging Library | |
## Required infrastructure and services: UniFi controller, PoE switch with SNMP, | |
## dnsmasq (DHCP and DNS) | |
## Also requires ieee-data package installed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### | |
username = input('Username? ') | |
password = input('Password? ') | |
import requests | |
import re | |
import sqlite3 | |
import json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Gets VPOS serials not owned by the current account. Copy in your auth | |
## parameters for an existing valid session below. | |
## Nayax preset ID | |
preset_id = '' | |
## Auth cookie value | |
auth_cookie = '' | |
## RVC cookie value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Quick and dirty serial logger. Logs data received from a serial port. | |
## Port and baud rate selection | |
monitorPort = 'COM29' | |
monitorBaud = 115200 | |
## | |
import serial | |
import time | |
import signal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
## | |
## Interfacing with the MCP2200 GPIO via USB HID. Plays with the first four GPIO ports. | |
## | |
## Used for controlling 4 port USB relay board from Denkovi. | |
## | |
import usb.core | |
import usb.util | |
import time |
NewerOlder