Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Fitblip's full-sized avatar

Ryan Fitblip

View GitHub Profile
@Fitblip
Fitblip / gist:aa14d00ed97ac6750640
Created July 10, 2014 06:32
Pwnin some googles
alert(1)
@Fitblip
Fitblip / sip.py
Created April 13, 2012 20:59
Sulley issue #7
# import all of Sulley's functionality.
from sulley import *
from requests import sip_data
import socket
sess = sessions.session(session_filename="sip.txt", proto='udp')
target = sessions.target("10.0.0.20", 5060)
target.netmon = pedrpc.client("10.0.0.1", 26001)
@Fitblip
Fitblip / primitives.py.patch
Created April 13, 2012 21:16
Sulley issue #8
orted by netwerkf...@gmail.com, Sep 30, 2008
Index: sulley/primitives.py
===================================================================
--- sulley/primitives.py (revision 154)
+++ sulley/primitives.py (working copy)
@@ -763,6 +763,23 @@
self.rendered = rendered
+ elif self.format == "hex":
@Fitblip
Fitblip / http.crashbin.b64
Created April 13, 2012 21:44
Sulley issue #10
#Base64 version of http.crashbin
eJzs3QdYVOfWuH0Fe++9YMc+dLBi7x3siDQFRWEGVDTYoqJiL1FjTzSxxRJ71Nh7jVETTTRq7C2x
xq7/2UtBuF2jOec913Xe73tDYmH/9sxs5p7Z62EyxiF2jkF9osPCoyoFWQKiQv0Dw3r3DuvdPUPy
z8wpI8x2A832jr4ZwgOiov1Fzama+6ay7hFlTj3QnMaxcfFSvYv7mdM66lfo75/4uX9UtKVPULS/
fwZzughz+oHmDI6+2UJigkIio8Mievv3igjuEx5izuibvlOj5m1rNW1U18+cyTdTVHRAUE//Pr37
hfUONmf2M2fxzf7uMgHBwZaQqChzVjkK30xBEb2jQ2Ki/YP79Io0Z/PplipFijotmvvUa+/jUNe3
WcsMDg71GrWs4uDs7B7i7Obs7ODbOyAwPMQhOsIhOCwqICoqpJfxaUB04h7GJWq1r+JgMjk5Bzmb
nBwcHRwcnJydvVycXMo6VKzhUNy44f8rPxwcpUZZ416pbb1XPDydXN08PIMdHK13jaubl5fJ7c29
0rxyLWOfOnLPvfmQe+7NhynpPnWt+3SzfoS4hDg7OLo6e7l6uZtMXp7J9mn0pkBgoJNnQgEPN1dX
2adhRFR0laRH1iZhbxdT4t5urp5vbjXZl9DyzY4hHgEJO7p4erk5y47eoR1KV4iJ8a8zqFu3WG/v
@Fitblip
Fitblip / generate_epydocs.sh
Created April 13, 2012 21:52
Sulley issue #14
#!/bin/bash
#
# *nix version of building epydoc from the command line
# Verify epydoc is available
EPYDOC=`which epydoc`
if [ $? -ne 0 ]; then
echo "Can not find epydoc in path. Exiting ..."
exit $?
fi
@Fitblip
Fitblip / use-hashlib.patch
Created April 13, 2012 22:09
Sulley issue #17
diff --git a/sulley/blocks.py b/sulley/blocks.py
--- a/sulley/blocks.py
+++ b/sulley/blocks.py
@@ -3,8 +3,15 @@
import sex
import zlib
-import md5
-import sha
+try:
@Fitblip
Fitblip / sessions.py.patch
Created April 13, 2012 22:28
Sulley issue #19
diff --git a/sessions.py b/sessions.py
index 21bd1aa..bf025d9 100644
--- a/sessions.py
+++ b/sessions.py
@@ -383,7 +383,7 @@ class session (pgraph.graph):
self.total_mutant_index += 1
# if we've hit the restart interval, restart the target.
- if self.restart_interval and self.total_mutant_index % self.restart_interval == 0:
+ if self.restart_interval and self.total_mutant_index % self.restart_interval == 0 and self.total_mutant_index > self.skip:
@Fitblip
Fitblip / bmp.py
Created April 13, 2012 22:50
Sulley issue #25
from sulley import *
s_initialize("bug.bmp")
s_string('BM') #signature de root
s_dword('2046820608', endian='<') #file_size de root
s_binary("00000000",fuzz="random", percent=10) # reserved de root
s_dword('2046820352', endian='<') #data_start de root
s_dword('1811939328', endian='<') #header_size de header
s_dword('2147483648', endian='<') #width de header
@Fitblip
Fitblip / tests.py
Created October 27, 2016 19:23
Django test for un-run migtraionts
'''
It's worth noting that we use the built-in User model, but also have a tweak that enforces email
uniqueness (which IMO is a pretty large oversight by the django folks), so that's why it's acceptable
that `Migrations for 'auth'` is in the payload.
'''
class TestForNonGeneratedMigrations(TestCase):
def test_for_migrations_to_run(self):
stdout = StringIO.StringIO()
call_command('makemigrations', no_color=True, dry_run=True, stdout=stdout)
@Fitblip
Fitblip / keybase.md
Created January 25, 2017 22:25
keybase.md

Keybase proof

I hereby claim:

  • I am fitblip on github.
  • I am fitblip (https://keybase.io/fitblip) on keybase.
  • I have a public key ASDrBgOsT14rT3qzqYUK2ypD6G-W9vHelq5PZY8wnbEPXQo

To claim this, I am signing this object: