This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
orted by [email protected], 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": |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alert(1) |
OlderNewer