{"id":277,"date":"2020-02-24T22:56:45","date_gmt":"2020-02-24T22:56:45","guid":{"rendered":"https:\/\/codesupply.co\/nisi-dolor-etiam-eleifend-pretium-libero-quis-amet-nam-vel-a-consequat-penatibus\/"},"modified":"2022-11-12T19:02:45","modified_gmt":"2022-11-12T19:02:45","slug":"buffer-overflow-stack-overflow-c-programming-lab-project","status":"publish","type":"post","link":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/","title":{"rendered":"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project"},"content":{"rendered":"<p><strong>Prerequisites:<\/strong><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Virtual Machine<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">This lab will use Kali Linux\u00a0<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"3\"><span style=\"font-weight: 400;\">Visual Studio Code will be used, feel free to use VIM<\/span><\/li>\n<\/ul>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">HASHES (SHA256)<\/span>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">Kali Linux (VMWare): e4c6999edccf27f97d4d014cdc66950b8b4148948abe8bb3a2c30bbc0915e95a<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"2\"><span style=\"font-weight: 400;\">VS Code: c492f27036cb499b5c962e9ac89e1438c78af88bd26d01b851c54d5ba192f730<\/span><\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>INTRODUCTION:<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Buffer Overflows have been a cyber security threat for more than 45 years. With no sign of stopping. However, concepts such as a Stack, Buffer, and Memory Addresses might be lacking when most guides simply show how to perform a Buffer Overflow over explaining why a Buffer Overflow is possible [1][2].<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The goal of this lab is to present an entry-level program to test the inner workings of what entails a Buffer Overflow.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">STEP 1 (Setting up the Code):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Part 1<\/span><\/p>\n<figure id=\"attachment_4313\" aria-describedby=\"caption-attachment-4313\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4313\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/Program1-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4313\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">Using the code in Figure 1, please save it to your Desktop Directory.<\/span><\/p>\n<figure id=\"attachment_4324\" aria-describedby=\"caption-attachment-4324\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4324\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.08.37-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4324\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<p><i><span style=\"font-weight: 400;\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4325\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.02-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4326\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.07.48-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/span><\/i><\/p>\n<p><span style=\"font-weight: 400;\">Part 2<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Change directories to the saved file and run, as seen in Figure 2 :<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">gcc \u201cfilename.c\u201d -o \u201cnewfilename\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">chmod 777 \u201cnewfilename\u201d<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">.\/\u201dnewfilename\u201d<\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">STEP 2 (Buffer Overflow?):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As you can see in Figure 3, the buffer size for the string is 25 characters. What would happen if we added more than 25?<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4327\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.18-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/p>\n<figure id=\"attachment_4328\" aria-describedby=\"caption-attachment-4328\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4328\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.18.51-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4328\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<figure id=\"attachment_4329\" aria-describedby=\"caption-attachment-4329\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4329\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.19.53-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4329\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Run the following:<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">python -c \u201cprint(\u2018A\u2019 * 21)\u201d | .\/buffer2<\/span><\/p>\n<p><span style=\"font-weight: 400;\">As we can see in Figure 5 the code executes normally.<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">Now try the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">python -c \u201cprint(\u2018A\u2019 * 64)\u201d | .\/\u201dnewfilename\u201d<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Segmentation Fault! We have performed a Buffer Overflow!<\/span><\/p>\n<figure id=\"attachment_4330\" aria-describedby=\"caption-attachment-4330\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4330\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.17-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4330\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<figure id=\"attachment_4331\" aria-describedby=\"caption-attachment-4331\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4331\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.23.39-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4331\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<figure id=\"attachment_4332\" aria-describedby=\"caption-attachment-4332\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4332\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.00-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4332\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<figure id=\"attachment_4333\" aria-describedby=\"caption-attachment-4333\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4333\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.24.54-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4333\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<figure id=\"attachment_4334\" aria-describedby=\"caption-attachment-4334\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4334\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.25.27-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4334\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<p><span style=\"font-weight: 400;\">STEP 3: Compile the code and prepare the object code for the GDB debugger<\/span><\/p>\n<p><span style=\"font-weight: 400;\">To understand a Buffer Overflow, one must understand how memory works.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Type the command to get the GDB debugger: gcc -g buffer1.c -o buffer1 (Remember that buffer1.c is your file name, you can also use this command: gcc -g buffer1.c)\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_4335\" aria-describedby=\"caption-attachment-4335\" style=\"width: 3360px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-4335\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM.png\" alt=\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.26.19-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><figcaption id=\"caption-attachment-4335\" class=\"wp-caption-text\">Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C<\/figcaption><\/figure>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4336\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.38.50-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4337\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-1.39.18-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Step 4: Type the command to access the GDB: gdb a.out<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Step 5: Set breaking point by executing the following commands:\u00a0<\/span><\/p>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">break *main<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">run<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">c<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Input AAA,,,,, to over flow the register<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Info registers<\/span><\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">In Figure , we can see the RBP register the base pointer has been overwritten with 0x41, the ascii value for \u2018A\u2019.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4340\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.38.30-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4341\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.02-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4342\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.43.41-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4343\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.44.29-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4344\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.48.46-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Step 6: <\/span><span style=\"font-weight: 400;\">Change \u2018<\/span><b>scanf<\/b><span style=\"font-weight: 400;\">\u2018 in the program to \u2018<\/span><b>fgets<\/b><span style=\"font-weight: 400;\">\u2018 to mitigate the buffer overflow in the script<\/span><\/p>\n<p>&nbsp;<\/p>\n<p><span style=\"font-weight: 400;\">STEP 7 (Why do we care?):<\/span><\/p>\n<p><span style=\"font-weight: 400;\">So far, we have only seen our Buffer Overflow crashing the program, but the danger lies in the registers RBP and RSP (Register Stack Pointer). Using a Buffer Overflow, you can manipulate the buffer in a way to change the values of these registers, RBP and RSP, to point to other locations. These locations can be other functions, thus revealing sensitive data, or even reverse shells.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4345\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.34-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-4346\" src=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM.png\" alt=\"\" width=\"3360\" height=\"2100\" srcset=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM.png 3360w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-300x188.png 300w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-1024x640.png 1024w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-768x480.png 768w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-1536x960.png 1536w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-2048x1280.png 2048w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-380x238.png 380w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-800x500.png 800w, https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2022-11-05-at-12.54.56-AM-1160x725.png 1160w\" sizes=\"auto, (max-width: 3360px) 100vw, 3360px\" \/><\/p>\n<p><strong>STEP 8 (How Do We Mitigate It?):<\/strong><\/p>\n<p><span style=\"font-weight: 400;\">Change \u2018<\/span><b>scanf<\/b><span style=\"font-weight: 400;\">\u2018 in the program to \u2018<\/span><b>fgets<\/b><span style=\"font-weight: 400;\">\u2018, as seen in Figure 7.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Compile the code as shown in Figure 2 and run the following command to test the Buffer.<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">python -c \u201cprint(\u2018A\u2019 * 64)\u201d | .\/\u201dnewfilename\u201d<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">Congratulations, you have mitigated the overflow!<\/span><\/p>\n<p><span style=\"font-weight: 400;\">With the successful implantation of,\u00a0<\/span><b>fgets<\/b><span style=\"font-weight: 400;\">, we have eliminated the vulnerability. However, we only tested boundary Buffer Overflows, is there another way does <\/span><b>can<\/b><span style=\"font-weight: 400;\">\u00a0allow a Buffer Overflow and not\u00a0<\/span><b>fgets<\/b><span style=\"font-weight: 400;\">?<\/span><\/p>\n<p><span style=\"font-weight: 400;\">REFERENCES:<\/span><\/p>\n<p><span style=\"font-weight: 400;\">[1] NIST, \u201cComputer Security Technology Planning Study,\u201d Oct. 1972.\u00a0<\/span><a href=\"https:\/\/csrc.nist.gov\/csrc\/media\/publications\/conference-paper\/1998\/10\/08\/proceedings-of-the-21st-nissc-1998\/documents\/early-cs-papers\/ande72.pdf\"><span style=\"font-weight: 400;\">https:\/\/csrc.nist.gov\/csrc\/media\/publications\/conference-paper\/1998\/10\/08\/proceedings-of-the-21st-nissc-1998\/documents\/early-cs-papers\/ande72.pdf<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">[2] NVD, \u201cCVE-2018-17439 Detail,\u201d Sep. 2018.\u00a0<\/span><a href=\"https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2018-17439\"><span style=\"font-weight: 400;\">https:\/\/nvd.nist.gov\/vuln\/detail\/CVE-2018-17439<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">[3]<\/span><span style=\"font-weight: 400;\">https:\/\/www.youtube.com\/playlist?list=PLLKT__MCUeix3O0DPbmuaRuR_4Hxo4m3G<\/span><\/p>\n<p><span style=\"font-weight: 400;\">[4] 0xrick, \u201cWhy Do Buffer Overflows Happen,\u201d Dec. 2018.\u00a0<\/span><a href=\"https:\/\/0xrick.github.io\/binary-exploitation\/bof1\/\"><span style=\"font-weight: 400;\">https:\/\/0xrick.github.io\/binary-exploitation\/bof1\/<\/span><\/a><\/p>\n<p><span style=\"font-weight: 400;\">[5] of Syracuse, \u201cBuffer-Overflow Vulnerabilites and Attacks,\u201d Oct. 2013.\u00a0<\/span><a href=\"http:\/\/www.cis.syr.edu\/~wedu\/Teaching\/IntrCompSec\/LectureNotes_New\/Buffer_Overflow.pdf\"><span style=\"font-weight: 400;\">http:\/\/www.cis.syr.edu\/~wedu\/Teaching\/IntrCompSec\/Lect<\/span><\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Congratulations, you have mitigated the overflow!\n","protected":false},"author":1,"featured_media":4350,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"gallery","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"csco_singular_sidebar":"default","csco_page_header_type":"full","csco_page_load_nextpost":"default","csco_post_video_location":[],"csco_post_video_url":"","csco_post_video_bg_start_time":0,"csco_post_video_bg_end_time":0,"footnotes":""},"categories":[2],"tags":[32,33,34,35,36,37,38,39],"class_list":["post-277","post","type-post","status-publish","format-gallery","has-post-thumbnail","category-pentest","tag-buffer-overflow-attack-real-life-example","tag-buffer-overflow-c","tag-buffer-overflow-c-example","tag-buffer-overflow-code-injection-example","tag-buffer-overflow-command-line","tag-buffer-overflow-example","tag-how-to-avoid-buffer-overflow-in-c","tag-how-to-check-buffer-overflow-in-c","post_format-post-format-gallery","cs-entry","cs-video-wrap"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Congratulations, you have mitigated the overflow!\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Jake Adebayo\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"@nootherjake - Cybersecurity, Apps &amp; SEO\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake\" \/>\n\t\t<meta property=\"og:description\" content=\"Congratulations, you have mitigated the overflow!\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<meta property=\"og:image:width\" content=\"1352\" \/>\n\t\t<meta property=\"og:image:height\" content=\"382\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-02-24T22:56:45+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-11-12T19:02:45+00:00\" \/>\n\t\t<meta property=\"article:publisher\" content=\"https:\/\/facebook.com\/nootherjake\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@nootherjake\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Congratulations, you have mitigated the overflow!\" \/>\n\t\t<meta name=\"twitter:creator\" content=\"@nootherjake\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#blogposting\",\"name\":\"Buffer Overflow \\u2013 Stack overflow \\u2013 C Programming Lab Project - @nootherjake\",\"headline\":\"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project\",\"author\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2.png\",\"width\":600,\"height\":600,\"caption\":\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\"},\"datePublished\":\"2020-02-24T22:56:45+00:00\",\"dateModified\":\"2022-11-12T19:02:45+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#webpage\"},\"articleSection\":\"Penetration Testing, Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C, Gallery\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/nootherjake.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/pentest\\\/#listItem\",\"name\":\"Penetration Testing\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/pentest\\\/#listItem\",\"position\":2,\"name\":\"Penetration Testing\",\"item\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/pentest\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#listItem\",\"name\":\"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#listItem\",\"position\":3,\"name\":\"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/category\\\/pentest\\\/#listItem\",\"name\":\"Penetration Testing\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\",\"name\":\"@nootherjake\",\"description\":\"Cybersecurity, Apps & SEO\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/\",\"telephone\":\"+16504719987\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2023\\\/05\\\/Jake-logo-fully-black-2-e1684726136283.png\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#organizationLogo\",\"width\":216,\"height\":61,\"caption\":\"@nootherjake: Cybersecurity Engineer & Information Security Analyst | Penetration Testing, Governance,\\u00a0Risk, and Compliance.\"},\"image\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#organizationLogo\"},\"sameAs\":[\"https:\\\/\\\/facebook.com\\\/nootherjake\",\"https:\\\/\\\/x.com\\\/nootherjake\",\"https:\\\/\\\/instagram.com\\\/nootherjake\",\"https:\\\/\\\/pinterest.com\\\/nootherjake\",\"https:\\\/\\\/youtube.com\\\/nootherjake\",\"https:\\\/\\\/linkedin.com\\\/in\\\/nootherjake\",\"https:\\\/\\\/tumblr.com\\\/nootherjake\",\"https:\\\/\\\/yelp.com\\\/biz\\\/nootherjake\",\"https:\\\/\\\/soundcloud.com\\\/nootherjake\",\"https:\\\/\\\/en.wikipedia.org\\\/wiki\\\/nootherjake\",\"https:\\\/\\\/myspace.com\\\/nootherjake\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/\",\"name\":\"Jake Adebayo\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6c175d0b7d421fa110348c427da354edfb6f1315e52cbd33d455ada90124cd45?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Jake Adebayo\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#webpage\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/\",\"name\":\"Buffer Overflow \\u2013 Stack overflow \\u2013 C Programming Lab Project - @nootherjake\",\"description\":\"Congratulations, you have mitigated the overflow!\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/author\\\/fxmafia\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/02\\\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2.png\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#mainImage\",\"width\":600,\"height\":600,\"caption\":\"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/buffer-overflow-stack-overflow-c-programming-lab-project\\\/#mainImage\"},\"datePublished\":\"2020-02-24T22:56:45+00:00\",\"dateModified\":\"2022-11-12T19:02:45+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/\",\"name\":\"@nootherjake\",\"description\":\"Cybersecurity, Apps & SEO\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/nootherjake.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake","description":"Congratulations, you have mitigated the overflow!","canonical_url":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#blogposting","name":"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake","headline":"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project","author":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"publisher":{"@id":"https:\/\/nootherjake.com\/blog\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2.png","width":600,"height":600,"caption":"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C"},"datePublished":"2020-02-24T22:56:45+00:00","dateModified":"2022-11-12T19:02:45+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#webpage"},"isPartOf":{"@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#webpage"},"articleSection":"Penetration Testing, Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C, Gallery"},{"@type":"BreadcrumbList","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/nootherjake.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/pentest\/#listItem","name":"Penetration Testing"}},{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/pentest\/#listItem","position":2,"name":"Penetration Testing","item":"https:\/\/nootherjake.com\/blog\/category\/pentest\/","nextItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#listItem","name":"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project"},"previousItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#listItem","position":3,"name":"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project","previousItem":{"@type":"ListItem","@id":"https:\/\/nootherjake.com\/blog\/category\/pentest\/#listItem","name":"Penetration Testing"}}]},{"@type":"Organization","@id":"https:\/\/nootherjake.com\/blog\/#organization","name":"@nootherjake","description":"Cybersecurity, Apps & SEO","url":"https:\/\/nootherjake.com\/blog\/","telephone":"+16504719987","logo":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-2-e1684726136283.png","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#organizationLogo","width":216,"height":61,"caption":"@nootherjake: Cybersecurity Engineer & Information Security Analyst | Penetration Testing, Governance,\u00a0Risk, and Compliance."},"image":{"@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#organizationLogo"},"sameAs":["https:\/\/facebook.com\/nootherjake","https:\/\/x.com\/nootherjake","https:\/\/instagram.com\/nootherjake","https:\/\/pinterest.com\/nootherjake","https:\/\/youtube.com\/nootherjake","https:\/\/linkedin.com\/in\/nootherjake","https:\/\/tumblr.com\/nootherjake","https:\/\/yelp.com\/biz\/nootherjake","https:\/\/soundcloud.com\/nootherjake","https:\/\/en.wikipedia.org\/wiki\/nootherjake","https:\/\/myspace.com\/nootherjake"]},{"@type":"Person","@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author","url":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/","name":"Jake Adebayo","image":{"@type":"ImageObject","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/6c175d0b7d421fa110348c427da354edfb6f1315e52cbd33d455ada90124cd45?s=96&d=mm&r=g","width":96,"height":96,"caption":"Jake Adebayo"}},{"@type":"WebPage","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#webpage","url":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/","name":"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake","description":"Congratulations, you have mitigated the overflow!","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/nootherjake.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#breadcrumblist"},"author":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"creator":{"@id":"https:\/\/nootherjake.com\/blog\/author\/fxmafia\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2020\/02\/program-C-error-output-find-buffer-overfiow-integer-array-injection-avoid-code-example-stack-2.png","@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#mainImage","width":600,"height":600,"caption":"Buffer Overflow Attack Real-life Example, Buffer Overflow C, Buffer Overflow C Example, Buffer Overflow Code Injection Example, Buffer Overflow Command Line, Buffer Overflow Example, How To Avoid Buffer Overflow In C, How To Check Buffer Overflow In C"},"primaryImageOfPage":{"@id":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/#mainImage"},"datePublished":"2020-02-24T22:56:45+00:00","dateModified":"2022-11-12T19:02:45+00:00"},{"@type":"WebSite","@id":"https:\/\/nootherjake.com\/blog\/#website","url":"https:\/\/nootherjake.com\/blog\/","name":"@nootherjake","description":"Cybersecurity, Apps & SEO","inLanguage":"en-US","publisher":{"@id":"https:\/\/nootherjake.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"@nootherjake - Cybersecurity, Apps &amp; SEO","og:type":"article","og:title":"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake","og:description":"Congratulations, you have mitigated the overflow!","og:url":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/","og:image":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png","og:image:secure_url":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png","og:image:width":1352,"og:image:height":382,"article:published_time":"2020-02-24T22:56:45+00:00","article:modified_time":"2022-11-12T19:02:45+00:00","article:publisher":"https:\/\/facebook.com\/nootherjake","twitter:card":"summary_large_image","twitter:site":"@nootherjake","twitter:title":"Buffer Overflow \u2013 Stack overflow \u2013 C Programming Lab Project - @nootherjake","twitter:description":"Congratulations, you have mitigated the overflow!","twitter:creator":"@nootherjake","twitter:image":"https:\/\/nootherjake.com\/blog\/wp-content\/uploads\/2023\/05\/Jake-logo-fully-black-1.png"},"aioseo_meta_data":{"post_id":"277","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"open_ai":null,"ai":null,"created":"2023-05-30 17:44:52","updated":"2025-08-01 16:10:43","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nootherjake.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/nootherjake.com\/blog\/category\/pentest\/\" title=\"Penetration Testing\">Penetration Testing<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tBuffer Overflow \u2013 Stack overflow \u2013 C Programming  Lab Project\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/nootherjake.com\/blog"},{"label":"Penetration Testing","link":"https:\/\/nootherjake.com\/blog\/category\/pentest\/"},{"label":"Buffer Overflow &#8211; Stack overflow &#8211; C Programming  Lab Project","link":"https:\/\/nootherjake.com\/blog\/buffer-overflow-stack-overflow-c-programming-lab-project\/"}],"_links":{"self":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/277","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/comments?post=277"}],"version-history":[{"count":3,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions"}],"predecessor-version":[{"id":4349,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/posts\/277\/revisions\/4349"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/media\/4350"}],"wp:attachment":[{"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/media?parent=277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/categories?post=277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nootherjake.com\/blog\/wp-json\/wp\/v2\/tags?post=277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}