Skip to content

Instantly share code, notes, and snippets.

View un4ckn0wl3z's full-sized avatar
🖕
An idiot admires complexity; a genius admires simplicity

Anuwat Khongchuai un4ckn0wl3z

🖕
An idiot admires complexity; a genius admires simplicity
View GitHub Profile
View example k6 script
// import http from "k6/http";
// export const options = {
// iterations: 1000,
// };
// export default function () {
// const response = http.get("http://localhost:3000/health");
// }
@un4ckn0wl3z
un4ckn0wl3z / clinic doctor command
Created December 18, 2023 09:07
clinic_doctor.sh
View clinic doctor command
set ZONE=local&&clinic doctor -- node dist/main.js
View DriverUnloadAnatomy.cpp
#pragma warning(disable: 4996)
#include <ntddk.h>
void DriverCleanup(PDRIVER_OBJECT DriverObject);
PVOID someAllocation;
extern "C"
NTSTATUS
View DriverAnatomy.cpp
#include <ntddk.h>
extern "C"
NTSTATUS
DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath)
{
UNREFERENCED_PARAMETER(DriverObject);
View FirstDriver.cpp
#include <ntddk.h>
NTSTATUS
DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath)
{
return STATUS_SUCCESS;
}
View FirstDriver.cpp
NTSTATUS DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath)
@un4ckn0wl3z
un4ckn0wl3z / dark-style.css
Created November 13, 2023 05:01 — forked from Advik-B/dark-style.css
Modern Qt StyleSheet for dark theme lovers
View dark-style.css
/*-----QWidget-----*/
QWidget
{
background-color: #121212;
color: #ffffff;
border-color: #051a39;
}
View Create git orphan branch
Deleting the .git folder may cause problems in your git repository. If you want to delete all your commit history but keep the code in its current state, it is very safe to do it as in the following:
Checkout
git checkout --orphan latest_branch
Add all the files
git add -A
View frida-loader.py
import frida
import sys
import codecs
def on_message(message, data):
if message['type'] == 'send':
print(message['payload'])
elif message['type'] == 'error':
print(message['stack'])
else:
print(message)