This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import struct | |
import sys | |
import subprocess | |
import socket | |
import telnetlib | |
import ctypes | |
""" | |
Cookbook - 6 - 0 solves : pwn: a top chef wrote this cookbook for me but i think he has an extra secret recipe! | |
https://s3.amazonaws.com/bostonkeyparty/2016/58056c425dc617b65f94a8b558a4699fedf4a9fb.tgz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import telnetlib | |
import struct | |
import hashlib | |
import random | |
""" | |
root $ python web_of_science2.py | |
[*] connected to webofscience2.2016.volgactf.ru:45679 | |
[+] recv: 'Tell me your name first\n' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import r2pipe | |
r2 = r2pipe.open("./zwiebel2") | |
r2.cmd("e dbg.profile=zwiebel.rr2") | |
r2.cmd("doo") # reopen for debugging | |
r2.cmd("db 0x400875") # set breakpoint at `call r14` | |
r2.cmd("dc") # continue until breakpoint is hit | |
def step(): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
import telnetlib | |
import struct | |
""" | |
developed on stream: https://www.youtube.com/watch?v=zWgS6fTw4Ts | |
""" | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect(('127.0.0.1', 2323)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import re | |
import operator | |
def get_scoreboard(): | |
r = requests.get('http://rhme.riscure.com/scores') | |
return re.findall(r'<a href="user\?id=([0-9]+)">', r.text) | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`timescale 1ns / 1ps | |
////////////////////////////////////////////////////////////////////////////////// | |
// Company: | |
// Engineer: | |
// | |
// Create Date: 01:48:35 02/27/2017 | |
// Design Name: | |
// Module Name: main | |
// Project Name: | |
// Target Devices: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
#include <signal.h> | |
#include <pty.h> | |
#include <fcntl.h> | |
#include <time.h> | |
#include <sys/wait.h> | |
// gcc cook3.c -lutil -o cook3 -Wall |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import string | |
import random | |
import urllib | |
import time | |
import base64 | |
from decimal import Decimal | |
# Blind GQL injection and optimised binary search - A7 ~ Gee cue elle (misc) Google CTF 2017 | |
# https://www.youtube.com/watch?v=za_9hrq-ZuA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from z3 import * | |
import struct | |
# calculate e,f,d for a given input password | |
def calc(m): | |
e = 0 | |
f = 0 | |
d = 0 | |
for i in xrange(0, len(m)): | |
c = ord(m[i]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sage.all | |
import hashlib | |
# part1 - https://www.youtube.com/watch?v=Vgdhlh6evjI | |
# part2 - https://www.youtube.com/watch?v=EOlddNofKxo | |
# prepare a table of bits | |
def bits_of(x): | |
bits = [] | |
for c in "{:08b}".format(x): |
OlderNewer