GithubHelp home page GithubHelp logo

sergeyivanovdevelop / buffer-overflow-attack Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 242 KB

This repository contains the code of a simple program in the C programming language, in which it is possible to perform a buffer overflow attack.

License: Other

Makefile 13.04% Python 68.91% C 18.04%
c canary pwn python3 buffer-overflow-attack

buffer-overflow-attack's Introduction

Buffer-Overflow-Attack

Buffer-Overflow-Attack

Buffer-Overflow-Attack ยท GitHub license C Python LinkedIn Telegram

This repository contains the code of a simple program in the C programming language, in which it is possible to perform a buffer overflow attack. The simple_programm program in the Makefile is defined to build with the disable canary flag which is designed to protect against this type of attack (to enable the demonstration). The repository also contains code in the Python programming language, through which this type of attack is carried out.

๐Ÿ’ป Getting Started

Step 1

  1. Go to home directory and clone repository from github: cd ~ && git clone https://[email protected]/SergeyIvanovDevelop/Buffer-Overflow-Attack

Step 2

  1. Go to the directory of the downloaded repository: cd ~/Buffer-Overflow-Attack

Step 3

  1. Installing dependencies:

pip3 install -r ./requirements.txt

Step 4

  1. Build the C program: make -f Makefile

Step 5

  1. Execute the Python script: python3 exploit.py

If a command line prompt appears in the terminal where the Python script was executed, this means that all actions have been performed correctly and the attack has been successfully carried out (the win(void) function was called from the simple_program program, although this function is not called anywhere in this program). An attacker through a vulnerability in a C program was able to gain access to the system.

๐Ÿ“‘ Licence

Buffer-Overflow-Attack is CC BY-NC-SA 3.0 licensed.

buffer-overflow-attack's People

Contributors

sergeyivanovdevelop avatar

Stargazers

 avatar

Watchers

 avatar

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.