Monthly Archives: April 2017

Archive of posts published in the specified Month

SQLxD Part 3 — Model and parsing XML

This is the third part of the SQLxD series. For your convenience you can find other parts in the table of contents in Part 1 – XML Transformation We want to represent nodes in the following way: using System; using System.Collections.Generic; using System.Linq;…

DLL Injection Part 6 — Injecting managed code into specific App Domain

This is the sixth part of the DLL Injection series. For your convenience you can find other parts in the table of contents in Part 1 – Registry In Part 4 we saw how to inject managed DLL and execute some code in…

Debugging WCF high memory usage

Recently I was debugging high memory usage in application written in .NET 4 using WCF. After few hours application was eating almost 8 GB of memory. I made a memory dump and started digging into it. First, statistics of heap (sorted by total…

Browser link injecting into MVC action response

Imagine that you have the following action in MVC 5 controller: [HttpGet] public string GetData() { return JsonConvert.SerializeObject( new JObject( new JProperty(“message”, “Ok”), new JProperty(“data”, new JObject( new JProperty(“value”, “< /body>“) )) ) ); } We create simple object on a fly, serialize…

SQLxD Part 2 — Grammar

This is the second part of the SQLxD series. For your convenience you can find other parts in the table of contents in Part 1 – XML Transformation In order to implement SQLxD database, we need to know, what kind of queries we…