Skip to content

Instantly share code, notes, and snippets.

View n4sm's full-sized avatar
🏳️
Fuzzing

nasm n4sm

🏳️
Fuzzing
View GitHub Profile
@n4sm
n4sm / exploit.c
Last active August 19, 2021 12:24
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