Skip to content

Instantly share code, notes, and snippets.

View rnhmjoj's full-sized avatar

Michele Guerini Rocco rnhmjoj

View GitHub Profile
anonymous
anonymous / gb-mbe-bug-TAKE2.md
Created March 22, 2016 16:25
Gigabyte Z170X-* (skylake) Motherboards - duplicate boot entries UEFI BIOS bug, TAKE 2

Gigabyte Z170X-* (skylake) Motherboards - duplicate boot entries UEFI BIOS bug, TAKE 2

Hello. This is a bug report for certain Gigabyte Skylake motherboard customer(s). It tries to explain simply about this duplicate boot entries problem.

Symptom
  • Every time a new boot (or reboot), the boot menu list changes, and extra 'UEFI: ' boot entry is added
  • The new entrie(s) are duplicated of other entries. And more than the 'normal'. Eg. 3x same entry (or higher).
@takeshixx
takeshixx / hb-test.py
Last active July 4, 2024 03:29
OpenSSL heartbeat PoC with STARTTLS support.
#!/usr/bin/env python2
"""
Author: takeshix <takeshix@adversec.com>
PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org).
Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP.
"""
import sys,struct,socket
from argparse import ArgumentParser
@Snigelson
Snigelson / bfc
Last active January 1, 2016 10:49
Brainf*ck compiler with example file
#!/bin/sh
# Convert brainf*ck to c and compile. Works astonishingly well.
# Usage: $0 < file.bf
sed '1imain(){char*m=calloc(30000,1);
s|[^][+><.,-]||g
s|]|}|g
s|\[|while(*m){|g
s|+|(*m)++;|g
@pudquick
pudquick / pipista.py
Created November 20, 2012 07:23
pipista - pip module (for installing other modules) for Pythonista
import os, os.path, sys, urllib2, requests
class PyPiError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
def _chunk_report(bytes_so_far, chunk_size, total_size):
if (total_size != None):