News for hackers. Stuff that matters.
Re:C Isn't a Programming Language Anymore (2022) by deng on Friday August 02, 2024 @07:10AM (#41137831)
Windows also allows you to issue syscalls directly (meaning without using ntdll), but that'll usually get your process killed&quarantined by pretty much any anti-malware suite, as that's highly suspicious behavior.

EDIT: You edited your post mentioning this, but I'll leave it here. :-)

Re:C Isn't a Programming Language Anymore (2022) by masklinn on Friday August 02, 2024 @07:14AM (#41137858)
> Windows also allows you to issue syscalls directly

Technically most systems do, OpenBSD is the only one I know of actively trying to prevent that.

The line is rather whether there is support and maintenance for doing that aka how likely is it that your program will break on updates.

For Windows, it’s virtually guaranteed because IIRC the syscall numbers are just the index of the syscall name in a big sorted table, so if any syscall gets added or removed the table gets offset and you get the wrong syscall.

Re:C Isn't a Programming Language Anymore (2022) by deng on Friday August 02, 2024 @07:17AM (#41137874)
We fully agree: it's technically possible, but it's not practical and really only done by malware to skip the userland hooks set up by antivirus software.