Skip to content

Instantly share code, notes, and snippets.

@danylokos
danylokos / qmi_uim_apdu.txt
Created January 23, 2019 13:49
QMI UIM APDU example, iPhone 6 iOS 9.0, Qualcomm MDM9625 4.01.00
QMI UIM APDU example
iPhone 6 iOS 9.0, Qualcomm MDM9625 4.01.00
REQ:
open logical channel on slot 01 width AID a0:00:00:00:87:10:02 (07 bytes) (3GPP USIM AID)
01 1b 00 00 0b 02 00 04 00 3f 00 0f 00 01 01 00 | .........?......
@danylokos
danylokos / Info.plist
Created December 28, 2016 09:47
Disable iOS ATS
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
#!/usr/bin/python
# Usage:
# send_apn.py --dev --token=$DEVICE_TOKEN --message='Hello World!' --payload='{"foo": "bar"}'
from optparse import OptionParser
import json, binascii, struct, socket, ssl
parser = OptionParser()
parser.add_option("--dev", action="store_true", dest="dev", default=False, help="use development certificate and sandbox")
#!/usr/bin/env bash
# OpenSSL
# https://github.com/x2on/OpenSSL-for-iPhone
# boost
# https://gist.github.com/faithfracture/c629ae4c7168216a9856
echo "Cleaning up..."
rm -rf bin/
#!/usr/bin/env bash
echo "Cleaning up..."
rm -rf bin/ src/
echo "Copying sources..."
mkdir src/
find SSLKillSwitch -type f \( -name "*.h" -o -name "*.m" -o -name "*.c" \) -exec cp {} src/ \;
BIN_NAME="SSLKillSwitch2.dylib"