[data/scanner] Add binaryedge

This commit is contained in:
2023-08-10 10:56:07 +02:00
parent be7f63dbaa
commit 5f2c4f7257
5 changed files with 1172552 additions and 1 deletions

View File

@ -11,7 +11,8 @@ on:
- cron: "30 */8 * * *"
jobs:
build-stretchoid:
build-scanners-list:
name: Build scanners list
environment:
name: sudo-bot
runs-on: ubuntu-latest
@ -20,6 +21,8 @@ jobs:
uses: actions/checkout@v3
- name: Build the stretchoid list
run: ./make-stretchoid.sh
- name: Build the binaryedge list
run: ./make-binaryedge.sh
- name: Post the summary
run: |
git add -A

View File

@ -1,9 +1,11 @@
# Datacenters Network security toolkit
- `stretchoid.txt` (List of all known stretchoid IPs)
- `binaryedge.txt` (List of all known binaryedge IPs)
- `censys-scanner.txt` (List of all IPs declared by censys scanner on their FAQ)
## Other similar projects
- https://github.com/szepeviktor/debian-server-tools/tree/master/security/myattackers-ipsets/ipset
- https://github.com/wravoc/authlog-threats/blob/main/scanners
- https://github.com/stamparm/maltrail/blob/master/trails/static/mass_scanner.txt

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,300 @@
104.131.64.0/18
104.236.192.0/18
104.248.112.0/20
104.248.176.0/20
104.248.192.0/20
104.248.208.0/20
104.248.224.0/20
104.248.64.0/20
104.248.80.0/20
128.199.128.0/18
128.199.128.0/18
128.199.16.0/20
128.199.192.0/18
134.122.16.0/20
134.122.48.0/20
134.122.64.0/20
134.209.0.0/20
134.209.144.0/20
134.209.160.0/20
134.209.16.0/20
134.209.176.0/20
134.209.176.0/20
134.209.208.0/20
134.209.48.0/20
137.184.112.0/20
137.184.128.0/20
137.184.144.0/20
137.184.160.0/20
137.184.160.0/20
137.184.16.0/20
137.184.176.0/20
137.184.176.0/20
137.184.192.0/20
137.184.208.0/20
137.184.224.0/20
137.184.240.0/22
137.184.244.0/22
137.184.248.0/22
137.184.252.0/24
137.184.252.0/24
137.184.254.0/24
137.184.254.0/24
137.184.48.0/20
138.197.112.0/20
138.197.128.0/20
138.197.144.0/20
138.197.160.0/20
138.197.16.0/20
138.197.192.0/20
138.197.208.0/20
138.197.208.0/20
138.197.80.0/20
138.68.0.0/20
138.68.160.0/20
138.68.16.0/20
138.68.176.0/20
138.68.224.0/20
138.68.240.0/20
138.68.240.0/20
138.68.40.0/21
138.68.48.0/20
138.68.80.0/20
139.59.176.0/20
139.59.52.0/22
139.59.56.0/21
139.59.64.0/20
139.59.64.0/20
139.59.80.0/20
139.59.96.0/20
142.93.112.0/20
142.93.160.0/20
142.93.16.0/20
142.93.176.0/20
142.93.32.0/20
142.93.64.0/20
142.93.80.0/20
143.110.128.0/20
143.110.160.0/20
143.110.192.0/20
143.110.208.0/20
143.198.128.0/20
143.198.160.0/20
143.198.16.0/20
143.198.192.0/20
143.198.208.0/20
143.198.208.0/20
143.198.224.0/20
143.198.240.0/22
143.198.240.0/22
143.198.244.0/22
143.198.244.0/22
143.198.248.0/22
143.198.248.0/22
143.198.32.0/20
143.198.48.0/20
143.198.64.0/20
143.198.80.0/20
143.198.80.0/20
143.198.96.0/20
146.190.200.0/22
146.190.204.0/22
146.190.208.0/20
146.190.208.0/20
146.190.240.0/20
146.190.80.0/20
147.182.144.0/20
147.182.192.0/20
157.230.112.0/20
157.230.112.0/20
157.230.128.0/20
157.230.128.0/20
157.230.128.0/20
157.230.144.0/20
157.230.144.0/20
157.230.144.0/20
157.230.160.0/20
157.230.160.0/20
157.230.16.0/20
157.230.176.0/20
157.230.192.0/22
157.230.196.0/22
157.230.224.0/20
157.230.64.0/22
157.230.68.0/22
157.230.80.0/20
157.245.128.0/20
157.245.160.0/20
157.245.176.0/20
157.245.192.0/20
157.245.224.0/20
157.245.64.0/20
159.203.0.0/20
159.203.112.0/20
159.203.112.0/20
159.203.128.0/20
159.203.128.0/20
159.203.144.0/22
159.203.148.0/22
159.203.152.0/22
159.203.156.0/22
159.203.160.0/20
159.203.16.0/20
159.203.176.0/20
159.203.192.0/20
159.203.208.0/20
159.203.224.0/20
159.203.240.0/20
159.203.32.0/20
159.203.48.0/22
159.203.64.0/20
159.203.64.0/20
159.203.80.0/20
159.223.0.0/20
159.223.112.0/20
159.223.192.0/20
159.223.208.0/20
159.223.224.0/20
159.223.240.0/22
159.223.244.0/22
159.223.248.0/22
159.223.96.0/20
159.223.96.0/20
159.65.192.0/20
159.65.212.0/22
159.65.216.0/21
159.65.216.0/21
159.65.224.0/20
159.65.64.0/20
159.65.80.0/20
159.65.96.0/20
159.89.112.0/20
159.89.128.0/20
159.89.144.0/20
159.89.252.0/22
159.89.32.0/20
159.89.60.0/24
159.89.61.0/24
159.89.62.0/24
159.89.63.0/24
159.89.64.0/20
159.89.96.0/20
161.35.128.0/20
161.35.128.0/20
161.35.144.0/20
161.35.144.0/20
161.35.224.0/20
161.35.32.0/20
161.35.32.0/20
161.35.96.0/20
162.243.160.0/20
164.92.128.0/20
165.22.128.0/20
165.22.128.0/20
165.22.144.0/20
165.22.144.0/20
165.22.160.0/20
165.22.224.0/20
165.22.240.0/20
165.22.32.0/20
165.22.64.0/20
165.227.128.0/20
165.227.160.0/20
165.227.16.0/20
165.227.224.0/20
165.227.252.0/22
165.227.32.0/20
165.227.48.0/20
165.227.48.0/20
165.227.80.0/20
165.22.80.0/20
165.22.96.0/20
165.232.48.0/20
167.172.112.0/20
167.172.192.0/20
167.172.208.0/20
167.172.208.0/20
167.172.224.0/20
167.172.240.0/20
167.172.32.0/20
167.172.48.0/20
167.71.112.0/20
167.71.112.0/20
167.71.128.0/20
167.71.144.0/20
167.71.176.0/20
167.71.176.0/20
167.71.48.0/20
167.71.64.0/20
167.71.80.0/20
167.71.96.0/20
167.99.128.0/20
167.99.160.0/20
167.99.176.0/20
167.99.32.0/20
167.99.96.0/20
174.138.100.0/22
174.138.104.0/22
174.138.108.0/22
174.138.120.0/22
174.138.124.0/22
174.138.64.0/20
174.138.64.0/20
174.138.80.0/20
178.128.0.0/20
178.128.112.0/20
178.128.176.0/20
178.128.176.0/20
178.128.192.0/20
178.128.224.0/20
178.128.240.0/20
178.128.32.0/20
178.128.64.0/20
178.62.0.0/18
178.62.128.0/18
178.62.192.0/18
188.166.128.0/22
188.166.132.0/22
188.166.136.0/22
188.166.140.0/22
188.166.144.0/20
188.166.160.0/21
188.166.168.0/21
188.166.168.0/21
188.166.176.0/20
188.166.192.0/22
188.166.196.0/22
188.166.64.0/18
192.34.57.0/24
192.81.216.0/22
206.189.160.0/20
206.189.16.0/20
206.189.192.0/20
206.189.192.0/20
206.189.208.0/20
206.189.32.0/20
206.189.32.0/20
206.189.64.0/20
208.68.39.0/24
209.38.192.0/19
24.199.112.0/20
45.55.32.0/19
45.55.64.0/19
64.225.112.0/20
64.225.32.0/20
64.225.48.0/20
64.225.64.0/20
64.226.96.0/20
64.227.160.0/20
64.227.16.0/20
64.227.48.0/20
64.227.80.0/20
68.183.0.0/20
68.183.128.0/20
68.183.144.0/20
68.183.160.0/20
68.183.192.0/20
68.183.252.0/22
68.183.64.0/20
68.183.96.0/20
69.55.49.0/24

22
make-binaryedge.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
REV="v-$(date --iso-8601=seconds)"
cd ./digitalocean/
# With failure handling
cat binaryedge_digitalocean_possible_ips.txt | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' 1> binaryedge_revisions/$REV.txt
grep -F "binaryedge" binaryedge_revisions/$REV.txt | sort -V > binaryedge_revisions/$REV.sorted.txt
mv binaryedge_revisions/$REV.sorted.txt binaryedge_revisions/$REV.txt
# Reverse the file
awk -F'#' '{print $2" # "$1}' OFS=, "binaryedge_revisions/$REV.txt" | awk '{$1=$1;print}' | sort > binaryedge_revisions/$REV-reversed.txt
# Sort by name and reverse the list to build the list of all possible IPs
cat binaryedge_revisions/v*-reversed.txt | LC_ALL=C.UTF-8 sort -t "-" -n | uniq | awk -F'#' '{print "# "$1" \n "$2}' OFS='#' | awk '{$1=$1;print}' > ../binaryedge.txt
grep -F '#' ../binaryedge.txt | cut -d ' ' -f 3 | sort | cut -d. -f-1 | rev | cut -d '-' -f2- | rev | sort | uniq -c | sort > ./binaryedge-chunk-counts.txt
# Search for false positives
# cat ../binaryedge.txt | cut -d '#' -f 1 | xargs -P 50 -I {} bash -c 'set -eu;rev="$(dig @9.9.9.9 +short +time=1 +tries=1 -x {})"; if [[ "$rev" == *";;"* ]]; then sleep 1; rev="$(dig @8.8.8.8 +short +time=1 +tries=1 -x {})"; fi; echo "{} # $rev";' | grep -v -F "binaryedge.com"