From 01e5da085a1a0a5ccb394c6e525402174205790e Mon Sep 17 00:00:00 2001 From: Ambrose Chua Date: Thu, 22 Mar 2018 23:16:32 +0800 Subject: [PATCH] Limitations in computing --- README.md | 4 +++- latency.go | 2 +- scan.conf | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1e86d36..d89eea1 100644 --- a/README.md +++ b/README.md @@ -15,13 +15,15 @@ To scan the IPv4 Internet, I used the tool [`masscan`](https://github.com/robertdavidgraham/masscan) by security researcher Robert Graham. He has extensively made use of `masscan` in the security research he does. It provides latency measurements up to the millisecond. +> WARNING: Only scan the Internet if your service provider approves of it. It can cause networking issues. + I wrote a configuration file to run `masscan` on the entire Internet with the included exclusion list, and scan the top 5 open ports according to [speedguide.net](https://www.speedguide.net/ports_common.php). It is stored as `scan.conf`. I started the scan with: ``` masscan -c scan.conf ``` -This produces the output file `scan.bin`. +This produces the output file `scan.bin`. You might want to make use of shards to scan only a portion of the internet per file as scanning the entire internet will produce a huge file that cannot be parsed unless you have enough RAM available. ## Counting latency diff --git a/latency.go b/latency.go index 4889630..cc55e16 100644 --- a/latency.go +++ b/latency.go @@ -1,7 +1,7 @@ package main import ( - "encoding/json" + "encoding/gob" "flag" "io/ioutil" "log" diff --git a/scan.conf b/scan.conf index ec76406..b9bc572 100644 --- a/scan.conf +++ b/scan.conf @@ -1,4 +1,5 @@ -rate = 200000.00 +#rate = 200000.00 +rate = 10000.00 ports = 80,443,22,1723,8080 output-format = binary output-status = all