{"id":5238,"date":"2010-10-20T18:24:18","date_gmt":"2010-10-20T16:24:18","guid":{"rendered":"http:\/\/www.corelan.be:8800\/?p=5238"},"modified":"2026-03-22T22:37:34","modified_gmt":"2026-03-22T21:37:34","slug":"in-memory-fuzzing","status":"publish","type":"post","link":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/","title":{"rendered":"In Memory Fuzzing"},"content":{"rendered":"<h3>Introduction<\/h3>\n<p>In memory fuzzing is a technique that allows the analyst to bypass parsers; network-related limitations such as max connections, buit-in IDS or flooding protection; encrypted or unknown (poorly documented) protocol in order to fuzz the actual underlying assembly routines that are potentially vulnerable.<\/p>\n<p>Prior to the development of my fuzzing toolset, I was unsatisfied (for now) with all the publicly available in memory fuzzers, because most of them are just too basic and require too much prep time in advance -- flow analysis, reverse code engineering, etc -- which obviously has a high learning curve and time consuming tasks, and most people would rather just stick with traditional fuzzers (which usually can accomplish the exact same thing).&#160; Yes, you DO need some reversing skills to make in memory fuzzing useful, but honestly it doesn't really have to be all that difficult to start fuzzing and find bugs... as long as you have the right approach.<\/p>\n<p>One of the approaches we do here is by tracing user input automatically at real time, and log all the important functions that process that input, and then fuzz them.&#160; A proof of concept (Tracer.py and InMemoryFuzzer.py) is also available to download:<\/p>\n<p><a href=\"http:\/\/web.archive.org\/web\/20121101195830\/http:\/\/redmine.corelan.be:80\/projects\/inmemoryfuzzing\">http:\/\/redmine.corelan.be\/projects\/inmemoryfuzzing<\/a><\/p>\n<h4><strong>Special thanks to:<\/strong><\/h4>\n<ul>\n<li>Peter Van Eeckhoutte, and members of Corelan Security <\/li>\n<li>Offensive Security Exploit Database <\/li>\n<li>dookie2000ca for all the feedback <\/li>\n<\/ul>\n<h4><strong>Requirements\/Setup:<\/strong><\/h4>\n<p>In order to use these tools, you should have:<\/p>\n<ul>\n<li>Windows XP SP2 or SP3 (not tested on SP1), or newer <\/li>\n<li>IDA 4.9, or pvefindaddr. The difference is pvefindaddr is more automatic, IDA isn't. IDA, however, will find all\/more functions though <\/li>\n<li>Python 2.5.0 (installed from Immunity Debugger) <\/li>\n<li>Pydasm: <a title=\"src:&#039;http:\/\/www.youtube.com\/v\/YhyFuAfD7C4&#039;,width:&#039;425&#039;,height:&#039;350&#039;\" href=\"https:\/\/web.archive.org\/web\/20121029112552\/http:\/\/therning.org:80\/magnus\/archives\/278\">http:\/\/therning.org\/magnus\/archive\/278<\/a> <\/li>\n<li>Paimei: <a href=\"http:\/\/www.openrce.org\/downloads\/details\/208\/PaiMei\">http:\/\/www.openrce.org\/downloads\/details\/208\/PaiMei<\/a> <\/li>\n<\/ul>\n<p>Pydbg is probably the trickiest to install so we'll go throughly the steps briefly:<\/p>\n<ol>\n<li>Install Python 2.5. The one I tested was Python 2.5 (r25:51908, Sep 19 2006) <\/li>\n<li>Download Pydasm (for Python 2.5) from the URL above. <\/li>\n<li>Download Paimei. Extract the package, go to the &quot;installers&quot; folder, and run the installer. <\/li>\n<li>Remove C:\\Python25\\Lib\\site-packages\\pydbg\\pydasm.pyd <\/li>\n<li>Now you're ready to test out Pydbg. Open command prompt, and type the following. If you no errors after importing Pydbg, that means your system now supports Pydbg: <\/li>\n<\/ol>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"import_pydbg\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png\" width=\"521\" height=\"259\" \/><\/a><\/p>\n<h3>Tracer.py: How It Works<\/h3>\n<p>As I previously mentioned, in order to deploy an in memory fuzzer, you must go through a good amount of analysis to identify all the functions that process your input, and log the function entry address, RETN addresses, and the argument you want to fuzz.&#160; This makes fuzzing very time consuming, simply not something that can be done in minutes. The purpose of Tracer.py is to ease off this process, allowing the user to track the control flow and user input at real time.<\/p>\n<p>This is done by first searching all the function addresses in the application, put a hook point in every one of them, and then start monitoring.&#160; If a hooked function is detected, we log the function and the argument, and keep monitoring.&#160; Since this happens at real time, even with the most basic tool like this can still see some kind of pattern in the log, which gives us an idea where to fuzz.<\/p>\n<p>The following example shows how to recognize this pattern in Tracer.py:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/tracer_screenshot.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"tracer_screenshot\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/tracer_screenshot_thumb.png\" width=\"450\" height=\"400\" \/><\/a><\/p>\n<h3>Tracer.py: How To<\/h3>\n<p><span style=\"color: #ff0000\">First<\/span>, open IDA.&#160; If you're using IDA 4.9 ( see image):<\/p>\n<ol>\n<li>Click on the Functions tab <\/li>\n<li>Select all the functions (click the first function -&gt; hold [shift] -&gt; select last function) <\/li>\n<li>Right click -&gt; copy -&gt; paste on notepad.&#160; Save it as &quot;<strong>functions.txt<\/strong>&quot; under the same directory as the script. <\/li>\n<\/ol>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/ida49_functions_enum.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"ida49_functions_enum\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/ida49_functions_enum_thumb.png\" width=\"541\" height=\"376\" \/><\/a><\/p>\n<p>If you're using IDA Pro 5.5 or higher, the Functions table should be on the left of the the pretty graph.&#160; You can do the same thing (right click -&gt; copy and paste) to obtain all your functions that way.<\/p>\n<p><span style=\"color: #ff0000\">Second<\/span>, open the application you want to fuzz.&#160; You must do this before running the script because it needs to attach to the process first.<\/p>\n<p><span style=\"color: #ff0000\">Third<\/span>, now that you have a function list (functions.txt).&#160; Go to command prompt, and type of the following (assuming you saved Tracer.py in C:\\):<\/p>\n<blockquote>\n<p>C:&gt;C:\\Python25\\python.exe Tracer.py<\/p>\n<\/blockquote>\n<p><span style=\"color: #ff0000\">Fourth<\/span>, the script should find the function list file without problems.&#160; Give it a pattern (user input) to look for, select the process you want to monitor, and the fun begins.&#160; Note that a file named &quot;<strong>new_functions_addrs.txt<\/strong>&quot; will be created -- this file contains the same function addresses, and the correct RETN addresses.&#160; You can use this as a reference later for InMemoryFuzzer.py.<\/p>\n<p><span style=\"color: #ff0000\">Fifth<\/span>, now Tracer.py should be monitoring.&#160; Go back to the application, feed it the same pattern, and then you'll see which functions get triggered.&#160; Press <strong>[CTRL]+[C]<\/strong> to terminate the script.<\/p>\n<h3>InMemoryFuzzer.py: How It Works<\/h3>\n<p>The idea of how the fuzzer works is simple.&#160; Say you have a vulnerable routine at entry 0x1001BEEF (aka snapshot point), which takes the user input as [ESP+4] at the beginning of the prologue, and that function ends at address 0x1001BFEA (restore point).&#160; We can put a breakpoint at 0x1001BEEF, another at 0x1001BFEA, and let the application run, as the following diagram demonstrates:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_1.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"flow_1\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_1_thumb.png\" width=\"514\" height=\"106\" \/><\/a><\/p>\n<p>Wehen the execution flow hits our first breakpoint (entry) for the first time, we take a snapshot of the state (threads, stack, registers, flags, etc), modify the user input in [ESP+4], and resume execution to let the function to process our data, and hope something crashes.&#160; If an exception is thrown somewhere in the code, we log that, restore the function state, and redirect the execution flow back to the entry (0x1001BEEF), and fuzz again with a new input, like this diagram:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_2.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"flow_2\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_2_thumb.png\" width=\"511\" height=\"141\" \/><\/a><\/p>\n<p>Or, no exception is triggered, we end up hitting the second breakpoint, then all we have to do is restore the state, rewind, and fuzz again:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_3.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"flow_3\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/flow_3_thumb.png\" width=\"516\" height=\"135\" \/><\/a><\/p>\n<h3>InMemoryFuzzer.py: How To<\/h3>\n<p>Before you use the fuzzer, you should already know the following:<\/p>\n<ul>\n<li>Which process\/dll to fuzz <\/li>\n<li>The function entry address(s) (aka your snapshot points) <\/li>\n<li>The restore point(s) (typically a RETN address) <\/li>\n<li>Which function argument(s) to fuzz <\/li>\n<\/ul>\n<p>First thing, open the application you want to fuzz again.&#160; And if needed, change how many times you want to fuzz by editing the &quot;maxFuzzCount&quot; global variable in the source code.&#160; Please note that InMemoryFuzzer.py has two modes for fuzzing:&#160; <strong>Single routine<\/strong>, or <strong>multiple<\/strong>. <strong>Single routine mode<\/strong> allows the user to put every required information (function entry, restore point, argument) in one line:<\/p>\n<blockquote>\n<p>C:&gt;C:\\python25\\python.exe InMemoryFuzzer.py &lt;Snapshot point&gt; &lt;Restore point&gt; &lt;Argument&gt;<\/p>\n<\/blockquote>\n<p>So if we were to reuse the same example in the &quot;How it works&quot; section, we would be feeding the fuzzer with the following:<\/p>\n<blockquote>\n<p>C:&gt;C:\\python25\\python.exe InMemoryFuzzer.py 0x1001BEEF 0x1001BFEA ESP+4<\/p>\n<\/blockquote>\n<p><strong>Multiple-Routine mode<\/strong>, which is my favorite mode, does not have to called from the command line.&#160; All you must do is prepare <strong>breakpoints.txt<\/strong>, which contains information such as the snapshot point\/restore point\/argument with the same format: &lt;snapshot point&gt; &lt;restore point&gt; &lt;argument&gt;.&#160; Example:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/breakpoints_file.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"breakpoints_file\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/breakpoints_file_thumb.png\" width=\"364\" height=\"351\" \/><\/a><\/p>\n<p>Once you have breakpoints.txt, double click on&#160; InMemoryFuzzer.py, you'll be asked which process to attach, trigger the vulnerable routine by feeding some user input again (does not have to be the same pattern as you did for Tracer.py) and then it'll start fuzzing once the execution flow hits our first breakpoint. When the fuzzer is complete, there should be a newly created folder named &quot;crashbin&quot; under the same directory as the fuzzer.&#160; Crash Bin is a place where InMemoryFuzzer.py stores all the crashes (htm files), and the inputs that caused them.&#160; Here's an example of a crash dump:<\/p>\n<p style=\"text-align: center\"><a href=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/dump.png\"><img loading=\"lazy\" decoding=\"async\" style=\"border-left-width: 0px; border-right-width: 0px; border-bottom-width: 0px; padding-top: 0px; padding-left: 0px; padding-right: 0px; border-top-width: 0px\" border=\"0\" alt=\"dump\" src=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/dump_thumb.png\" width=\"366\" height=\"382\" \/><\/a><\/p>\n<p>Each crash dump contains information including:<\/p>\n<ul>\n<li>Function entry (snapshot point) address <\/li>\n<li>Argument <\/li>\n<li>Argument length to crash the application <\/li>\n<li>Registers (and what data they're pointing to) <\/li>\n<li>Disassembled instruction <\/li>\n<li>SEH chains and offsets <\/li>\n<li>Input that caused the crash <\/li>\n<\/ul>\n<p>After an exception is found, the rest leaves for the user to analyze.&#160; This is where IDA Pro, or Immunity Debugger becomes handy again.<\/p>\n<h3>Demonstration<\/h3>\n<div id=\"scid:5737277B-5D6D-4f48-ABFC-DD9C333F4C5D:c4c37369-cbb9-471a-96a3-f9fd744e31b7\" class=\"wlWriterSmartContent\" style=\"float: none; padding-bottom: 0px; padding-top: 0px; padding-left: 0px; margin: 0px; display: inline; padding-right: 0px\">\n<div><object width=\"736\" height=\"412\"><\/object><\/div>\n<div style=\"font-size: 0.8em; width: 736px; clear: both\">In Memory Fuzzer demonstration<\/div>\n<\/p><\/div>\n<p style=\"text-align: center\">\n<p><em>The above video demonstration shows you how to use in memory fuzzing from vulnerability to exploitation. <\/em><em>You can view the video here as well : <a href=\"http:\/\/www.youtube.com\/watch?v=YhyFuAfD7C4\">http:\/\/www.youtube.com\/watch?v=YhyFuAfD7C4<\/a><\/em><\/p>\n<p><!--Digiprove_Start--><span lang=\"en\" title=\"certified 20 October 2010 16:24:29 UTC by Digiprove certificate P56830\" style=\"border-top: #e3e3e3 1px solid; border-right: #e3e3e3 1px solid; vertical-align: middle; border-bottom: #e3e3e3 1px solid; padding-bottom: 3px; padding-top: 3px; padding-left: 3px; border-left: #e3e3e3 1px solid; display: inline; line-height: normal; padding-right: 3px; background-color: #000000\" xml:lang=\"en\"><a style=\"text-decoration: none; border-top: 0px; border-right: 0px; border-bottom: 0px; float: none; border-left: 0px; display: inline; background-color: #000000\" href=\"http:\/\/www.digiprove.com\/show_certificate.aspx?id=P56830;guid=-9J93V9Tjk-oukHO0fDgLw\" rel=\"copyright noopener\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" style=\"border-top: 0px; border-right: 0px; vertical-align: middle; border-bottom: 0px; float: none; margin: 0px; border-left: 0px; display: inline; background-color: transparent\" border=\"0\" alt=\"\" src=\"http:\/\/www.digiprove.com\/images\/dp_seal_trans_16x16.png\" width=\"12\" height=\"12\" \/><span onmouseover=\"this.style.color=&#39;#FFFF1C&#39;;\" onmouseout=\"this.style.color=&#39;#FFFFFF&#39;;\" style=\"font-size: 9px; text-decoration: none; border-top: 0px; font-family: tahoma, ms sans serif; border-right: 0px; border-bottom: 0px; float: none; color: #ffffff; border-left: 0px; display: inline; letter-spacing: normal\">&#160; Copyright secured by Digiprove \u00a9 2010 Peter Van Eeckhoutte<\/span><\/a><!--9E2C2BE09EB30DF77F01B3E1346CBFFB9623947A71ACB40301A66D655DC93733--><\/span><!--Digiprove_End--><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction In memory fuzzing is a technique that allows the analyst to bypass parsers; network-related limitations such as max connections, buit-in IDS or flooding protection; encrypted or unknown (poorly documented) protocol in order to fuzz the actual underlying assembly routines that are potentially vulnerable. Prior to the development of my fuzzing toolset, I was unsatisfied &hellip; <a href=\"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> \"In Memory Fuzzing\"<\/span><\/a><\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[3170],"tags":[3740,2128,1991,1978],"class_list":["post-5238","post","type-post","status-publish","format-standard","hentry","category-fuzzing-security","tag-backup-restore","tag-immunity-debugger","tag-fuzzing","tag-python"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"og:description\" content=\"Introduction In memory fuzzing is a technique that allows the analyst to bypass parsers; network-related limitations such as max connections, buit-in IDS or flooding protection; encrypted or unknown (poorly documented) protocol in order to fuzz the actual underlying assembly routines that are potentially vulnerable. Prior to the development of my fuzzing toolset, I was unsatisfied &hellip; Continue reading &quot;In Memory Fuzzing&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/\" \/>\n<meta property=\"og:site_name\" content=\"Corelan | Exploit Development &amp; Vulnerability Research\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/corelanconsulting\" \/>\n<meta property=\"article:published_time\" content=\"2010-10-20T16:24:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-22T21:37:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png\" \/>\n<meta name=\"author\" content=\"Corelan Team (sinn3r)\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@corelanc0d3r\" \/>\n<meta name=\"twitter:site\" content=\"@corelanc0d3r\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/\"},\"author\":{\"name\":\"Corelan Team (sinn3r)\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/a3b3c93886b1c1a9f38595d663bee7bd\"},\"headline\":\"In Memory Fuzzing\",\"datePublished\":\"2010-10-20T16:24:18+00:00\",\"dateModified\":\"2026-03-22T21:37:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/\"},\"wordCount\":1417,\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2010\\\/10\\\/import_pydbg_thumb.png\",\"keywords\":[\"backup restore\",\"immunity debugger\",\"fuzzing\",\"python\"],\"articleSection\":[\"Fuzzing\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/\",\"name\":\"In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2010\\\/10\\\/import_pydbg_thumb.png\",\"datePublished\":\"2010-10-20T16:24:18+00:00\",\"dateModified\":\"2026-03-22T21:37:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2010\\\/10\\\/import_pydbg_thumb.png\",\"contentUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2010\\\/10\\\/import_pydbg_thumb.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/2010\\\/10\\\/20\\\/in-memory-fuzzing\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.corelan.be\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"In Memory Fuzzing\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#website\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"name\":\"Corelan CyberSecurity Research\",\"description\":\"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.corelan.be\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#organization\",\"name\":\"Corelan CyberSecurity Research\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"contentUrl\":\"https:\\\/\\\/www.corelan.be\\\/wp-content\\\/uploads\\\/2026\\\/03\\\/corelanlogo2_small-20.png\",\"width\":200,\"height\":200,\"caption\":\"Corelan CyberSecurity Research\"},\"image\":{\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/corelanconsulting\",\"https:\\\/\\\/x.com\\\/corelanc0d3r\",\"https:\\\/\\\/x.com\\\/corelanconsulting\",\"https:\\\/\\\/instagram.com\\\/corelanconsult\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.corelan.be\\\/#\\\/schema\\\/person\\\/a3b3c93886b1c1a9f38595d663bee7bd\",\"name\":\"Corelan Team (sinn3r)\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x\",\"caption\":\"Corelan Team (sinn3r)\"},\"url\":\"https:\\\/\\\/www.corelan.be\\\/index.php\\\/author\\\/sinn3r\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/","og_locale":"en_US","og_type":"article","og_title":"In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research","og_description":"Introduction In memory fuzzing is a technique that allows the analyst to bypass parsers; network-related limitations such as max connections, buit-in IDS or flooding protection; encrypted or unknown (poorly documented) protocol in order to fuzz the actual underlying assembly routines that are potentially vulnerable. Prior to the development of my fuzzing toolset, I was unsatisfied &hellip; Continue reading \"In Memory Fuzzing\"","og_url":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/","og_site_name":"Corelan | Exploit Development &amp; Vulnerability Research","article_publisher":"https:\/\/www.facebook.com\/corelanconsulting","article_published_time":"2010-10-20T16:24:18+00:00","article_modified_time":"2026-03-22T21:37:34+00:00","og_image":[{"url":"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png","type":"","width":"","height":""}],"author":"Corelan Team (sinn3r)","twitter_card":"summary_large_image","twitter_creator":"@corelanc0d3r","twitter_site":"@corelanc0d3r","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#article","isPartOf":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/"},"author":{"name":"Corelan Team (sinn3r)","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/a3b3c93886b1c1a9f38595d663bee7bd"},"headline":"In Memory Fuzzing","datePublished":"2010-10-20T16:24:18+00:00","dateModified":"2026-03-22T21:37:34+00:00","mainEntityOfPage":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/"},"wordCount":1417,"publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"image":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#primaryimage"},"thumbnailUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png","keywords":["backup restore","immunity debugger","fuzzing","python"],"articleSection":["Fuzzing"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/","url":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/","name":"In Memory Fuzzing - Corelan | Exploit Development &amp; Vulnerability Research","isPartOf":{"@id":"https:\/\/www.corelan.be\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#primaryimage"},"image":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#primaryimage"},"thumbnailUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png","datePublished":"2010-10-20T16:24:18+00:00","dateModified":"2026-03-22T21:37:34+00:00","breadcrumb":{"@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#primaryimage","url":"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png","contentUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2010\/10\/import_pydbg_thumb.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.corelan.be\/index.php\/2010\/10\/20\/in-memory-fuzzing\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.corelan.be\/"},{"@type":"ListItem","position":2,"name":"In Memory Fuzzing"}]},{"@type":"WebSite","@id":"https:\/\/www.corelan.be\/#website","url":"https:\/\/www.corelan.be\/","name":"Corelan CyberSecurity Research","description":"Corelan publishes in-depth tutorials on exploit development, Windows exploitation, vulnerability research, heap internals, reverse engineering and security tooling used by professionals worldwide.","publisher":{"@id":"https:\/\/www.corelan.be\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.corelan.be\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.corelan.be\/#organization","name":"Corelan CyberSecurity Research","url":"https:\/\/www.corelan.be\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/","url":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","contentUrl":"https:\/\/www.corelan.be\/wp-content\/uploads\/2026\/03\/corelanlogo2_small-20.png","width":200,"height":200,"caption":"Corelan CyberSecurity Research"},"image":{"@id":"https:\/\/www.corelan.be\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/corelanconsulting","https:\/\/x.com\/corelanc0d3r","https:\/\/x.com\/corelanconsulting","https:\/\/instagram.com\/corelanconsult"]},{"@type":"Person","@id":"https:\/\/www.corelan.be\/#\/schema\/person\/a3b3c93886b1c1a9f38595d663bee7bd","name":"Corelan Team (sinn3r)","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x","url":"https:\/\/secure.gravatar.com\/avatar\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6805731a982ff8c115ede51c60744151886f52bbb6a79f69c564f697a5967009?s=96&d=mm&r=x","caption":"Corelan Team (sinn3r)"},"url":"https:\/\/www.corelan.be\/index.php\/author\/sinn3r\/"}]}},"views":21077,"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/5238","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/comments?post=5238"}],"version-history":[{"count":1,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/5238\/revisions"}],"predecessor-version":[{"id":17605,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/posts\/5238\/revisions\/17605"}],"wp:attachment":[{"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/media?parent=5238"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/categories?post=5238"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corelan.be\/index.php\/wp-json\/wp\/v2\/tags?post=5238"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}