Skip to content

Instantly share code, notes, and snippets.

View sh9351's full-sized avatar

sh9351 sh9351

View GitHub Profile
@sh9351
sh9351 / README.md
Created May 15, 2024 14:47
RtlSetProcessIsCritical, now on Node.js!

RtlSetProcessIsCritical.js

This script uses the Win32 FFI to set a Node.js as critical to the Windows system, meaning killing it becomes difficult, and eventually doing so will lead to a BSOD. After a lot of futile attempts using ChatGPT, I just decided to do it myself, although I did combine some of the AI-written code.

Requirements

  • npm i ffi-napi
  • Windows (would probably work on older versions way back to Windows 7, but not guaranteed)

Execution

Just run the script with Node.js, and enjoy!
Previous methods I tried to kill the process:

const todayYear = new Date().getFullYear()
mainLoop: for (let year = todayYear; year > todayYear - 100; year--) {
for (let month = 1; month <= 12; month++) {
for (let day = 1; day <= 31; day++) {
const passphrase = `${year.toString().slice(-2)}${month.toString().padStart(2, '0')}${day.toString().padStart(2, '0')}`
try {
const isDecryptionSuccessful = decryptAndReplaceHtml(passphrase)
if (!isDecryptionSuccessful) throw new Error('Decryption failed')
console.log(`SUCC ${passphrase}`)
break mainLoop
@sh9351
sh9351 / README.md
Created December 21, 2023 09:45
Free Discord Nitro (powered by Opera GX promotion)

Discord Nitro Generator

Opera GX has been doing an interesting campaign lately... so let's abuse it!

Instructions

  1. npm i axios
  2. node index.js
  3. Click the link to redeem your free Nitro. You will need to add a valid payment method, and verify it with a $1 transaction. (It will be instantly canceled.)

But because this is all just too complicated, I'ma just make it an executable.

@sh9351
sh9351 / NMS2.c
Created December 10, 2023 09:50
DANTE TCA 8000 NMS2.exe 디컴파일러 결과 (Ghidra)
This file has been truncated, but you can view the full file.
#include "NMS2.exe.h"
void Ordinal_1539(void)
{
// WARNING: Could not recover jumptable at 0x006a4e30. Too many branches
// WARNING: Treating indirect jump as call
Ordinal_1539();