From 6855502747b9b5edaab9e26e1e4dc82957c1eb02 Mon Sep 17 00:00:00 2001 From: Blotz <55319277+Blotz@users.noreply.github.com> Date: Mon, 6 Feb 2023 22:16:29 +0000 Subject: [PATCH] There isnt always a webpage on 192.168.1.1 Routers can have alternative IP addresses such as 192.168.0.1 Changing the target ip to something consistent like cloudflare will resolve this inconsistency. --- example.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example.py b/example.py index 9eb77a3..7a78c28 100644 --- a/example.py +++ b/example.py @@ -14,9 +14,9 @@ sys.exit(1) print("masscan version: {}".format(mas.masscan_version)) -mas.scan('192.168.1.1', ports='T:80,1900') +mas.scan('1.1.1.1', ports='T:80,1900') print("masscan command line: {}".format(mas.command_line)) -print('maascan has_host: {}'.format(mas.has_host("192.168.1.1"))) +print('maascan has_host: {}'.format(mas.has_host("1.1.1.1"))) print(mas.scan_result) for host in mas.all_hosts: print("Host: %s %s" % (host, mas[host]))