add MITM attack logic