Skip to content

Instantly share code, notes, and snippets.

View defparam's full-sized avatar
😎
Keepin' cool

defparam defparam

😎
Keepin' cool
View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDOLtmqAAxp1FOns+IPNlWWR91vNbh7ue8SMmRbGXO0MnTK7F06OiYkc0LTqWQDTlqRT06fjZaSrjmaHypKHa/fyPr2+ZTQQUXiEAre1u1dXS7oJU6iApwzYkoEmNu3Uk1ssj1xCvrbuirxHPTRGcyz3XmifCIFpsza5ak+epSgH2sTIELalbrPREau3R4J65clsxsO/ENOj9z4WmUq/LLJZzEHbmV00H2XRaknqL6Aw9DIkalbop9/PIdDBvm1LqRFJTKR2bJPxkGV0braBQi5ZUsLRBmdbM625ltK5TBIajKUnNywc4sLJVmcSPcEs5tbTEykRMEFueu/bLyHKWlBGAIo1Lob/5e/ezD1ADmI8MDqk6mzyM9236ykJ+OirLanAe31axFDhMM/T8T86I/f9m1VFa5b6R+YOfrTUsZy/g/U2+ZNX+IgJYkEebNc5SkrHN5tZq/BqlOSJne8UAa7PYTuwyqxOCU/u+QZQMOef83AR+CR0LRXLQk37bqNAFz4ssuPvO0YK34z43EKXDm+9tWHP94P340GnhrNyDs/JQWyE2Y7dpru51k8NI44uvUSu9iacP4IrXXcYTmSDRq4p8fS/zqveXqK0QoSU4BqXC2UDivHwGZymUQ6emD8lvR10osrLTLoNov+8oeyj6XKzM76+f+XjJKATFJTYqTc2Q== openpgp:0xF4C0A3A3
@defparam
defparam / examine.py
Last active August 17, 2022 13:04
Examine a python object
def examine(obj):
objl = dir(obj)
for item in objl:
print("%s: %s"%(item.ljust(40," "), type(getattr(obj, item))))
@defparam
defparam / MutateMethods.py
Last active December 10, 2023 00:31
Example of using Turbo Intruder in a "listen and attack" mode. Because turbo intruder's jython interpreter is technically inside burp you can have turbo intruder scripts use the plugin API. Here we use burp.IProxyListener to intercept requests and reissue them inside turbo intruder mutating the method.
from threading import Thread
import time
class TrafficMagnet(burp.IProxyListener):
def __init__(self):
callbacks.registerProxyListener(self)
self._helpers = callbacks.getHelpers()
self._callbacks = callbacks
@defparam
defparam / flexdump
Last active April 12, 2024 12:04
Flexdump - A script that wraps flexdecrypt to dump, decrypt, re-sign, re-package iOS apps
#!/bin/bash
# Copyright 2021-2023 Evan Custodio (@defparam)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"),
# to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
# and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
@defparam
defparam / cluster.py
Last active December 15, 2023 10:19
Gist of the Day: Turbo Intruder Cluster Bomb with SmartFiltering
# Gist of the Day: Turbo Intruder Cluster Bomb with SmartFiltering
# Author: Evan Custodio (@defparam)
#
# MIT License
# Copyright 2021 Evan Custodio
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#
@defparam
defparam / fuzz.py
Created March 13, 2021 23:54
Differential Fuzzing of Regex using Atheris
import sys, re
import atheris
from urllib.parse import urlparse
# Our sketchy regex to be tested
OurRegex = re.compile(b"^(((([A-Za-z0-9.-]*\.)?example1\.com)|(([A-Za-z0-9.-]*\.)\?example2\.com)|(([A-Za-z0-9.-]*\.)?example3\.com)))")
# The allow list of domains the regex is trying to validate
Allowlist = [b"example1.com", b"example2.com", b"example3.com"]
@defparam
defparam / json_fuzz_poc.py
Created March 10, 2021 15:11
Turbo Intruder JSON Fuzzing Example using JSONAccessor
# JSON Fuzz Proof of Concept using JSONAccessor
# Author: Evan Custodio (@defparam)
#
# MIT License
# Copyright 2021 Evan Custodio
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
#