Skip to content

Instantly share code, notes, and snippets.

View topiga's full-sized avatar
🙇‍♂️
Studying

Théo FORTIN topiga

🙇‍♂️
Studying
View GitHub Profile
@topiga
topiga / fix_trivy_duplicate_5796.py
Created April 25, 2024 14:07
Tricy CycloneDX Duplicate Removal Tool. Fixes temporarily https://github.com/aquasecurity/trivy/issues/5796
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:
@topiga
topiga / install_libimobiledevice.sh
Last active March 17, 2024 19:17
Install libimobiledevice on Debian
apt-get install \
build-essential \
checkinstall \
git \
autoconf \
automake \
libtool-bin \
libssl-dev \
libusb-1.0-0-dev
@topiga
topiga / dw_idevice_img.sh
Created June 21, 2023 10:58
Download images of every iDevice with ipsw
#!/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