본문 바로가기

Misc14

[Square CTF] 🍎🍌🍍🤔😱😭 Name 🍎🍌🍍 - 🤔😱😭 Points 10 points Type Image Description The androids have been showing this puzzle to our humans as a "brainteaser" and it's driven at least one cryptographer to despair. If we can find the solution and get it to our humans, maybe they'll realize that we care for their welfare and the robots don't. Solve this formula for the smallest positive integer values of 🍎, 🍌, and 🍍. Then to.. 2021. 8. 13.
[DIMI CTF] keychecker 문제에서 주어진 파일을 IDA로 분석하면 main 함수는 아래와 같습니다. 프로그램에는 2가지 기능이 있습니다. encode와 decode 기능입니다. __int64 __fastcall encode(const char *a1) { int j; // [rsp+Ch] [rbp-24h] int i; // [rsp+10h] [rbp-20h] int v4; // [rsp+14h] [rbp-1Ch] const char *v5; // [rsp+18h] [rbp-18h] int v6; // [rsp+24h] [rbp-Ch] v6 = strlen(a1); v5 = (const char *)malloc(9 * v6); for ( i = 0; i 2021. 8. 5.
[DIMI CTF] dimi-contract def payBack(): global dimicoin global debt if debt == 0: send("You no have debt!") return send("How much you pay back?") send(":> ", end='') try: payback = int(read()) except ValueError: send("Plz input int") return if payback > debt or payback > dimicoin: send("Too much : ", end='') try: loan = int(read()) except ValueError: send("Plz input int") return if loan > 10: send("Too much : 2021. 8. 5.
[DIMI CTF] CTFind 문제에서 주어진 CTFind.jar 파일은 Java Archive 파일로 압축 해제할 수 있습니다. 압축을 해제하면 여러 클래스 파일을 볼 수 있는데 아래 그림과 같이 글씨가 깨져서 보입니다. 따라서 Jar 파일을 분석하는 툴을 사용하겠습니다. jd-gui 라는 툴을 사용하겠습니다. 파일을 열어주면 아래 그림과 같이 여러가지 클래스 파일을 글씨가 깨지지 않은 채로 열람할 수 있습니다. Search 에서 플래그의 첫부분인 DIMI를 검색하면 플래그가 바로 출력됩니다. jar 파일을 분석할 수만 있다면 쉽게 풀리는 문제였습니다. 2021. 8. 5.
[Dreamhack] broken-png 문제에서 주어진 파일을 HxD64 툴을 이용해 실행한다. 처음 8바이트 89 50 4E 47 0D 0A 1A 0A는 PNG를 의미하는 시그니처이다. 다음으로 IHDR 청크는 PNG 시그니처 바로 뒤에 위치하면 그림과 같이 0x10부터 0x1C까지 13바이트를 차지한다. 아래와 같이 첫 8바이트는 이미지 폭과 높이 정보를 저장한다. 현재 위 그림에는 폭: 0x00000200, 높이: 0x00000100 이므로 10진수로 나타내면 폭: 512, 높이: 256이다. 높이를 512로 바꿔주고 이미지 파일을 실행하겠다. { Length : 00 00 00 0D (13 byte), Chunk Type : IHDR, Chunk Data ( 13 byte ), { Width (4 byte), Height (4 byte.. 2021. 3. 30.