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
#!/usr/bin/env python | |
from pwn import * | |
if len(sys.argv) == 1: | |
s = process('./chall', env={ 'LD_LIBRARY_PATH': '.' }) | |
else: | |
s = remote('pwn.ctf.zer0pts.com', 9004) | |
elf = ELF('./chall') | |
libc = ELF('./libc.so.6') |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <signal.h> | |
#include <string.h> | |
typedef struct reply_t { | |
int zero; | |
int deebface; | |
int number; | |
char *msg; |
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 struct | |
import subprocess | |
import threading | |
import commands | |
from hexdump import hexdump | |
import time | |
import sys | |
import os |
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
#!/usr/bin/env python3 | |
import string | |
from collections import Counter | |
if __name__ == '__main__': | |
with open('flag.enc', 'rb') as fe: | |
enc = list(fe.read()) | |
ans = [" "] * len(enc) | |
for i in range(20): | |
counter = Counter(enc[i::20]) |
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 hashlib | |
import commands | |
c = "LMIG}RPEDOEEWKJIQIWKJWMNDTSR}TFVUFWYOCBAJBQ" | |
p = "SECCON{" | |
k = "" | |
d = "f528a6ab914c1ecf856a1d93103948fe" | |
def num(c): | |
if c == '{': |