Skip to content

Instantly share code, notes, and snippets.

@JohnHammond
JohnHammond / source.py
Created September 2, 2018 01:18
Codefest CTF 2018 "Ghost Protocol" Source Code
##########################################################
##########################################################
####### ###### # #####
# # # # #
# ### # #####
# # # # #
##### # # #####
##########################################################
##########################################################
@JohnHammond
JohnHammond / get_flag.py
Created September 2, 2018 01:14
Codefest CTF 2018 "Access Denied?" get_flag Script
#!/usr/bin/env python
import random
from pwn import *
context.log_level = 'critical'
# nc 34.216.132.109 9094
host = '34.216.132.109'
@JohnHammond
JohnHammond / source.py
Created September 2, 2018 01:06
Codefest CTF 2018 "Access Denied?" Challenge Source
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import random
import user_functions
user = raw_input("Enter your name: ")
if not user_functions.exists(user):
# generate a code