Skip to content

Instantly share code, notes, and snippets.

View joydo's full-sized avatar
💭
I may be sleeping.

Joydo joydo

💭
I may be sleeping.
View GitHub Profile
@joydo
joydo / poc.c
Created September 16, 2021 11:46 — forked from infernalheaven/poc.c
macOS 11.5.2/iOS 14.7.1 Kernel Race Condition poc
/*
Written By Pan ZhenPeng(@peterpan980927) of Alibaba Security Pandora Lab
use it on macOS: cc poc.c -o poc while True; do ./poc ; done
*/
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
@joydo
joydo / main.cpp
Created August 11, 2021 01:23 — forked from hasherezade/main.cpp
A native way to enumerate processes (alternative to: EnumProcesses, CreateToolhelp32Snapshot - Process32First - Process32Next)
#include <windows.h>
#include <iostream>
#include "ntddk.h"
bool enum_processes()
{
ULONG retLen = 0;
// check length:
@joydo
joydo / javaRCE.md
Last active July 1, 2021 07:34
Java RCE Analysis

Java OGNL expression language

Java common RCE used functions/class

  • java.lang.Runtime
  • java.lang.ProcessBuilder