Skip to content

Instantly share code, notes, and snippets.

@skelsec
skelsec / masscan_partser.py
Last active March 10, 2020 08:48
Masscan parsing fun
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 = {}
@skelsec
skelsec / gist:70ffc8d854c34c7dfae5b237158824d1
Last active February 17, 2020 22:35
Python3.7 install from source under Ubuntu 18.04
# 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
@skelsec
skelsec / dementor.py
Created October 7, 2018 17:48 — forked from 3xocyte/dementor.py
rough PoC to connect to spoolss to elicit machine account authentication
#!/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