Skip to content

Instantly share code, notes, and snippets.

@ismailakkila
ismailakkila / ch6_burp_intruder_fuzz_example.py
Created October 25, 2017 07:44
ch6_burp_intruder_fuzz_example.py
#ch6_burp_intruder_fuzz_example.py
#Required for Burp Extender
from burp import IBurpExtender
from burp import IIntruderPayloadGeneratorFactory
from burp import IIntruderPayloadGenerator
from java.util import List, ArrayList
import random
#Class to Define Burp Intruder Payload Generator Factory. Please refer to
@ismailakkila
ismailakkila / ch5_html_form_brute_force.py
Last active November 2, 2022 20:57
ch5_html_form_brute_force.py
#ch5_html_form_brute_force.py
from html.parser import HTMLParser
import urllib.request
import urllib.parse
import http.cookiejar
import queue
import threading
import sys
import os
@ismailakkila
ismailakkila / ch5_http_brute_forcer.py
Created October 17, 2017 09:06
ch5_http_brute_forcer.py
#HTTP URL Brute Forcer
import threading
import urllib.request
import queue
import sys
arguments = sys.argv
successful_attempts = []
extensions = [".png", ".inc", ".php", ".orig"]
threads = 10
@ismailakkila
ismailakkila / scapy_parser.py
Created October 2, 2017 07:11
scapy_parser.py
from scapy.all import *
import zlib
import uuid
import re
import sys
#Usage Instructions
def usage():
print("\n")
print(f"Strip URL Usage (with pcap file): python3 {sys.argv[0]} --inputpcap /path/to/pcap --stripurl /path/to/file")
@ismailakkila
ismailakkila / ch4_arp_poison.py
Created September 25, 2017 14:32
ch4_arp_poison.py
from scapy.all import *
import os
import signal
import sys
import threading
import time
#ARP Poison parameters
gateway_ip = "10.0.0.1"
target_ip = "10.0.0.250"
import socket
import struct
import threading
import sys
import os
import time
from ctypes import *
from netaddr import IPNetwork, IPAddress
class ICMP(Structure):
import os
import sys
import socket
import struct
from ctypes import *
#This is the IP Class inherited from Structure.
class IP(Structure):
#A fields attribute is required to be able to parse the buffer into 1, 2 or
@ismailakkila
ismailakkila / ch2_tcpservertools_example.py
Created August 27, 2017 12:10
ch2_tcpservertools_example.py
#tcp server tools
import socket
import getopt
import threading
import subprocess
import sys
global target
global port
global file_destination
global execute
@ismailakkila
ismailakkila / ch2_netcat_example.py
Created August 27, 2017 12:09
ch2_netcat_example.py
#netcat example
import sys
import socket
import getopt
global target
global port
target = ""
port = 0
def usage():
print(" ")
@ismailakkila
ismailakkila / ch2_tcpproxy_example.py
Created August 27, 2017 12:07
ch2_tcpproxy_example.py
#a simple tcp proxy
import sys
import threading
import socket
import hexdump
import time
global localhost
global localport
global remotehost
global remoteport