From 31235ffbfde4d583a8e4f18aed71d9876fd16c12 Mon Sep 17 00:00:00 2001 From: Scott Wallace Date: Fri, 4 Jan 2019 14:30:52 +0000 Subject: [PATCH] Challenge 1 tidy up --- challenges/1/hack.py | 76 ++++++++++++++++++++++++-------------------- 1 file changed, 42 insertions(+), 34 deletions(-) diff --git a/challenges/1/hack.py b/challenges/1/hack.py index 0e756f1..c4c5274 100644 --- a/challenges/1/hack.py +++ b/challenges/1/hack.py @@ -1,49 +1,57 @@ +""" +pwnable.tw challenge 1 +""" import socket import binascii import struct -def opcodify(hexstr): - return struct.pack('