Skip to content

Instantly share code, notes, and snippets.

View n4sm's full-sized avatar
🏳️
Fuzzing

nasm n4sm

🏳️
Fuzzing
View GitHub Profile
@n4sm
n4sm / macro.py
Last active September 16, 2020 20:48
#!/usr/bin/python3
import turtle
PENUP = "u"
PENDOWN = "d"
FORWARD = "f"
BACKWARD = "b"
LEFT = "l"
RIGHT = "r"
#include <linux/init.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/vmalloc.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
#include <linux/fs.h>
#include <linux/miscdevice.h>
MODULE_LICENSE("GPL");
@n4sm
n4sm / exploit.c
Last active January 11, 2026 01:26
Kernel Exploitation - ROP bypass KPTI / smep
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/mman.h>
#include <assert.h>
#include <sys/ioctl.h>
@n4sm
n4sm / rendu_coins.py
Created May 4, 2020 07:15
Just a program which from a list of coins and a max value returns a list of the coins used
def rendu_S(syst_coins : list, max_val : int) -> list:
coins_used = []
syst_coins_sorted = sorted(syst_coins, reverse=True)
i = 0x0
while max_val > 0x0:
if syst_coins_sorted[i] > max_val:
i += 1
@n4sm
n4sm / open_self_linux_nasm.asm
Last active July 25, 2020 20:16
Just an assembly code which opens itself when it is mapped and executed, in nasm (in order to do for example self mofifying code)
; https://github.com/n4sm/AD_1DA/tree/master/AD_1DA
BITS 64
section .text
global _start
_start:
mov r13, 0x1111111111111111