Skip to content

Quick and Dirty way to enable the mitm attack on hardware #75

@0sx86

Description

@0sx86

Enable Port Forwarding on the server

  • Connect to the server : ssh pi@10.0.0.1
  • Add these two lines to the file /etc/ssh/sshd_config
    AllowTcpForwarding yes
    GatewayPorts yes
  • Reload the sshd daemon : sudo systemctl restart sshd

Forwarding the port from the attacker machine

  • Run the command : ssh -R 0.0.0.0:5020:0.0.0.0:5020 pi@10.0.0.1

Run the mitm program from the attacker machine

  • python mitm.py

Modify the ip address

  • From the web interface : http://10.0.0.1:1881/device
  • Modify the ip address of the slave to : 172.19.0.1:5020

The red button should turn green if it is working

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions