Skip to content

Instantly share code, notes, and snippets.

View ManPD's full-sized avatar

ManPD ManPD

View GitHub Profile
#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;
#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;
#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");
#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";