Advertise

Monday, 16 September 2013

Assembly Language Primer For Hackers (Part 5) Data Types




Description: This is Part 5 of the "Assembly Language Primer for Hackers" video series. Please begin here with Part 1, if you have not already done so. In this video we will go through an in-depth primer on data types which are used in assembly. We do a live demo on how to look at data in memory using GDB for .ascii, .int, .short, .float (.data) and .comm, .lcomm (.bss) types.Please download the VariableDemo.s code

Code:
# Demo program to show how to use Data types and MOVx instructions

.data

    HelloWorld:
        .ascii "Hello World!"

    ByteLocation:
        .byte 10

    Int32:
        .int 2
    Int16:
        .short 3
    Float:
        .float 10.23

    IntegerArray:
        .int 10,20,30,40,50

   
.bss
    .comm LargeBuffer, 10000

.text

    .globl _start

    _start:
        nop   
        # Exit syscall to exit the program

        movl $1, %eax
        movl $0, %ebx
        int $0x80

before you begin with the tutorial. Part 6 of the Assembly Language Primer for Hackers is available here. Enjoy! 

Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying. 

Security tube is also providing linux Assembly course for 99$ here -> http://securitytube-training.com/online-...ly-expert/

Description: This is Part 5 of the "Assembly Language Primer for Hackers" video series. Please begin here with Part 1, if you have not already done so. In this video we will go through an in-depth primer on data types which are used in assembly. We do a live demo on how to look at data in memory using GDB for .ascii, .int, .short, .float (.data) and .comm, .lcomm (.bss) types.Please download the VariableDemo.s code

Code:
# Demo program to show how to use Data types and MOVx instructions

.data

    HelloWorld:
        .ascii "Hello World!"

    ByteLocation:
        .byte 10

    Int32:
        .int 2
    Int16:
        .short 3
    Float:
        .float 10.23

    IntegerArray:
        .int 10,20,30,40,50

   
.bss
    .comm LargeBuffer, 10000

.text

    .globl _start

    _start:
        nop   
        # Exit syscall to exit the program

        movl $1, %eax
        movl $0, %ebx
        int $0x80

before you begin with the tutorial. Part 6 of the Assembly Language Primer for Hackers is available here. Enjoy! 

Disclaimer: We are a infosec video aggregator and this video is linked from an external website. The original author may be different from the user re-posting/linking it here. Please do not assume the authors to be same without verifying. 

Security tube is also providing linux Assembly course for 99$ here -> http://securitytube-training.com/online-...ly-expert/
 
World of Hacker © 2011 Creative Commons License
World of Hacker by KroKite is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at http://www.worldofhacker.com.
Permissions beyond the scope of this license may be available at https://groups.google.com/forum/#!newtopic/hackerforum.