News for hackers. Stuff that matters.
Re:Windows x64 handcrafted token stealing kernel-mode shellcode by nly on Tuesday July 05, 2022 @04:45AM (#31985868)
In case anyone doesn't get it, this isn't an exploit in itself. It's a function you can use to gain system (root) privileges once you've found a bug in the Windows kernel that that gives you remote code execution.
Re:Windows x64 handcrafted token stealing kernel-mode shellcode by Neil44 on Tuesday July 05, 2022 @05:07AM (#31986019)
Do you mean privilage escalation or have I misunderstood? i.e. you could for example exploit one of the recent Exchange vulnerabilities then use this to get SYSTEM and own the box.
Re:Windows x64 handcrafted token stealing kernel-mode shellcode by readams on Tuesday July 05, 2022 @09:53AM (#31988205)
No, this is the code that you inject using your vulnerability. The vulnerability is the privilege escalation part and this is what you do with your privilege. Exploiters call this shellcode since a common way this manifests is that the code will launch a root shell.

Shellcode can be hard to write since it might be a small amount of code you can execute, you might not be able to jump precisely to your code, it might have to use a limited range of values (such as correctly parsing as something else) or other challenges.

Re:Windows x64 handcrafted token stealing kernel-mode shellcode by 3np on Tuesday July 05, 2022 @05:25AM (#31986124)
The first line in the README:

> Windows x64 kernel-mode handcrafted shellcode to replace primary access token of executing process with SYSTEM process token for Elevation of Privilege(EoP).

So yes, privilege escalation.

Re:Windows x64 handcrafted token stealing kernel-mode shellcode by Perolan2 on Tuesday July 05, 2022 @11:28AM (#31989360)
No, not just privilege escalation. This is shellcode that needs to be inserted into a vulnerable driver, as it has to run from kernel space. Being privileged isn’t enough to run this function.