Giter VIP home page Giter VIP logo

attack-lab's Introduction

Attack-Lab

A brief walkthrough of the buffer overflow attack known as Attack Lab or Buffer Bomb in Computer Systems course.

There are 5 phases of the lab and your mission is to come up with a exploit strings that will enable you take control of the executable file and do as you wish.

The first 3 phases include injecting small code while the last 2 utilize the ROP (Return Oriented Programming) exploit.

attack-lab's People

Contributors

gabrieldeml avatar gurkhaman avatar kris927b avatar magna25 avatar ms10897 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

attack-lab's Issues

problems with phase4

hi, first thanks a lot for your notes, it helped alot.

while dumping the rtarget, i searched for 58 byte representation and i didn't find any 58 on the outer end .. what i found was 5c which is representation for popq rsp then i tried to search for mov rsp,edi which should be 48 89 e7 c3 but i didn't find it also what do you suggest??

help with phase5

thanks alot for your notes for the previous phases, i tried to solve phase5 but im stuck can you give me a hand ? ..

my asm code:

padding
mov rsp,rax
mov rax,rdi
pop rax
gap from gadget1 to cookie
mov edx,ecx
mov ecx,esi
lea (rdi,rsi,1),rax
mov rax,rdi
touch 3
cookie

i checked the whole addresses more than 3 times but it seems it doesn't exploit touch3 as it causes segement failure .. i am not sure of what value should be the gap ?

phase 4 correction

The popq %rax in the farm does not necessarily require 58 (the corresponding machine code) to be at the rightmost position of the instruciton. It works even if it is in the middle.

phase4

i think pase4 need update. i try it but it keep on saying You caused a segmentation fault!

phase 3 issue

I get valid solution for phase 3 but I keep causing a seg fault and im not sure why.
my buffer size is 0x28

Problems with Phase 3

First off, thank you so much for creating this github. Your solutions have been very helpful, but we are having a lot of trouble with phase3. Is the rsp+0x28 increment standard for all attack labs? It seems to change from person to person, but we aren't sure how to determine our increment. We have tried 0x28, and it's not working.

Thanks,

Secret Admirer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.