Skip to content

Instantly share code, notes, and snippets.

View Eadom's full-sized avatar

Eadom Liu Eadom

View GitHub Profile
@Eadom
Eadom / 0ctf2018_zerofs_exp.c
Created April 3, 2018 13:22
Exploit of zerofs at 0ctf2018
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <assert.h>
#include <sys/mman.h>
#define UID 1000
@Eadom
Eadom / open-vm-tools-vmware-ubuntu-sharing.md
Created June 11, 2018 11:20 — forked from darrenpmeyer/open-vm-tools-vmware-ubuntu-sharing.md
open-vm-tools and VMWare Shared Folders for Ubuntu guests

(NB: adapted from this Ask Ubuntu thread -- tested to work with Ubuntu 16 LTS branches and Ubuntu 17.10)

Unlike using VMWare Tools to enable Linux guest capabilities, the open-vm-tools package doesn't auto-mount shared VMWare folders. This can be frustrating in various ways, but there's an easy fix.

TL;DR

Install open-vm-tools and run:

sudo mount -t fuse.vmhgfs-fuse .host:/ /mnt/hgfs -o allow_other
@Eadom
Eadom / vm_escape_0ctf2017_finals.c
Created June 15, 2017 15:06
Exploitation of vm_escape in 0CTF2017 Finals
// 0CTF 2017 finals
// vm_escape
// @Eadom
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/ioport.h>
#include <linux/slab.h>
#include <linux/string.h>
#include <linux/delay.h>