Skip to content

Instantly share code, notes, and snippets.

@vdb-sander
vdb-sander / expander.py
Created May 17, 2019 11:43
Print all useable IP addresses in the subnets provided
#!/usr/bin/python3
import ipaddress
import sys
file = sys.argv[1]
n = 0
try:
subnets=[line.strip() for line in open(file)]
@vdb-sander
vdb-sander / redirect.py
Created March 15, 2019 08:14 — forked from shreddd/redirect.py
Simple Redirect Server in python to redirect requests to a specified URL
#!/usr/bin/env python
"""
Simple HTTP URL redirector
Shreyas Cholia 10/01/2015
usage: redirect.py [-h] [--port PORT] [--ip IP] redirect_url
HTTP redirect server
positional arguments:
@vdb-sander
vdb-sander / poc.py
Last active November 28, 2018 20:06
Automate the extraction of data (Blind SQLi)
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#Author: Sander Van der Borght
#python poc.py
from poster.encode import multipart_encode, MultipartParam
import requests
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)
import sys
Aad
Aafje
Aafke
Aagje
Aagtje
Aalbert
Aaldert
Aaldrik
Aaliyah
Aalt
@vdb-sander
vdb-sander / log.py
Last active June 2, 2018 20:27
Once you have owned a machine in the OSCP Lab environment you can use this script to mark the machine as completed. A CSV file will be created containing your input regarding hostname, IP, root hash and a timestamp.
# -*- coding: utf-8 -*-
#!/usr/bin/env python
#Author: Sander Van der Borght
import csv
import argparse
import shutil
import datetime
from tempfile import NamedTemporaryFile
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import subprocess
import multiprocessing
from multiprocessing import Process, Queue
import os
import time
import fileinput
import atexit
import sys