Advertise

Monday, 16 September 2013

Assembly Language Primer For Hackers (Part 2) Virtual Memory Organization

Assembly Language Primer For Hackers (Part 2) Virtual Memory Organization


Description: This is the second video in the "Assembly Primer for Hackers" series. Please begin here with Part 1, if you have not already done so before watching this video.In this video we take an in-depth look at virtual memory organization concepts. The entire discussion is explained by taking a live example using the SimpleDemo.c code. 







Code:
#include
#include

int add(int x, int y)
{
        int z =10;

        z = x + y;
        return z;
}

main(int argc, char **argv)
{
        int a = atoi(argv[1]);
        int b = atoi(argv[2]);
        int c;
        char buffer[100];

        gets(buffer);
        puts(buffer);

        c = add(a,b);

        printf("Sum of %d+%d = %d\n",a, b, c);

        exit(0);

}
We look at how one can use the /proc/PID/maps to peek into the layout of a program's virtual memory and interpret useful things. Also, we show how the Address Space Layout Randomization (ASLR) works in the latest 2.6 kernels and why this is significant from a security point of view. We also show how this can be disabled at runtime if the need be. This video is very important from an code exploitation perspective as it teaches us how to check for the presence of ASLR on a given system.

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.