Follow us on Twitter!
Society leans ever heavily on computers, if you have the power to take out computers you can take out society. - cubeman372
Friday, April 25, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 26
Guests Online: 26
Members Online: 0

Registered Members: 82910
Newest Member: toni7
Latest Articles
View Thread

HellBound Hackers | Computer General | Programming

Author

Im trying to understand buffer overflows


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 03-06-06 17:37
Code

*include<string.h>

int main(int argc, char **argv){
   char buf[256];
       strcpy(buf, argv[1]);
}




This code is vulnerable to buffer overflow. Im trying to learn about exploiting these kind of codes, so, I know its common to make it spawn a shell, but what would I input if I wanted to make the program print out "hello world" ? Is it A*256 cout<<"hello world" ?

I know I have to overwrite the memory and such, but I dont know the details. Can someone explain to me how and why it it possible to exploit the code above ?
Author

RE: Im trying to understand buffer overflows

SySTeM
Member

Your avatar

Posts: 1524
Location: England, UK
Joined: 27.07.05
Rank:
HBH Guru
Posted on 13-09-06 16:35
dw0rek wrote:
you also need a '#' infront of the include for it to work properly.


Yes, I'm gathering he knows this, hbh used to convert hashes into asterisks because of an exploit.


img138.imageshack.us/img138/6527/sig2ak1.jpg
www.hellboundhackers.org/sig/r/2783.png

http://www.elites0ft.com/
Author

RE: Im trying to understand buffer overflows


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 13-09-06 22:10
okies didnt know that.


Author

RE: Im trying to understand buffer overflows


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 14-09-06 04:01
Buffer and stack overflows are a tricky subject,if you want to get a deep understanding of these exploits check out a book called, "hacking the art of exploitation".Other than that I can't help you since I'm very new to the subject aswell.Can any one tell me how to run these exploits against a server,I know u have to have the right permissions,but other than that i'm lost.:whoa: