This file contains hidden or 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
import json | |
import traceback | |
class MasscanJsonFile: | |
def __init__(self, filename, in_memory = True): | |
self.filename = filename | |
self.in_memory = in_memory | |
self.hosts_port = {} | |
self.port_hosts = {} |
This file contains hidden or 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
# following script will comiple and install Python3.7.1 for Ubuntu 18.04 | |
# the new python version will appear as "python3.7" and "pip3.7" | |
# | |
sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev libffi-dev | |
cd /usr/src | |
wget https://www.python.org/ftp/python/3.7.1/Python-3.7.1.tgz | |
tar xvf Python-3.7.1.tgz | |
cd Python-3.7.1 |
This file contains hidden or 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/env python | |
# abuse cases and better implementation from the original discoverer: https://github.com/leechristensen/SpoolSample | |
# some code from https://www.exploit-db.com/exploits/2879/ | |
import os | |
import sys | |
import argparse | |
import binascii | |
import ConfigParser |
NewerOlder