Skip to content

Latest commit

 

History

History
15 lines (13 loc) · 767 Bytes

README.md

File metadata and controls

15 lines (13 loc) · 767 Bytes

How to protect from fileless web shells

Materials from the speech "How to protect yourself from hidden web shells". Repository structure:

  • "dev/files" directory -- contains PHP extenstion source-code and shell-code extractor script
  • "dev/generate.sh" -- script for creating and building PHP extension
  • "docker/etc" directory -- contains PHP/httpd config files and web-shell POC
  • "docker/Dockerfile" -- file to create Docker image
  • "docker/main.sh" -- script to automate Docker image creation, run and test web-shell

Run this commands to do everything:

  • docker/main.sh build -- build docker image
  • docker/main.sh run -- run docker image
  • docker/main.sh inject -- inject code into web-server
  • docker/main.sh test -- use web-shell from harmless script