기본 환경 : Windows 10가상 환경 : VMware Workstation Pro / Windows 7 VM에서 Windows7 환경을 사용하려고 설치 및 실행해보았는데, 인터넷 연결이 되어있지 않은 상태였다.그래서 검색검색 1. 제어판 > 네트워크 공유 센터 2. 네트워크 및 공유 센터 좌측 어댑터 설정 변경3. VMware Network Adapter VMnet 1 & 8 을 우클릭 > 네트워킹 탭의 인터넷 프로토콜 버전 4(TCP/IPv4) 속성 1) VMware Network Adapter VMnet 1IP주소 : 192.168.137.1서브넷 마스크 : 255.255.255.0 1) VMware Network Adapter VMnet 8IP주소 : 192.168.161(아무값).1서브넷 마..
passcode 문제를 풀다가 잘 안돼서 다른 문제로 넘어왔다ㅎㅎ알고보니 passcode 문제는 무려 10point 짜리 문제였다! 힝입니다ㅠㅠ 순서대로 푸는 건줄 알았는데,아직 시스템 초보이므로 point가 낮은 것부터 차근차근 풀기로 했다. random.c 의 코드는 다음과 같다.#include int main(){unsigned int random;random = rand();// random value! unsigned int key=0;scanf("%d", &key); if( (key ^ random) == 0xdeadbeef ){printf("Good!\n");system("/bin/cat flag");return 0;} printf("Wrong, maybe you should try 2^32..
Level19 Password is swimming in pink. 힌트는 다음과 같다. main(){ char buf[20]; gets(buf); printf("%s\n",buf);} 매우 간단해 보이는 코드인데 gets 함수를 쓴다. gets를 사용하면 위와 같이 buf는 20이지만 20이 넘어도 값을 받을 수 있고, 그대로 출력해준다.gets 함수는 bof에 매우 취약한 함수이며, scanf와 같이 입력받는 문자열의 크기와 주어진 변수의 크기를 고려하지 않는다.그렇다면, buf에 쭉 입력을 해줘서 ret을 건드리거나 하면 되지 않을까 라는 생각이 들었다. gdb로 본 어셈 코드도 엄청 짧다!! Dump of assembler code for function main:0x08048440 :push e..
level18 password is why did you do it 힌트는 다음과 같다. #include #include #include #include void shellout(void);int main(){ char string[100]; int check; int x = 0; int count = 0; fd_set fds; printf("Enter your command: "); fflush(stdout); while(1) { if(count >= 100) printf("what are you trying to do?\n"); if(check == 0xdeadbeef) shellout(); else { FD_ZERO(&fds); FD_SET(STDIN_FILENO,&fds); if(select(FD..
- Total
- Today
- Yesterday
- c언어
- 명령어
- 워게임
- cobolt
- my-pass
- webhacking.kr
- 파이썬
- C
- 자바
- Los
- MySQL
- wargame
- wargame.kr
- WebHacking
- lord of sqlinjection
- ftz
- ubuntu
- 1번
- attackme
- java
- 우분투
- 0xdeadbeef
- BOF
- Python
- 웹해킹
- pwnable.kr
- 설치
- Lord of SQL Injection
- lob
- pwnable
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |