This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<unistd.h> | |
#include<arpa/inet.h> // AF_INET 외부 네트워크 도메인 | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#define MAXLINE 511 | |
int main(int argc,char *argv[]){ | |
int cli_sock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<unistd.h> | |
#include<arpa/inet.h> //AF_INET 외부 내트워크 도메인 | |
#include<sys/types.h> | |
#include<sys/socket.h> | |
#define MAXLINE 511 | |
int main(int argc,char* argv[]){ | |
int serv_sock; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
int main(int argc, char* argv[], char* envp[]){ | |
printf("Welcome to pwnable.kr\n"); | |
printf("Let's see if you know how to give input to program\n"); | |
printf("Just give me correct inputs then you will get the flag :)\n"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
int main(){ | |
//stage1 attack! | |
char *argv[101] = {"/home/input/input", [1 ... 99] = "A", NULL}; //argv[0],argv[1],....,argv[100] | |
argv['A'] = "\x00"; | |
argv['B'] = "\x20\x0a\x0d"; | |
argv['C'] = "33333"; |