Skip to content

Instantly share code, notes, and snippets.

View hugsy's full-sized avatar
:octocat:
‎just hacking on

crazy hugsy hugsy

:octocat:
‎just hacking on
View GitHub Profile
@hugsy
hugsy / win81-token-stealing-shellcode.asm
Last active March 5, 2021 16:31
Token stealing shellcode for Windows 8.1 x64
;;
;; Token stealing shellcode for Windows 8.1 x64
;;
;; Save the current context on the stack
push rax
push rbx
push rcx
;; Get the current process
abandoned
able
absolute
adorable
adventurous
academic
acceptable
acclaimed
accomplished
accurate
@hugsy
hugsy / enlightenment
Created April 30, 2017 23:25
enlightenment - defcon 2017
#!/usr/bin/python
#
# enligthenment - defcon 2017
#
# @_hugsy_
#
# "One script to bind them all"
#
# The flag is: you got no fear of the underdog Keekviv3
#
@hugsy
hugsy / occult.py
Created April 30, 2017 19:40
occult - defcon 2017
#!/usr/bin/python2
#
# occult - defcon 2017
#
# @_hugsy_
#
# The flag is: xenoanthropology UtFafEigBu
#
import string, threading, sys, os, base64, telnetlib, time
@hugsy
hugsy / preload.c
Created April 30, 2017 19:39
occult - defcon 2017
/**
* occult - defcon 2017
*
* functions hijacking script: some functions were showing broken on my patch,
* so I hot-patched them to make it work :)
*
* gcc -shared -fPIC preload.c -o preload.so
* export LD_PRELOAD=preload.so
*/
#!/usr/bin/python2
#
# occult - defcon 2017
#
# @_hugsy_
#
import string, threading, sys, os, base64, telnetlib, time
from subprocess import *
@hugsy
hugsy / witchcraft.py
Created April 30, 2017 15:48
witchcraft - defcon 2017
#!/usr/bin/python2
#
# witchcraft - defcon 2017
#
# @_hugsy_
#
# PS: took 20min on a 8-core
#
# The flag is: bustin makes me feel good scengoybEm
#
@hugsy
hugsy / alchemy.py
Created April 30, 2017 15:37
alchemy - defcon 2017
#!/usr/bin/python2
#
# alchemy - defcon 2017
#
# @_hugsy_
#
#
# The flag is: The flag is: end of the world sun clyigujheo
#
@hugsy
hugsy / magic.py
Created April 30, 2017 00:43
magic - defcon 2017
#!/usr/bin/python2
#
# magic - defcon 2017
#
# @_hugsy_
#
# The flag is: a color map of the sun sokemsUbif
#
import os, base64, telnetlib
@hugsy
hugsy / leo.py
Last active May 10, 2017 00:49
leo - defcon 2017
#!/usr/bin/env python2
#
# leo - defcon 2017
#
# Leo es Pequeno
# You boys like Mexico?!
# leo_33e299c29ed3f0113f3955a4c6b08500.quals.shallweplayaga.me 61111
#
# The flag is: 2c641a4386ec64280ca77d1beae6d372
#