Skip to content

Instantly share code, notes, and snippets.


Guy Levin guywhataguy

View GitHub Profile
View code.c
#include <stdio.h>
void decode_string(char * s)
/* Function decodes string s */
*s = s[0] ^ 0x31 ^ s[1];
guywhataguy /
Last active Apr 3, 2020
sets the IMAGE_FILE_DLL flag on a PE file
#!/usr/bin/env python3
Simple program to set the IMAGE_FILE_DLL* flag on Windows PE files (.exes, .dlls, etc...),
which will "trick" Windows into thinking the file is a .dll.
import struct
guywhataguy / Vulnerable Code Snippet CVE-2019-17424.c
Last active Oct 20, 2019
Original nipper-ng processPrivilage implementation (CVE-2019-17424)
View Vulnerable Code Snippet CVE-2019-17424.c
/* Original nipper-ng processPrivilage implementation */
/* struct used later in the code */
struct ciscoCommand
int parts;
char part[40][128];
void processPrivilage(
guywhataguy / fibonacci.asm
Created Jul 31, 2019
calculate fibonacci numbers
View fibonacci.asm
; Shortest code for finding fibonacci numbers
; setup
mov rax, 0
mov rdx, 1
; for example find the 8th number in the sequence
mov rcx, 8
; core
guywhataguy / hellow_world.asm
Created Jul 31, 2019
simple hello world in assembly
View hellow_world.asm
; HELLO WORLD in assembly
global _start
section .text
mov rax, 1 ; write(
mov rdi, 1 ; STDOUT_FILENO,
guywhataguy / print_main_arguments.c
Created Jun 11, 2019
Prints all arguments passed to main. Always returns successful exit code
View print_main_arguments.c
Guy Levin (@va_start)
prints all arguments passed to main
always returns successful exit code
#include <stdio.h>
#include <stdlib.h>
View UninitializedVariables.c
#include <stdio.h>
#include <stdlib.h>
typedef char bool;
#define TRUE 1
#define FALSE 0
void func(bool initialize)
int coolvar;
You can’t perform that action at this time.