This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdbool.h> | |
#include <string.h> | |
#include <unistd.h> | |
enum arch | |
{ | |
ARCH_NONE, | |
ARCH_X86 = 4 * 2, |