Showing posts with label windows. Show all posts
Showing posts with label windows. Show all posts

Monday, August 23, 2010

creating a binary packet file (windows)

Step 1: fire up wireshark and start sniffing

Step 2: find a suitable packet to modify, right click -> copy -> Bytes (Hex Stream)

Step 3: use a hex editor to create a new binary file, and paste the hex stream into a new file. (I used XVI32)








and there you go! a fresh new binary file you can use for transmission as a frame. you can edit the package using the hex editor; with a little experimentation and hex calculation, there is the potential for lots of fun! :-)

Wednesday, June 16, 2010

trying to bake on windows, but unseralize being wierd?

Notice (8): unserialize() [function.unserialize]: Error at offset 0 of 1519 bytes [CORE\cake\libs\cache\file.php, line 178]
Notice (8): unserialize() [function.unserialize]: Error at offset 0 of 28 bytes [CORE\cake\libs\cache\file.php, line 178]
Notice (8): unserialize() [function.unserialize]: Error at offset 0 of 5 bytes [CORE\cake\libs\cache\file.php, line 178]


modify cake\libs\cache\file.php, trim $data before serialize and unserialize functions:

$data = trim($data);

at line 177 and line 135