Skip to content

Instantly share code, notes, and snippets.

View Fitblip's full-sized avatar

Ryan Fitblip

View GitHub Profile
@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 / Magic issues
Created November 18, 2012 04:43
VDB issue #1
# Before patch
[objdump -p] [VDB]
Magic 010b 0b01
MajorLinkerVersion 7 (7)
MinorLinkerVersion 0 (0)
SizeOfCode 00007000 00007000
SizeOfInitializedData 00007000 00007000
SizeOfUninitializedData 00019000 00019000
AddressOfEntryPoint 00020cd0 00020cd0
BaseOfCode 0001a000 0001a000
@Fitblip
Fitblip / gist:5218816
Last active May 26, 2018 06:55
Clone of Corelan's PVEString stack tool. Written because perl sucks, and I'm not going to install that garbage on my computer to do one thing.
import sys
string = sys.argv[-1]
lines = []
print "String length : %d" % len(string)
print "Opcodes to push this string onto the stack :"
for i in range(0,len(string),4):
line = string[:4]
@Fitblip
Fitblip / gist:aa14d00ed97ac6750640
Created July 10, 2014 06:32
Pwnin some googles
alert(1)