Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- filename o1.c -> o1.exe
- Original Buffer Overflow was targeted at overwriting the memory. My objective went a tad further to possibly cause an exhuastion of resources. The python source is :
- #!/usr/bin/python3
- import os
- exploit = '0xSaiyanGodwash3re:#uRp4wned'
- os.system(f"./o1 {exploit}")
- the python file is named t28.py, any guesses why?
- */
- #include <stdio.h>
- #include <string.h>
- int main(int argc, char *argv[]) {
- int value = 5;
- char b1[8], b2[8];
- strcpy(b1, "length");
- strcpy(b2, "iseight");
- printf(".. deadly data is at %p for now", b2);
- strcpy(b2, argv[1]);
- printf("you are being overflowed at %p ", b2);
- printf(value);
- printf("%s",b2);
- }
Advertisement
Add Comment
Please, Sign In to add comment