Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
ID="CLIENT_ID_FROM_API_MANAGER"
KEY="CLIENT_SECRET_FROM_API_MANAGER"
if [ ! -d "$HOME/gdrive" ]; then
mkdir ~/gdrive
fi
sudo apt install software-properties-common dirmngr -y
@Blankwonder
Blankwonder / gist:cd9fa1987e41cf1a1f1df50583ba1d9c
Created November 14, 2017 04:48
client-side SSL/TLS certificate validation
[Proxy]
TestTLS = https, 192.168.20.6, 443, client-cert=item
[Keystore]
item = password=123456, base64=MIILqQIBAzCCC28GCSqGSIb3DQEHAaCCC2AEggtcMIILWDCCBg8GCSqGSIb3DQEHBqCCBgAwggX8AgEAMIIF9QYJKoZIhvcNAQcBMBwGCiqGSIb3DQEMAQYwDgQIh4LPGCPkcqkCAggAgIIFyDOP/a/YB66H0jctVC5/D3ZF98es9Xtf60hqDokaekMp7VlKhr7EEvf1GrmxOY9XqO1dSR0F2C17yefazR7lZVDwfmNvU8eEpIPrBAnqSnCFyMZGXjcu9aoEySkwRlSclqg9lbFhp9XZG4F4qRuo94mlTPDy47dvdzyiPAQPBIq2DOE/qbRVHqrbnZMkUZi1lxihRRcQv7YJAfLEP2VHffjZTYzlBMi/ldKyD4ZQdpM7mdBtHXFa21ZV9j4oqM2PWWToHwIxkeiS6J2SgfEg501QEy4kbihlp+pSK4OMrj33DrVFP9rOMDnkJtQ+EP0LXXQBaF+7rRp+dekcH+sYBQF0cDMhNEkHEBL8LoQ96hZxIDxE3YQ6fq9KGi4TV8Ktkgb2l0G5DoavN8dhCKS5Gx0nexDT8vj91Js94Xt4tFThSyoc4ZmZvN+b2ugqVvYsnWaKqS8UeAjIAFsZCiLgj4OG6frrAxI+V3c8kL9FrwfFQcL9eWoqVfhBv8SKzMYObTv9FwyJn/fyGdtoT19OpyWiP1+nU+WY7e5KjcJNsKeYolgpgHDXdOSYCakQfesENeeKqvzMA6Quj7g7gZl/AB/GjRybyAXfkxyYBLk5cz7MuDcM1nk6DR47IuHBHyrwOATXyejWYrlK0QUVUsFEmM2vjl38jU8+qxjVWDTFu3gQkFBERncJp1XnKSTueDEPkdeq1BzV1SZ1m1KHNPNI4h2lPa+IKvpYbnDure9n1VV7fk2ySJrBFT5pYonXdpyaCTAvTEFk
@Proteas
Proteas / xnu-4570.1.46-arm64-steps.txt
Created October 9, 2017 02:46
steps to build arm64 version of xnu-4570.1.46
Following are my steps to build the ARM64 version of xnu-4570.1.46, hope this is helpfull for saving time.
1. Use Xcode 9.0
2. Preparation is same as macOS, and there is a guide: https://0xcc.re/building-xnu-kernel-macosx-sierrra-10-12-x/
3. There is an ARM64 version libfirehose: https://github.com/Proteas/install_firehose_lib
4. Copy and edit the ARM64 config(CFLAGS, LDFLAGS) from darwin-on-arm/xnu to your target project
5. Example CFLAGS: -Darm64 -DARM64 -D__arm64__ -D__ARM64__ -DLP64 -DCONFIG_EMBEDDED -mkernel -DARM64_BOARD_CONFIG_T8011=1
6. Fix compiling stage errors by directly importing the missing headers or editing the code
7. Fix linking stage errors by implementing place holder funcitons for: chudxnu_cpu_alloc, etc
8. If missing symbol __divti3 in linking stage, get the runtime from llvm.
@z448
z448 / safaribook-videos.sh
Created November 20, 2016 19:18
list paths to all video files in iOS SafariQueue app
#!/bin/bash
for i in `find ~/*/Data/A* -name ".com*"`;do if [[ `cat $i|grep iQ` ]]; then find `dirname $i` -name '*.mp4'; fi; done
@xymor
xymor / gvt-mtu.js
Last active September 8, 2018 02:47 — forked from anonymous/gvt-mtu.js
script para mudar mtu do roteador GVT
//acessar 192.168.25.1/save_rg_conf.cgi
var objts = {};
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/MaxMTUSize");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='1']/LowerLayers");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/MaxMTUSize");
$.xmo.getValuesTree("Device/IP/Interfaces/Interface[@uid='2']/LowerLayers");
# You can download this config from: http://surge.run/config-example/ios.conf
# Edit with your computer and copy back to iOS device via iTunes, URL, AirDrop
# or iCloud Drive
# Version 2.0
[General]
# Log level: warning, notify, info, verbose (Default: notify)
loglevel = notify
# Skip domain or IP range. These hosts will not be processed by Surge Proxy.
# (In macOS version when Set as System Proxy enabled, these hosts will be
@bshaffer
bshaffer / Drive.php
Created December 28, 2015 19:56
Google Drive API (v3) - PHP
<?php
/*
* Copyright 2010 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
@x56
x56 / serial_keyboard_init.S
Created July 13, 2015 06:28
serial_keyboard_init()
/* refer to osfmk/console/serial_general.c */
.globl _cereal64
_cereal64:
/* do the important parts of serial_keyboard_init() */
stp x20, x19, [sp, #-0x20]!
stp x29, x30, [sp, #0x10]
add x29, sp, #0x20
sub sp, sp, #0x10
@z448
z448 / aplist.sh
Last active May 6, 2017 04:57
shell script for listing app bundle IDs, display names, UUIDs installed applications
#!/bin/bash
#see output in < aplst_setlinks.sh aplst_setvars appList.err appList.log appList.out >
#dep:plutil.pl
dataPath=/var/mobile/Containers/Data/Application
bundlePath=/var/mobile/Containers/Bundle/Application
mcmMetaPrefFile=.com.apple.mobile_container_manager.metadata.plist
itunesMetaPrefFile=iTunesMetadata.plist
myAppLinksFolder=/var/mobile/applinks
exec > >(tee appList.log)
@dev-zzo
dev-zzo / sagem-router-root-pass-gen.py
Created January 8, 2015 12:16
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator
"""
SAGEM ROUTER FAST 3304/3464/3504 - telnet root password generator.
Work based on: http://1337day.com/exploit/16687
"""
import sys