OpenEndendRSA BabyRC4와 같이 코드로 풀면 될 것 같다. from Crypto.Util.number import * from gmpy2 import iroot # this helps with super accurate square root calculations! flag = b'????????????????????????' m = bytes_to_long(flag) e = 0x10001 pp = bytes_to_long(b'????????????????') s = 1 assert isPrime(pp) #소수 판별 while not isPrime(s): p = getPrime(512) #키 생성 s = p**2 + pp**2 assert iroot(s-pp**2,2) == (p, True..
NoCode NoCode는 안전하고 안정적인 애플리케이션을 작성하는 가장 좋은 방법입니다. 아무것도 쓰지 마십시오. 어디에도 배치하지 마십시오. 이것은 단지 예제 응용 프로그램일 뿐이지만 원하는 작업을 수행한다고 상상해 보십시오. 새로운 기능을 추가하는 것도 쉽습니다. 라고 한다. 문제 파일도 뭐도 없고...문제 이름도 No Code이니 문제 내에 힌트가 있을 것이다. 문제를 긁어보았더니 빈 네모 칸에 글자(?)가 있는 것 같다. 하지만 메모장에 붙여넣어보면 아무것도 보이지 않는다. 저번에 SD CTF에서 사용했던 CyberChef 사이트에 해당 문자열(??)을 붙여넣어보았다. 아래 사이트 활용 더보기 https://gchq.github.io/CyberChef/ CyberChef gchq.github.i..
BabyRC4 문제 파일을 다운로드하면 chall.py 파이썬 파일 하나가 보인다. from Crypto.Cipher import ARC4 from os import urandom key = urandom(16) #urandom은 원하는 길이(byte단위)의 unsigned 수치값을 만들어줌 flag = b'SEE{?????????????????????????????????}'[::-1] #b'는 바이트 문자열 def enc(ptxt): cipher = ARC4.new(key) return cipher.encrypt(ptxt) print(f"c0 = bytes.fromhex('{enc(flag).hex()}')") print(f"c1 = bytes.fromhex('{enc(b'a'*36).hex()}')..
워게임 풀이 http://reversing.kr Reversing.Kr This site tests your ability to Cracking & Reverse Code Engineering. Now Challenge a problem for each environment. (Windows, Linux, .Net, Flash, Java, Python, Mobile..) Admin E-Mail: gogil@reversing.kr reversing.kr 11. x64 Lotto 문제 파일을 실행했더니 위와 같았다. 로또 번호를 맞추는 것?같다.. 6개 숫자를 입력하지만 이 숫자가 틀리다면 계~~~~~~속 반복된다. 숫자 6개를 입력받고 cls 한 뒤, 0.5초(0x1F4u) 쉰다. v19~v25까지 sra..
워게임 풀이http://reversing.krReversing.KrThis site tests your ability to Cracking & Reverse Code Engineering. Now Challenge a problem for each environment. (Windows, Linux, .Net, Flash, Java, Python, Mobile..) Admin E-Mail: gogil@reversing.krreversing.kr10. Easy Unpack PEiD에 문제 파일을 넣고 Plugins 기능을 이용해서 OEP를 쉽게 찾을 수 있다. 00401150
워게임 풀이http://reversing.krReversing.KrThis site tests your ability to Cracking & Reverse Code Engineering. Now Challenge a problem for each environment. (Windows, Linux, .Net, Flash, Java, Python, Mobile..) Admin E-Mail: gogil@reversing.krreversing.kr 9. AutoHotkey1문제 파일 압축을 해제 해보니 readme.txt 파일이 있었다.Decrypt와 EXE 키는 md5 값이며, 해당 md5을 복호화하면 인증키를 획득할 수 있다는 내용이다. AutoHotKey?AutoHotKey는 윈도우 응용 프로그램이나 ..
워게임 풀이http://reversing.krReversing.KrThis site tests your ability to Cracking & Reverse Code Engineering. Now Challenge a problem for each environment. (Windows, Linux, .Net, Flash, Java, Python, Mobile..) Admin E-Mail: gogil@reversing.krreversing.kr8. Direct3D FPS 문제 파일을 실행해보니 FPS 게임이 실행된다. 어어어어엄청 천천히 움직인다. 길을 따라갔더니 한승연과 움직이는 고구마들이 나온다. 고구마를 총으로 쏴도 아무런 일이 발생하지 않는다... 고구마에 닿으면 HP가 닳고, HP가 0이 되고 ..