Hello There, Guest! Login Register
Logo
Dismiss this notice
MaDLeeTs is not responsible for any attacks that are carried out on networks, websites or servers.
MaDLeeTs staff members cannot be held responsible.
All information on this forum is for educational purposes only.


Stack Overflow Example

  • 1 Vote(s) - 3 Average


08-07-2012, 08:21 AM #1
L1nux3rr0r Offline Respected *****
Respected
Posts:137 Threads:27 Joined:Jun 2012 Reputation: 0
Mood: None
[#] Author : Zqor

Program work! There is NO stack overflow!

Code:
#include <stdio.h>
#include <string.h>

void main()
{
char string[]= "AAAAA";
char loly[20];

strcpy(loly,string);
printf("loly= %s\n",loly);

}

nano zqor.c
gcc zqor.c -o zqor
./zqor

-----------------------------------------
Now Run this code!

Code:
#include <stdio.h>
#include <string.h>

void main()
{
char string[]= "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA";
char loly[20];

strcpy(loly,string);
printf("loly= %s\n",loly);

}
nano zqor.c
gcc zqor.c -o zqormamy
./zqormamy

Ops there stack overflow ^_^

------------------------------------------

So why the this stack Overflow ?

No! Try not. Do, or do not. There is NO Try
[email protected]

08-07-2012, 09:18 PM #2
Pain006 Offline Super Moderator ******
Super Moderators
Posts:575 Threads:28 Joined:Jun 2012 Reputation: 0
Mood: None
nice Smiley1

08-08-2012, 11:26 PM #3
Biggrinsmiley hahahaha bro code easy Biggrinsmiley

there moemory 20 if

string 21 program tell you there stack overflow

this easy bro

just learn C /C++

08-09-2012, 04:39 PM #4
Tor Demon Offline MadLeets Vip ******
V.I.P
Posts:172 Threads:5 Joined:Jun 2012 Reputation: 0
Mood: None
nice
Tonguesmiley

MERCY IS NOT TO FORGIVE ThE PEOPLEAngrysmiley

08-15-2012, 03:17 AM #5
LolzSec Offline Advanced NoOb :) **
Registered
Posts:36 Threads:3 Joined:Aug 2012 Reputation: 0
Mood: None
Cause U Declare Loly Array As 20 ( 21 Element ) And
In The Second Code U Give It 63 Element So There Is A 42 Char Over Flow Biggrinsmiley

1=1

07-08-2014, 04:56 AM #6
meanroc Offline Junior Member **
Registered
Posts:2 Threads:1 Joined:Jul 2014 Reputation: 0
Mood: None
Sorry the question, but with this I could create an exploit?

07-08-2014, 05:28 AM #7
T3N38R15 Offline ? lawless-coder *****
Moderators
Posts:790 Threads:48 Joined:Jan 2014 Reputation: 126
Mood: Fine
Not realy but is it basic knowledge to Exploit something Smiley1
(it is just a test programm Biggrinsmiley )

[Image: xodhvlpa.jpg]
[Image: test.php]






Forum Jump:


Users browsing this thread:1 Guest(s)