ALERT!
Click here to register with a few steps and explore all our cool stuff we have to offer!

Jump to content



Photo

Analysing a simple "Hello World" Program


  • Please log in to reply
Analysing a simple "Hello World" Program

#1

Delshire
Delshire
    Offline
    11
    Rep
    217
    Likes

    PUSH EBX

Posts: 147
Threads: 15
Joined: May 02, 2015
Credits: 0
Four years registered
#1

Hey nulled! Today we will be writing a simple hello world program in C, compiling it, then analyzing the disassembled binary.

 

 

The code will be compiled with gcc and disassembled using gdb; if you are using Windows, you can get Dev-C++ that comes with all the gcc utilities, including gdb.

 

Bear in mind that if you compile the source code yourself, your assembly code may be slightly different from mine due to variations in the different versions of gcc (I am using gcc v3.3.5 on Linux and v3.4.2 on Windows).

 

Also, your memory addresses probably won’t match mine, but this is normal as they will  be different when compiled on different systems. 

 

GDB Basics

GDB is both a debugger and a disassembler. In this example, we will be using gdb as a disassembler to perform a static analysis of our code. Gdb has many commands, but for our purposes there are just a few we will be using:

a7183b94b5.png

 

Hello World!

Hidden Content
You'll be able to see the hidden content once you reply to this topic or upgrade your account.

Good luck.


  • 7

Let's h4x 1nt3rn37: 

33b4a5b1ff.png


#2

Awii
Awii
    Offline
    2
    Rep
    14
    Likes

    Advanced Member

Posts: 132
Threads: 4
Joined: Jun 07, 2015
Credits: 0
Four years registered
#2

Hmm, let's see.

 

Edit: didn't understand anything but looks nice!


Edited by Awii, 25 October 2015 - 06:43 PM.

  • 0

Anti-AFK for League of Legends made by me:

https://www.nulled.i...fk-for-volibot/


#3

Delshire
Delshire
    Offline
    11
    Rep
    217
    Likes

    PUSH EBX

Posts: 147
Threads: 15
Joined: May 02, 2015
Credits: 0
Four years registered
#3

Hmm, let's see.

 

Edit: didn't understand anything but looks nice!

 

lol, well tell me what you did not understand so i can help you.


  • 0

Let's h4x 1nt3rn37: 

33b4a5b1ff.png


#4

xramtun203
xramtun203
    Offline
    0
    Rep
    7
    Likes

    New Member

Posts: 14
Threads: 3
Joined: Oct 26, 2015
Credits: 0
Four years registered
#4

lol i dont have your help but your intelli is so good 


  • 2

#5

Oxide
Oxide
    Offline
    381
    Rep
    4528
    Likes

    welcome to nulled dot io

Posts: 264
Threads: 26
Joined: Jan 12, 2015
Credits: 21

Four years registered
#5

Please fix the color of your topic


  • -1

Do not PM me unless required to


Problems with staff decisions or issues with your account PM me


#6

Delshire
Delshire
    Offline
    11
    Rep
    217
    Likes

    PUSH EBX

Posts: 147
Threads: 15
Joined: May 02, 2015
Credits: 0
Four years registered
#6

Please fix the color of your topic

 

I make all my threads in that colour, don't you like it pepo ?  :pepe:

 

Edit: Either way, I'm closing this topic, going to make another more in depth, more pictures and noob-friendly. I recognise it's hard to read.


Edited by Delshire, 29 October 2015 - 03:12 AM.

  • 0

Let's h4x 1nt3rn37: 

33b4a5b1ff.png


#7

pruned_47976132
pruned_47976132
    Offline
    2
    Rep
    21
    Likes

    New Member

  • PipPip
Posts: 23
Threads: 0
Joined: Jul 11, 2015
Credits: 0
Four years registered
#7
well...

  • 0

#8

cyongaming
cyongaming
    Offline
    0
    Rep
    10
    Likes

    Member

Posts: 26
Threads: 0
Joined: Nov 01, 2015
Credits: 0
Four years registered
#8

thanks dude


  • 0

#9

sinky
sinky
    Offline
    0
    Rep
    9
    Likes

    New Member

Posts: 21
Threads: 0
Joined: Nov 05, 2015
Credits: 0
Four years registered
#9

ty


  • 0

+rep if u hate teeemo!!


#10

pruned_86555174
pruned_86555174
    Offline
    0
    Rep
    21
    Likes

    New Member

  • PipPip
Posts: 21
Threads: 2
Joined: Nov 06, 2015
Credits: 0
Four years registered
#10

thank! no i dont!


  • 0


 Users browsing this thread: