Wargame
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FOPH8R%2FbtrNlaf77wZ%2Fja4c4qnVcsBP7jxKh6KhHK%2Fimg.png)
[Phoenix] Format two
1. intro 2. code 및 분석 2.1. C code /* * phoenix/format-two, by https://exploit.education * * Can you change the "changeme" variable? * * What kind of flower should never be put in a vase? * A cauliflower. */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.education" int changeme; void bounce(char *str) { printf(str); } int..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FOhFMN%2FbtrNjrpeXB9%2FjHeXkdISrJRsASXZA1v7JK%2Fimg.png)
[Phoenix] Format one
1. intro 2. code 및 분석 2.1. C code /* * phoenix/format-one, by https://exploit.education * * Can you change the "changeme" variable? * * Why did the Tomato blush? It saw the salad dressing! */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.education" int main(int argc, char **argv) { struct { char dest[32]; volatile int c..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FVECuq%2FbtrNcB0hWWZ%2FV76xK7iSZyzUo9APmBpvGk%2Fimg.png)
[Phoenix] Format zero
1. intro 2. code 및 분석 2.1. C code /* * phoenix/format-zero, by https://exploit.education * * Can you change the "changeme" variable? * * 0 bottles of beer on the wall, 0 bottles of beer! You take one down, and * pass it around, 4294967295 bottles of beer on the wall! */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.educ..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FFe2mm%2FbtrM6NtsOEo%2Fe9tff9yF9P65sdPmYAdjtk%2Fimg.png)
[Phoenix] Stack six
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-six, by https://exploit.education * * Can you execve("/bin/sh", ...) ? * * Why do fungi have to pay double bus fares? Because they take up too * mushroom. */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.education" char *what = GREET; char *greet(char *who) { char buf..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FcXdI4t%2FbtrM9PXyK8b%2FlvRf0PMpiRFVhL1Ih7p5g0%2Fimg.png)
[Phoenix] Stack five
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-five, by https://exploit.education * * Can you execve("/bin/sh", ...) ? * * What is green and goes to summer camp? A brussel scout. */ #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.education" char *gets(char *); void start_level() { char buffer[128]; gets(buffer); } int main(i..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FlklDM%2FbtrM7i7u420%2FS1tqVKYUeM1avH3XdMzZv1%2Fimg.png)
[Phoenix] Stack four
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-four, by https://exploit.education * * The aim is to execute the function complete_level by modifying the * saved return address, and pointing it to the complete_level() function. * * Why were the apple and orange all alone? Because the bananna split. */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", b..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2F4bjdl%2FbtrM6XbrlGD%2F2gAeliEHzuJTk4gu34oW00%2Fimg.png)
[Phoenix] Stack three
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-three, by https://exploit.education * * The aim is to change the contents of the changeme variable to 0x0d0a090a * * When does a joke become a dad joke? * When it becomes apparent. * When it's fully groan up. * */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.educatio..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FnHdKr%2FbtrM6KC2Arg%2Fvzm5IS0lWYzxWvcm1rlkk0%2Fimg.png)
[phoenix] Stack Two
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-two, by https://exploit.education * * The aim is to change the contents of the changeme variable to 0x0d0a090a * * If you're Russian to get to the bath room, and you are Finnish when you get * out, what are you when you are in the bath room? * * European! */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FJUdUo%2FbtrM7oMVKzF%2FfERvRMryNyRfrkZazE7fVk%2Fimg.png)
[Phoenix] Stack One
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-one, by https://exploit.education * * The aim is to change the contents of the changeme variable to 0x496c5962 * * Did you hear about the kid napping at the local school? * It's okay, they woke up. * */ #include #include #include #include #include #define BANNER \ "Welcome to " LEVELNAME ", brought to you by https://exploit.education" int main..
![](https://img1.daumcdn.net/thumb/R750x0/?scode=mtistory2&fname=https%3A%2F%2Fblog.kakaocdn.net%2Fdn%2FbTwqLE%2FbtrM0mXtBJ7%2FB2MLtKbldxuy3zbaVxKPw1%2Fimg.png)
[Phoenix] Stack Zero
1. intro 2. code 및 분석 2.1. C code /* * phoenix/stack-zero, by https://exploit.education * * The aim is to change the contents of the changeme variable. * * Scientists have recently discovered a previously unknown species of * kangaroos, approximately in the middle of Western Australia. These * kangaroos are remarkable, as their insanely powerful hind legs give them * the ability to jump higher t..