This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
which jq 1> /dev/null || echo "Please install 'jq' before using this script" | exit 1 | |
which curl 1> /dev/null || echo "Please install 'curl' before using this script" | exit 1 | |
which wget 1> /dev/null || echo "Please install 'wget' before using this script" | exit 1 | |
for device in $(curl https://api.ipsw.me/v4/devices | jq | grep "\"identifier\": \".*[0-9]*,[0-9]*\"," | cut -d':' -f2 | cut -d'"' -f2); do | |
URL="https://img.appledb.dev/device@main/$device/0.png" | |
wget -O $device.png $URL && echo "$device at $URL done" | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install \ | |
build-essential \ | |
checkinstall \ | |
git \ | |
autoconf \ | |
automake \ | |
libtool-bin \ | |
libssl-dev \ | |
libusb-1.0-0-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import argparse | |
def remove_duplicates(json_data): | |
for vulnerability in json_data['vulnerabilities']: | |
affects = vulnerability['affects'] | |
unique_affects = [] | |
seen_refs = set() | |
for affect in affects: |