Windows, or more precisely, Windows and NTFS has — or rather _had_ ... more on that later — an extremely cool feature: Transactions on the file system. You can basically perform a bunch of operations, create files, modify files, delete files and then either "commit" all of it or "rollback" all of. The underlying Windows API functions belongs to something called Kernel Transaction Manager (KTM) and it's even cooler than _just_ atomic transaction on files: it allows operations on _resources_. Windows ships with two of those already integrated: the file system (TxF) and the Windows registry (TxR). But as a developer you can write a so-called _resource manager_ offering your "thing" to KTM. There's probably some rich corporate history here that I'm completely ignorant to but I can only assume the hope of the team behind this was that KTM will at some point become standard for all kinds of components running on a Windows operating system: just imagine a database being integrated as well as, say, a queuing system. As a user of those transactions, you could de-queue a message and act on the database and KTM would promise that it either all worked or the message was never de-queued. And it would promise that also across, say, a power loss. It's obviously quite a lot of work to implement your own KTM transaction manager and that's also not the scope of this blag post but I wanted to give it as context anyway. What is the scope of this post you might ask: I wanted to show a minimal example to write a file with KTM. No real reason, just to understand the technology a bit better. And with "understand the technology" I mainly mean how many zero I need to pass to the Windows API functions. A trivial evasion technique for malware leveraging KTM certainly is to just do all operations and housekeeping within a transaction and maybe even never commit it or only commit it very late. It will leave no traces on the file system before that final commit. A quick web search also suggests, there is much more shenanigans you can do, but now to the sad part: The sheer usage of KTM is already a pretty strong signature for something phishy going on. Microsoft deprecated the API and threatened to remove it anytime. So no legitimate tool will start using it nowadays. Without further ado here is a minimal example: ```c #include <stdio.h> #include <windows.h> #include <guiddef.h> #include <ktmw32.h> int main(void) { static const char payload[] = "written inside a KTM transaction\r\n"; static const WCHAR path[] = L"demo.txt"; HANDLE hTrans = CreateTransaction(0, 0, 0, 0, 0, 0, L"MyTransaction"); HANDLE hFile = CreateFileTransactedW(path, GENERIC_WRITE, 0, 0, CREATE_ALWAYS, FILE_ATTRIBUTE_NORMAL, 0, hTrans, 0, 0); DWORD written = 0; WriteFile(hFile, payload, (DWORD) (sizeof payload - 1), &written, 0); CloseHandle(hFile); CommitTransaction(hTrans); CloseHandle(hTrans); return 0; } ``` You can compile it with `gcc -Werror -Wall -pedantic -o write.exe write.c -lktmw32`. In a real application you should of course check all the return codes to make sure nothing crashed on the way, but for the sake of readability, I left all that out. And when you put `RollbackTransaction` there instead of `CommitTransaction` the program will behave as if none of this ever happened. Again, I think this is pretty cool stuff. Sad that it's already over before I even knew it existed.


I recently came across a <a href="https://x.com/SpecterAnalyst/status/2070152064051605517">Tweet by Specter</a>: > It appears there may be a phishing attack targeting Polymarket users, with estimated losses of $2.94M so far. > > The attacker has drained funds from 11+ victim wallets holding PUSD, swapped the stolen assets for ETH, and consolidated the proceeds into the following address: > ``` > 0xe65b1C586757c5510B60F998Eebb14C1eF71E1eD > ``` > Other theft addresses: > ``` > 0xC771A30a7c1aCA828eeEF7B822ac864a64cBaAe2 > 0xC44F2Ca6B30A54d17a62ceF8FAdaF2e8C8632eC4 > 0x10366AdBB5C4101A65C840Da6639546179C5A107 > 0x7BCECe0d8fd92ECCf39Bc35242c6D9aAc0aA75A6 > ``` > Stay Smart That's a lot of money. That's plainly why I found it interesting. So I took the chance to learn a bit about this alien world of ETH smart contracts. I'm not a cryptobro and also not an expert in any of this. I'm writing this post to learn something new and take you along on the journey. <a href="https://blag.nullteilerfrei.de/2026/06/30/crimeenjoyor-hunting-eip-7702-sweeper-contracts-on-ethereum/#more-6189" class="more-link">Would you like to know more?</a>


The goal of this blag post is to get a legacy software used by teachers to run under Linux. The software is used to put grades of pupils into a database. <img fetchpriority="high" decoding="async" src="https://blag.nullteilerfrei.de/wp-content/uploads/2026/03/Schild-Notenmodul-1024x652.png" alt="Screenshot of running application" width="1024" height="652" class="aligncenter size-large" /> <a href="https://blag.nullteilerfrei.de/2026/03/15/helping-move-the-german-educational-system-to-linux/#more-6172" class="more-link">Would you like to know more?</a>


In this blob post, I will describe how I wrote a config extractor for obfuscated JavaScript-based GootLoader component. The hard part of automating the config extraction is the obfuscation: the C2 servers are just plain text in the last stage. All <a href="https://github.com/larsborn/gootloader-babel-deobfuscator">code is on Github</a> if you are just interested in that. # Intro A fellow Cyberian struppigel recently released <a href="https://samplepedia.cc/">Samplepedia</a>, a platform were people can drop SHA256 hashes of files with a description and an analysis goal and some other metadata. My understanding is that the goal is to finally have a place to find interesting malware to analyze, a question I get asked a lot when teaching reverse engineering. Naturally I picked a task myself and decided to do one involve JavaScript, something I don't have a lot of expose to as a reverse engineer (I do have some exposure to it as a forward engineer, but that's a different story). The sample in question is ``1bc77b013c83b5b075c3d3c403da330178477843fc2d8326d90e495a61fbb01f`` and the task is: > Create a static C2 extractor that uses abstract syntax tree transformations with Babel. You can use astexplorer.net as helper tool. I was particularly intrigued because I've recently seen other people be extremely successful leveraging "normal dev tooling" in the JavaScript ecosystem to tackle challenges with JavaScript-based malware. <a href="https://blag.nullteilerfrei.de/2026/01/18/use-babel-to-deobfuscate-javascript-malware/#more-6162" class="more-link">Would you like to know more?</a>


I've been using a Co2 sensor for a long time now to remind myself to regularly open the window and vent the used up air. With my recently newly acquired hobby of home automation, I wanted to get its data into HomeAssistant to _automatically_ switch on the ventilation. This blag post documents my journey with a couple of detours and a bit of hacking. <a href="https://blag.nullteilerfrei.de/2025/01/17/my-quest-for-a-reliable-co2-sensor-in-home-assistant/#more-5989" class="more-link">Do you want to know more?</a>


I've recently fallen into the rabbit hole of using home-automation. The obvious choice is Home Assistant and I've enjoyed the journey a lot so far. This blag post documents my process of automating all those crappy remote controlled gadget that accumulated in the house: that cheap light bulb, those cheap fairy lights, or that cheap LED strip … you might know what I mean. The remotes come in all forms and sizes and are often quite thin, powered by a button cell, and work occasionally. I have a literal box full of them. <a href="https://blag.nullteilerfrei.de/2024/12/22/broadlink-rm4-pro-in-home-assistant-without-the-app/#more-5954" class="more-link">Do you want to know more?</a>


I'm known for my Ghidra stand-up comedy routines. In order to make them enjoyable for everyone in the room, the font size better be not as tiny as it normally is when you do your day-to-day reverse engineering. There are two places to consider: 1. menus, dialogs, etc. 2. specialized components like the assembly listing view and the decompiler # Font Size Override The first can be adjusted by editing the `launch.properties` file, which is normally located in the `support` directory within your Ghidra directory (`C:\Users\born\Programs\ghidra_11.0.1_PUBLIC\support\launch.properties` on my machine). Just add the following somewhere in the file to adjust the font size to 23: ``` VMARGS=-Dfont.size.override=23 ``` # Components In order to adjust the font size in dialogs, I recommend searching the settings dialog ("Edit" -> "Tool Options") for "font". By the time of writing this involved the following entries (I use 12 for small and 18 for presentations): * Byte Viewer * Console * Decompiler -> Display * Graph -> Program Graph Display Options -> Miscellaneous * Listing Display


This blag post covers scanning the Ghidra virtual memory with YARA. <a href="https://blag.nullteilerfrei.de/2023/10/21/ghidra-yara-scanning/#more-5903" class="more-link">Do you want to know more?</a>


This is a quick one: If you are living in Germany but enjoy using a US keyboard layout — for one reason or another — I recommend using the EU keyboard layout instead. <a href="https://blag.nullteilerfrei.de/2023/10/19/advertisement-for-the-eu-keyboard-layout/#more-5901" class="more-link">Do you want to know more?</a>


NSQ is an awesome and extremely simple distributed message queue. You can simply use it by publishing messages — that is arbitrary text, I often use JSON — on a so called "topic". A second process can than attach to a topic to consume messages on a so called "channel". Each messages is forwarded into each channel (at least once). This blag post covers deployment of NSQ in the simplest scenario: one box running everything. <a href="https://blag.nullteilerfrei.de/2023/10/13/install-nsq-on-debian-with-init-d-and-nginx/#more-5889" class="more-link">Do you want to know more?</a>


Assume you did all the proper and mature building steps for your Symfony application. You have a build environment independent of your development environment. You really made sure all the environment variables like `COMPOSER_NO_DEV` and `NODE_ENV` are set correctly without getting the double negatives confused. And you execute `composer`, `yarn`, and whatnot with all the good switches like `--no-dev`, `--frozen-lockfile`, and `--production`. But you still get the following error message: ```text Attempted to load class "WebProfilerBundle" from namespace "Symfony\Bundle\WebProfilerBundle". Did you forget a "use" statement for another namespace? ``` Then you _might_ have forgotten to set `APP_ENV="prod"` on the **production system**. It of course makes sense when you think about it. But it always does, once you figured out. Anyway: I hope this helps a fellow traveler at some point in the future! &#x2764;&#xfe0f;


Just a quick blag for my future self: ``` FOR row IN coll FOR entry in doc.array FILTER entry.field_name != @field_name LIMIT @limit RETURN DISTINCT doc ``` Didn't give me what I wanted. While slapping `DISTINCT` on the `RETURN` fixed the problem of "I'm getting the same document over and over again" it now doesn't return `@limit` many documents but seemingly a random — but lower — number. What's actually happening here is, that the indentation is deceiving: the last two lines should be indented one more. ``` FOR row IN coll FILTER POSITION(doc.array[*].field_name , @field_name) == false LIMIT @limit RETURN doc ``` Is what I _actually_ wanted. Edit (2023-04-18): And _now_ I learned that you should actually do this: ``` FOR row IN coll FILTER @field_name NOT IN doc.array[*].field_name LIMIT @limit RETURN doc ```


The official documentation on ArangoDB usage in Symfony is [literally from 2013](https://www.arangodb.com/2013/03/getting-started-with-arangodb-and-symfony-part1/) and hence targeting a pretty old Symfony version. This blag post will cover adding minimal ArangoDB support by hand. The actual database protocol and interacting will be handled by [ArangoDBClient](https://github.com/arangodb/arangodb-php). <a href="https://blag.nullteilerfrei.de/2023/04/04/use-arangodb-in-symfony-without-an-external-bundle/#more-5858" class="more-link">Show me what you've got!</a>