Skip to content

Instantly share code, notes, and snippets.

Avatar
😎
Keepin' cool

Evan defparam

😎
Keepin' cool
View GitHub Profile
@defparam
defparam / examine.py
Last active Aug 17, 2022
Examine a python object
View examine.py
def examine(obj):
objl = dir(obj)
for item in objl:
print("%s: %s"%(item.ljust(40," "), type(getattr(obj, item))))
@defparam
defparam / flexdump
Created Jun 17, 2021
Flexdump - A script that wraps flexdecrypt to dump, decrypt, re-sign, re-package iOS apps
View flexdump
#!/bin/bash
# Copyright 2021 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 / MutateMethods.py
Last active Aug 7, 2022
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.
View MutateMethods.py
import time
class TrafficMagnet(burp.IProxyListener):
def __init__(self, engine):
callbacks.registerProxyListener(self)
self._engine = engine
self._target = str(self._engine.engine.getTarget()).lower().replace("https:","").replace("http:","").replace("/","").split(':')[0]
def listen(self):
while True:
@defparam
defparam / json_fuzz_poc.py
Created Mar 10, 2021
Turbo Intruder JSON Fuzzing Example using JSONAccessor
View json_fuzz_poc.py
# 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.
#
@defparam
defparam / fuzz.py
Created Mar 13, 2021
Differential Fuzzing of Regex using Atheris
View fuzz.py
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 / cluster.py
Last active Jun 8, 2022
Gist of the Day: Turbo Intruder Cluster Bomb with SmartFiltering
View cluster.py
# 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.
#
View keybase.md

Keybase proof

I hereby claim:

  • I am defparam on github.
  • I am defparam (https://keybase.io/defparam) on keybase.
  • I have a public key ASDrkBWb0Uc8t3mMtD77HfzNcgQCnXVp6IdhcpjOUqxcAAo

To claim this, I am signing this object: