Skip to content

isravle/apache-debug-container

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

apache-debug-container

Install:

  • sudo su
  • apt update + upgrade
  • docker build ./ -t apachecompile
  • docker run -d --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -p 0.0.0.0:80:80 -p 0.0.0.0:6060:6060 apachecompile
    • --cap-add=SYS_PTRACE - GDB needS PTRACE, so we need to let the container this capability
  • --security-opt seccomp=unconfined - GDB needs it also
  • Open browser, 127.0.0.1:6060

Commands 4 me

  • docker kill $(docker ps -q)
  • docker rm $(docker ps -a -q)
  • docker build ./ -t apachecompile
  • docker run -d --cap-add=SYS_PTRACE --security-opt seccomp=unconfined -p 0.0.0.0:80:80 -p 0.0.0.0:6060:6060 -p 0.0.0.0:1337:1337 apachecompile
  • docker exec -it $(docker ps -q) /bin/sh
  • Binary location: /usr/local/apache2/bin/httpd -X -D FOREGROUND
  • A Great repository contains examples for apache mods: https://github.com/pgajdos/apache-rex

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors