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
FROM alpine:3.16.2 | |
ARG MODSECURITY_VERSION=v3.0.8 | |
ARG NGINX_MODSECURITY_VERSION=1.0.2 | |
ARG NGINX_VERSION=1.21.6 | |
ARG OWASP_MODSECURITY_CRS_VERSION=v3.3.4 | |
WORKDIR /build | |
RUN apk add \ |
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
ping 1.1.1.1 -c 1 -M do -s $((1500-28)) |
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
section .text | |
global _start | |
_start: | |
xor rax, rax | |
push rax | |
mov al, 0x3b | |
mov rbx, 68732f2f6e69622fH | |
push rbx | |
mov rdi, rsp | |
syscall |
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
/* | |
* Shellcode executer | |
* gcc -fno-stack-protector -z execstack shell.c -o shell | |
*/ | |
char shellcode[] = "\xeb\x20\x48\x31\xc0\x48\x31\xff\x48\x31\xf6\x48\x31\xd2\xb0\x01\x40\xb7\x01\x5e\xb2\x0c\x0f\x05\x48\x31\xc0\xb0\x3c\x40\xb7\x00\x0f\x05\xe8\xdb\xff\xff\xff\x48\x65\x6c\x6c\x6f\x20\x57\x6f\x72\x6c\x64\x21"; | |
int main(int argc, char **argv) | |
{ | |
int (*exeshell)(); |