[Dreamhack] basic_exploitation_000(2)

2022. 10. 5. 11:09system(pwnable)시스템(포너블)/Dreamhack wargame

https://oulth.tistory.com/77

 

python pwntool exploit script 작성팁

import from pwn import * 접속 원격 접속 nc process=remote ("pwnable.kr",9000) 원격 접속 ssh shell=ssh("note","pwnable.kr",port=2222,password="guest") p=shell.run('/bin/sh') p.sendline("nc 0 9019")..

oulth.tistory.com

 

 

https://angelikaros.github.io/pwntools/

 

pwndbg 사용법 정리

pwntools 한줄 설치 ``` python3 -m pip install –upgrade pwntools

angelikaros.github.io

 

https://dreamhack.io/wargame/challenges/2/

 

basic_exploitation_000

Description 이 문제는 서버에서 작동하고 있는 서비스(basicexploitation000)의 바이너리와 소스 코드가 주어집니다. 프로그램의 취약점을 찾고 익스플로잇해 셸을 획득한 후, "flag" 파일을 읽으세요. "fla

dreamhack.io

 

 

중간에 이런 오류가 발생했었다. 간단히 말하면 DNS가 정상작동을 하지 않아서 발생하는 문제였다.

아래 블로그가 문제 해결에 도움이 되었다.

https://wan2.land/posts/2017/03/22/ubuntu-resolvconf-settings-summary/

 

우분투 resolv.conf 세팅 정리

서버는 AWS EC2(Ubuntu 16.04) + RDS 를 사용하고 있습니다. 일단, 문제의 발단은 다음 에러였습니다. SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known PDO쪽에서 Exception이 발생했

wan2.land