일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- 파이썬
- ShaktiCTF
- 라이트업
- 해킹캠프
- web
- probgame
- 드림핵
- 리버스 엔지니어링
- ctf
- 워 게임
- 코드엔진
- write up
- reversing
- vsCode
- 강의
- Basic
- reversing.kr
- 시탭
- 라이트 업
- PYTHON
- c언어
- 라업
- 풀이
- 2021
- 뭉뭉
- 변수
- hackingcamp
- 리버싱
- write-up
- 히공
목록write up/Hero CTF 2021 (4)
히공
문제 output.txt의 내용 with open("output.txt", 'r') as f: read = f.readlines() flag = '' j = 0 qu = '' for i in read: if j==8: flag+=chr(int(qu,2)) qu = '' j=0 if i=='PONG\n': qu += '0' else: qu += '1' j+=1 print(flag+'}') 2진수를 의미하는 것 같아서 코드를 작성했다. 플래그 : Hero{p1n6_p0n6_15_fun}
문제 #!/usr/bin/env python3 from os import urandom from random import randint from pwn import xor input_img = open("flag.png", "rb").read() outpout_img = open("flag.png.enc", "wb") key = urandom(8) + bytes([randint(0, 9)]) outpout_img.write(xor(input_img, key)) xor.py의 내용이다. from pwn import xor with open('flag.png.enc', 'rb') as f: read = f.read() png_signature = bytes.fromhex("89 50 4E 47 0D 0A 1..
문제 .text .globl value .data .align 4 .type value, @object .size value, 4 value: .long 24564753 .globl isGood .align 4 .type isGood, @object .size isGood, 4 isGood: .long 12345 .section .rodata .align 8 .LC0: .string "Hey ! Have you got a password for me ? " .text .globl getInput .type getInput, @function getInput: .LFB6: .cfi_startproc endbr64 pushq %rbp # .cfi_def_cfa_offset 16 .cfi_offset 6, -..
문제 package fr.heroctf.jni; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.EditText; import android.widget.Toast; import androidx.appcompat.app.AppCompatActivity; public class MainActivity extends AppCompatActivity { private Button checkButton; private EditText flagEditText; public native boolean checkFlag(String str); static { System.loadL..