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.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user