본문 바로가기

CTF

(37)
[Rev] README Immunity Debugger로 열었더니 아래와 같은 화면이 떴다. Ollydbg x64로 열어보려는데 잘 안되어서... IDA Pro 7.6으로 열어보았다. main IDA View-A F5 눌러서 C언어로 보기 hspace{hey_hey_hey_hey_hey_hey_good_job_lets_go_:D}
[Rev] Simple VM def lets_go(flag, code): registers = [0] * 0x100 flag = [ord(x) for x in list(flag)] pc = 0 while True: if pc == len(code): break cur = code[pc].split('.') pc += 1 if cur[0] == 'A': dest = int(cur[1]) src = int(cur[2]) registers[dest] += registers[src] elif cur[0] == 'B': dest = int(cur[1]) src = int(cur[2]) registers[dest] ^= registers[src] elif cur[0] == 'C': dest = int(cur[1]) src = int(cur[2..
[Rev] Random Defense import random FLAG = b'????' # You must find it! if __name__ == '__main__': random.seed(5952) random_table = bytearray(random.randrange(1, 255) for _ in range(32)) xor_bytes = bytearray(random_table[i] ^ FLAG[i] for i in range(32)) #랜덤한 테이블과 xor random.shuffle(xor_bytes) #xor된 배열을 shuffle assert xor_bytes == b'\x0ea3\x1dq\x98\n\xab\xf9\xec\x95\xd4#\x8d+-,\xa7\x9d\x85\xd1\xf1\xa0\xbb\x89z\xc9\x83..
[Misc] Click Count : 0 부터 시작해서 클릭! 버튼을 누르면 Count가 1씩 증가한다. 클릭! 버튼은 이리저리 옮겨다닌다. 옮겨다니는 위치에 규칙이 있는 것 같지는 않고 그냥 랜덤한 좌표값으로 보인다. 창을 껐다가 켜도 Count가 리셋되지 않는다. 우클릭 후 페이지 소스 보기 혹은 페이지 원본 보기를 누르면, 근데 왜 Count가 같은데 top 과 left px가 달라졌지? 시간 지연을 굳이 넣어준 이유는 컴퓨터가 과열되고 반복이 너무 빠르면 꼬여서 자꾸 이상한 창이 뜨기 때문이다.
[Misc] Wild Goose Chase I once saw a huge military transport plane with FOUR propellors taking off over Geisel library! It was during one of my midnight walks last month on the 29th. I wonder where it was flying to? Find which US city it landed in with the format sdctf{City_State} Updated Example: If the destination was NYC, the format would be sdctf{NewYork_NewYork}
[Rev] Open Sesame
[Misc] Fork bomb protector We built a playground for people to try out Linux. We are tired of customer complaints about malicious fork bombs rummaging the server, hogging system resources, and bringing everything down to a crawl, so we built our own proprietary fork-bomb protector. As an "unintended" consequence of that, people cannot run commands normally. Our genius head of the engineering team suggests this to be a sec..
[Rev] chikara