Skip to content

Instantly share code, notes, and snippets.

View RaJiska's full-sized avatar

Doriann Corlouër RaJiska

View GitHub Profile
@RaJiska
RaJiska / thehiveprivesc.sh
Created June 19, 2019 09:25
Exploit for CVE-2017-18376
#! /bin/bash
# Author:
# Doriann "Ra'Jiska" Corlouër
# Description:
# Exploit POC for CVE-2017-18376 - https://nvd.nist.gov/vuln/detail/CVE-2017-18376
# This POC allow a TheHive user with minimal rights (read, read / write) to gain admin rights (privilege escalation)
# Setup:
# Edit the following variables:
# - THEHIVE_ROOT_URL => The URL of your TheHive instance
@RaJiska
RaJiska / hexltob.c
Last active July 18, 2018 18:33
Convert an hex-string little-endian to big-endian
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
enum arch
{
ARCH_NONE,
ARCH_X86 = 4 * 2,