• This project
    • Loading...
  • Sign in

손지언 / 2019102185

%ea%b7%b8%eb%a6%bc1
Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Graphs
  • Network
  • Create a new issue
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • OSSPractice
  • ArmExploitation
  • mod1.c
  • 손지언's avatar
    dd · 986936e6
    986936e6
    손지언 authored 2022-02-18 05:00:00 +0000
mod1.c 370 Bytes
Raw Blame History Permalink
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
#include<stdlib.h>
#include<unistd.h>
#include<stdio.h>
#include<string.h>
#include<err.h>

int main(int argc, char **argv){
	volatile int modified;
	char buffer[64];
	
	if(argc != 2){
		perror("argc");
	}

	modified = 0;
	strcpy(buffer,argv[1]);
	if(modified == 0x61626364){
		printf("success!\n");
	}
	else{
		printf("try again!, you got 0x%08x\n",modified);
	}
}