Skip to content

Commit

Permalink
malicious prob.
Browse files Browse the repository at this point in the history
  • Loading branch information
jreisinger committed Jun 7, 2024
1 parent 863c663 commit fe27977
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ is on AWS false
isc.sans.edu attacks: 0, abuse contact: [email protected]
ping 100% packet loss (5/0), avg round-trip 0 ms
tls TLS 1.3, exp. 2024/01/02!!, www.eset.com, eset.com
malicious 8% (1/12) ✅
malicious prob. 8% (1/12) ✅
```

Check multiple IP addresses coming from STDIN:
Expand All @@ -35,7 +35,7 @@ is on AWS false
isc.sans.edu attacks: 0, abuse contact: [email protected]
ping 100% packet loss (5/0), avg round-trip 0 ms
tls TLS 1.3, exp. 2024/01/02!!, www.eset.com, eset.com
malicious 9% (1/11) ✅
malicious prob. 9% (1/11) ✅
--- 91.228.166.47 ---
db-ip.com Petržalka, Slovakia
dns name skh1-webredir01-v.eset.com
Expand All @@ -44,7 +44,7 @@ is on AWS false
isc.sans.edu attacks: 0, abuse contact: [email protected]
ping 100% packet loss (5/0), avg round-trip 0 ms
tls TLS 1.3, exp. 2024/01/02!!, www.eset.com, eset.com
malicious 8% (1/12) ✅
malicious prob. 8% (1/12) ✅
```

Use detailed JSON output to filter out those checks that consider the IP address to be malicious:
Expand Down Expand Up @@ -77,14 +77,14 @@ iptoasn.com CHARTER-20115
is on AWS false
isc.sans.edu attacks: 0, abuse contact: [email protected]
ping 100% packet loss (5/0), avg round-trip 0 ms
malicious 0% (0/10) ✅
malicious prob. 0% (0/10) ✅
--- 115.159.53.216 ---
db-ip.com Shenzhen (Futian Qu), China
iptoasn.com TENCENT-NET-AP Shenzhen Tencent Computer Systems Company Limited
is on AWS false
isc.sans.edu attacks: 0, abuse contact: [email protected]
ping 100% packet loss (5/0), avg round-trip 0 ms
malicious 0% (0/10) ✅
malicious prob. 0% (0/10) ✅
```

Generate 100 random IP addresses and select Russian or Chinese:
Expand All @@ -107,12 +107,12 @@ db-ip.com Frankfurt am Main, Germany
iptoasn.com DIGITALOCEAN-ASN
ping 0% packet loss (5/5), avg round-trip 21 ms
tls TLS 1.3, exp. 2024/12/27, portal.itruck.com.sa, www.portal.itruck.com.sa
malicious 43% (3/7) 🤏
malicious prob. 43% (3/7) 🤏
--- 180.168.95.234 ---
db-ip.com Shanghai, China
iptoasn.com CHINANET-SH-AP China Telecom Group
ping 0% packet loss (5/5), avg round-trip 213 ms
malicious 50% (3/6) 🚫
malicious prob. 50% (3/6) 🚫
```

## Installation
Expand Down
2 changes: 1 addition & 1 deletion cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (rs Checks) PrintSummary() {
func (rs Checks) PrintMalicious() {
total, malicious, prob := rs.maliciousStats()
msg := fmt.Sprintf("%-15s %.0f%% (%d/%d) ",
"malicious", math.Round(prob*100), malicious, total)
"malicious prob.", math.Round(prob*100), malicious, total)
switch {
case prob >= 0.50:
msg += `🚫`
Expand Down

0 comments on commit fe27977

Please sign in to comment.