This can be useful during Internal pentests when you want to quickly check for unauthorised routes to the Internet (e.g. rogue wireless access points) or routes to other Internal LANs. It doesn't perform a hugely thorough check, but it is quick at least. It's python, so it should be easy to modify to fit your needs.
You give the script the IP address of a system on the Internet you're trying to reach and it will send the following probes via each system on the local LAN:
[homepage]http://pentestmonkey.net/tools/gateway-finder[/homepage] [extra_link]https://github.com/pentestmonkey/gateway-finder[/extra_link] [tags]lan,network,router[/tags] [short_descr]Identify routers on the local LAN and paths to the Internet.[/short_descr] [long_descr]Gateway-finder is a scapy script that will help you determine which of the systems on the local LAN has IP forwarding enabled and which can reach the Internet.
This can be useful during Internal pentests when you want to quickly check for unauthorised routes to the Internet (e.g. rogue wireless access points) or routes to other Internal LANs. It doesn't perform a hugely thorough check, but it is quick at least. It's python, so it should be easy to modify to fit your needs.
You give the script the IP address of a system on the Internet you're trying to reach and it will send the following probes via each system on the local LAN:
It will report separately which systems send an ICMP "TTL exceeded in transit" message back (indicating that they're routers) and which respond to the probe (indicating that they're gateways to the Internet).[/long_descr] [image]https://raw.githubusercontent.com/gwen001/offsectools_www/main/e77cc151cade8a0c906620d174998776.png[/image]