forked from libdebug/libdebug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request libdebug#90 from libdebug/dev
Dev
- Loading branch information
Showing
43 changed files
with
3,262 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
prune media | ||
prune test | ||
prune docs | ||
prune examples | ||
prune .github | ||
prune */__pycache__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
// | ||
// This file is part of libdebug Python library (https://github.com/libdebug/libdebug). | ||
// Copyright (c) 2024 Francesco Panebianco. All rights reserved. | ||
// Licensed under the MIT license. See LICENSE file in the project root for details. | ||
// | ||
// Compile with: | ||
// gcc bof.c -o bof -fno-stack-protector -std=c99 | ||
|
||
#include <stdio.h> | ||
|
||
int main(int argc, char** argv) { | ||
char buffer[32]; | ||
|
||
// Setvbuf is used to disable buffering | ||
setvbuf(stdin, NULL, _IONBF, 0); | ||
setvbuf(stdout, NULL, _IONBF, 0); | ||
|
||
printf("libdebug 4 exploitation testing bench\n"); | ||
|
||
printf("Enter a string: "); | ||
// This is a vulnerable function, it does not check the size of the input | ||
gets(buffer); | ||
|
||
return 0; | ||
} |
Oops, something went wrong.