Run Apache

In Docker

docker run --detach --rm --publish 80:80 deanturpin/aws-apache FROMubuntu# Install dependenciesRUN apt updateRUN apt -y install apache2 vim# Install apache and write hello world messageRUN echo 'Kem chho!' > /var/www/html/index.html# Configure apacheRUN echo '. /etc/apache2/envvars' > /root/run_apache.shRUN echo 'mkdir -p /var/run/apache2' >> /root/run_apache.shRUN echo 'mkdir -p /var/lock/apache2' >> /root/run_apache.shRUN echo '/usr/sbin/apache2 -D FOREGROUND' >> /root/run_apache.shRUN chmod 755 /root/run_apache.shEXPOSE80CMD /root/run_apache. [Read More]

Decrypting TLS traffic

In Firefox

A Docker image that runs Chromium headless with SSLKEYLOGFILE set, opens an HTTPS page and dumps the decrypted TLS traffic to the terminal. Also runs in Play with Docker. Pull and run docker run --net host deanturpin/ssldump Dockerfile FROMkalilinux/kali-linux-dockerRUN apt updateRUN apt install -y chromiumRUN apt install -y ssldumpRUN apt install -y psmiscCMD \ # Kill the ssldump in the future or the container won't terminate ((sleep 10s && killall ssldump && cat ~/dump. [Read More]

Simple Python web server

To report browser headers

My work Firefox ESR browser seemed to be giving up my username (I.e., half of my login credentials) in its HTTP headers so I wrote simple Python-based webserver that mirrors the browser HTTP headers back to the browser. The script is encapsulated in a Docker image and could be deployed to an AWS instance. Here the server is started on common HTTP ports. docker run --rm -d -p 80:8080 deanturpin/http docker run --rm -d -p 443:8080 deanturpin/http docker run --rm -d -p 8080:8080 deanturpin/http Dockerfile FROMubuntuRUN apt update --yesRUN apt install --yes pythonCOPY . [Read More]