Hi, How to put the string "/bin/sh" into the memory, and get its address. ??? I read this can be done with the help of Environment variables? Am new to linux ,please do explain step by step by procedure... Very urgent..pl do help.. Thank you, yasokrish.
First things first, what is this for? Is it a programming problem? If it's a programming issue, which language are you using? Please give us more information!
Hi, How to put the string "/bin/sh" into the memory, and get its address. ??? I read this can be done with the help of Environment variables? Am new to linux ,please do explain step by step by procedure... Very urgent..pl do help..for my project? Thank you, yasokrish.
Hi, Am doing the project "return to libc attacks" I am doing it in C language. Thank u, yasokrish.
Hi, Am doing a project "Return to libc attacks" Am doing the project in C programming. Thanks, Yasokrish
Create an array of eight characters and set its value equal to "/bin/sh\0". Print the address by casting the array as an unsigned int and using printf. (Remember that the name A of an array A[] is the same as &A[0].) I'm not going to give you the code, but there's the logic.
Last edited by Chesamo; April 1st, 2010 at 05:58 PM.
Code: string sh = "/bin/sh"; string * shPointer = &sh; Code: Memory address of < /bin/sh >: 0x22ff30
string sh = "/bin/sh"; string * shPointer = &sh;
Memory address of < /bin/sh >: 0x22ff30
Multiple threads with the same question. Not cool.
Forum DOs and DON'Ts Please use CODE tags Including your email address in a post is not recommended My Blog
Ubuntu Forums Code of Conduct