duckingod / MitM-SSL-server-demo

NTU NS 2016 final project.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MitM-SSL-server-demo

NTU NS 2016 final project. Perform a Man in the Middle attack to a old Apache httpd 2.4.1. It's a implementation of logjam

Test Environment

  • Ubuntu Server 16.04 LTS

  • VM disk size > 4GB

  • apache2 2.4.18

      sudo apt-get -y install python-software-properties && \
      sudo apt-get -y install software-properties-common && \
      sudo apt-get -y install gcc make build-essential libssl-dev libffi-dev python-dev
    

Progess

  • install apache httpd
  • configure ssl setting
  • set up sample site
  • logjam to apache

Usage

sudo ./run.sh

This will REMOVE OLD apache2 and /var/www/html

Methods

  • Configure Apache in an inversed way mentioned in this article
  • produce vulnerable Diffie-Hellman parameter by sudo openssl dhparam -out /etc/apache2/dhparams512.pem 512
  • Change CipherSuites in ClientHello (handshake) (by this) to DHE_EXPORT
  • Do MitM attack by this repo

Notes

About

NTU NS 2016 final project.


Languages

Language:HTML 42.8%Language:Python 21.4%Language:ApacheConf 12.2%Language:PHP 8.1%Language:CSS 7.8%Language:Shell 7.6%