Skip to content

Vulnerability Development


1. Install Notepad++

Notice how Notepad++ under (FILE SAVE AS) allows you to save files as

.asm = Assembly Code

.c = c (Which is what we want)

.ida = Ida pro


2. Save the following code as id.c (.c = c program)

#include <studio.h>
int main (int argc, char* argv[])
printf(“Hello World”);

3. Compile it using cl.exe.

To compile we use cl xxx.c  to compile whatever c file we wish.

cl hello.c

cl hello.asm

This will generate an exe for us.

4. Execute the compiled file on the command line cmd>


Just use the filename to run it (eg hello.exe would use hello)

5. Format your programs.

Build sections into your programs.  Start with

//Variable declaration

//Start of main

//Variable Initialisation

//User Input


//User Output


#include <stdio.h>

// Variable declaration:
extern int a, b;
extern int c;
extern float f;

int main (int argc, char* argv[])

{//Start of Main

//Game Over statement
printf(“Game over\n”);

//Variable Initialisation

a = 5;
b = 7;
c = a + b;

//User Output
printf(“%d + %d = %d\n”, a, b, c);
printf(“value of c : %d \n”, c);
return 0;

}//End of Main


Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: