OS: Parrot OS x64 Stack5.c: #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <string.h> int main(int argc, char **argv) { char buffer[64]; gets(buffer); } Build file: gcc -fno-stack-protector -z execstack -Wl,-z,norelro -o stack5 stack5.c Checksec: Analasis: This is a simple task, x64 No protection (you can add more if you like :v)Execute /bin/sh Review main code:ContinueContinue reading “Protostar stack5 – Shellcode with stack overflows”
Tag Archives: buffer overflow
Lỗ hổng buffer overflow [Part 1]
Trong các lĩnh vực an ninh máy tính và lập trình, một lỗi tràn bộ nhớ đệm hay gọi tắt là lỗi tràn bộ đệm là một lỗi lập trình có thể gây ra một ngoại lệ truy nhập bộ nhớ máy tính và chương trình bị kết thúc, hoặc khi người dùng có ýContinueContinue reading “Lỗ hổng buffer overflow [Part 1]”