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 <string.h> | |
#include <unistd.h> | |
char cmpdata[0x28] = "\x62\x31\xaa\x85\xbd\xbf\x9f\xf3\x8a\x02\x0c\x75\xac\x23\xab\xe4\x82\xc5\x25\x7a\xef\xbd\xc9\x61\x00\x54\x68\x61"; | |
/* 0x400da6 */ | |
char key[0x28]; /* 0x6020e0 */ | |
char output[0x28]; /* 0x602120 */ | |
unsigned char state[0x100]; /* 0x602160 */ |
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
# coding: utf-8 | |
from z3 import * | |
s = Solver() | |
LENGTH = 6 | |
# 6文字のテキスト | |
text = [BitVec('text[{0}]'.format(i), 32) for i in range(LENGTH)] |
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
# coding: utf-8 | |
import math | |
# 出力されるbrainf**kコード | |
code = "" | |
# brainf**kから出力したい文字 | |
text = "Furutsuki is a Pro!" | |
# 1文字ずつ | |
for c in 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
# coding: utf-8 | |
from pwn import * | |
# | |
# crypto200.pyからそのまま引用 | |
# | |
from math import sin | |
from urlparse import parse_qs | |
from base64 import b64encode | |
from base64 import b64decode |
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
/* for x86 linux */ | |
#include <stdio.h> | |
int main(int argc, char** argv) | |
{ | |
char c = argv[0][2]; | |
if (c == '1') { | |
puts("All Eindbazen are wearing wooden shoes"); | |
} else if (c == '2') { |
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 pwn import * | |
class tp: | |
# | |
# Constructor | |
# | |
def __init__(self, host, port): | |
# Connect to server | |
self.sock = remote(host, port) | |
# List of commands |
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
# calc.binを出力するコマンド | |
calc.bin: y.tab.c lex.yy.c # 下のコマンドに必要なファイル | |
cc -o calc.bin y.tab.c lex.yy.c | |
# y.tab.cを出力するコマンド | |
y.tab.c: calc.y # 下のコマンドに必要なファイル | |
yacc -dv calc.y | |
# lex.yy.cを出力するコマンド | |
lex.yy.c: calc.l # 下のコマンドに必要なファイル |
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 "y.tab.h" | |
int yywrap(void) { return 1; } | |
%} | |
%% | |
"+" return OPERATOR_ADD; | |
"-" return OPERATOR_SUB; | |
"*" return OPERATOR_MUL; |
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
# Simple Voice Recorder for TOELF Speaking Test | |
# Usage: | |
# python record.py [output.wav] | |
# Requirement: | |
# Python 2, arecord (often pre-installed on linux) | |
# What does this program do? | |
# First, this program will wait 15 seconds, which is the same length given in the TEFL test for preparing your answer. | |
# Second, arecord will begin to record your voice for 45 seconds in which you need to answer the question. | |
# After that, the recorded voice will be saved as a wav file. | |
# Optionally, you can listen to the recorded voice after your answer. |
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/python | |
import hashlib | |
import base64 | |
import re | |
from secret import FLAG, SALT | |
def construct(data): | |
ret = {} | |
regs = data.split('|') | |
for reg in regs: |
OlderNewer