diff options
author | Ivan Nardi <12729895+IvanNardi@users.noreply.github.com> | 2022-07-27 11:46:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 11:46:45 +0200 |
commit | d8d525fff2dc34db62de2598767046de813e4f0d (patch) | |
tree | 7765f694052f5ce12c9fd8e4d483524892052bcd /utils | |
parent | ab3a678ad423fcd431037093220a145925f64148 (diff) |
Update the protocol bitmask for some protocols (#1675)
Tcp retransmissions should be ignored.
Remove some unused protocol bitmasks.
Update script to download Whatsapp IP list.
Diffstat (limited to 'utils')
-rwxr-xr-x | utils/whatsapp_ip_addresses_download.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/whatsapp_ip_addresses_download.sh b/utils/whatsapp_ip_addresses_download.sh index 7234906d6..f36f4fed3 100755 --- a/utils/whatsapp_ip_addresses_download.sh +++ b/utils/whatsapp_ip_addresses_download.sh @@ -11,7 +11,7 @@ IP_LINK_URL='https://developers.facebook.com/docs/whatsapp/guides/network-requir echo "(1) Scraping Facebook WhatsApp IP Adresses and Ranges..." -ORIGIN="$(curl -s "${IP_LINK_URL}" | sed -ne 's/.*<a href="\([^"]*\)" target="_blank">List of the WhatsApp server IP addresses and ranges (.zip file)<\/a>.*/\1/gp' | sed -e 's/\&/\&/g')" +ORIGIN="$(curl -s "${IP_LINK_URL}" | sed -ne 's/.*<a href="\([^"]*\)" target="_blank">WhatsApp server IP addresses and ranges (.zip file)<\/a>.*/\1/gp' | sed -e 's/\&/\&/g')" echo "(2) Downloading file... ${ORIGIN}" http_response=$(curl -s -o $TMP -w "%{http_code}" ${ORIGIN}) @@ -21,7 +21,7 @@ if [ "$http_response" != "200" ]; then fi echo "(3) Processing IP addresses..." -zcat $TMP > $LIST +unzip -p /tmp/wa.zip "WhatsApp IPs (IPv4 Only) 2022-07-26 - 2022-07-30.txt" > $LIST ./ipaddr2list.py $LIST NDPI_PROTOCOL_WHATSAPP > $DEST rm -f $TMP $LIST |