Module: tools/pirate¶
- tools.pirate.bad_url_http_request()¶
Sends an HTTP GET request to a known-bad IP address.
- Returns:
None
- tools.pirate.get_mac(ip)¶
Returns the MAC address of any device connected to the network with the given IP address.
- Parameters:
ip (str) – The IP address of the device to query.
- Returns:
The MAC address of the device with the given IP address, or None if the device did not respond to the request.
- Return type:
str or None
- tools.pirate.single_packet_attack(target)¶
Sends a single malformed TCP packet to the given IP address.
- Parameters:
target (str) – The IP address of the target to send the packet to.
- Returns:
None
- tools.pirate.spam_attack(target)¶
Sends a burst of TCP SYN packets to the given IP address.
- Parameters:
target (str) – The IP address of the target to send the packets to.
- Returns:
None
- tools.pirate.spoof(target_ip, host_ip, verbose=True)¶
Spoofs the ARP cache of target_ip to make it believe that we are host_ip.
- Parameters:
target_ip (str) – The IP address of the target to spoof.
host_ip (str) – The IP address of the host to impersonate.
verbose (bool) – Whether to print progress messages to the console. Defaults to True.
- Returns:
None