Skip to content

Instantly share code, notes, and snippets.

@CERT-W
CERT-W / file_reader.c
Created July 1, 2019 13:18
YesWeHack - LeHack challenge 2019
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/sendfile.h>
#include <sys/stat.h>
#include <fcntl.h>
void die(const char *fmt, ...)
@CERT-W
CERT-W / main.py
Created July 1, 2019 11:42
YesWeHack - LeHack challenge 2019
#!/usr/bin/env python
import pycurl
import os
import logging
from flask import (
Flask,
request,
render_template,
render_template_string,
abort,
@CERT-W
CERT-W / Search-EncryptedMails.ps1
Last active November 2, 2017 11:38
PowerShell script to search for plaintext encrypted mails (CVE-2017-11776) - must be run while Outlook is running
<# DOES NOT WORK IN CONSTRAINED LANGUAGE MODE #>
Function Find-Recurse {
Param(
[parameter(Mandatory=$true)]
$Folder,
$Level=0
)
$Indent = "`t"*$Level