Skip to content

Instantly share code, notes, and snippets.

e.generateSignedJWT = function(t, c, s, v) {
var p;
return n.async(function(h) {
for (; ; )
switch (h.prev = h.next) {
case 0:
return h.next = 2,
n.awrap(l.default.getPrivateKey(c));
case 2:
return p = h.sent,
import cbor2
from cose.algorithms import Es256
from cose.headers import Algorithm, KID
from cose.keys.keyparam import EC2KP, EC2KpCurve, EC2KpD, EC2KpX, EC2KpY, KpKeyOps, KpKty
from cose.keys.keytype import KtyEC2
from cose.messages import Sign1Message
from cose.keys import CoseKey, keyops, curves
from binascii import unhexlify, hexlify
from pprint import pprint
{
"trace": {
"children": [
{
"message": "Using query profile 'default' of type 'root'"
},
{
"message": "Resolved properties:\nmaxHits: 1000 (from query profile 'default')\n"
},
{
<?xml version="1.0" encoding="utf-8" ?>
<hosts>
<host name='vespa-0.vespa-internal.default.svc.cluster.local'><alias>admin0</alias><alias>container0</alias><alias>content0</alias></host>
<host name='vespa-content-0.vespa-internal.default.svc.cluster.local'><alias>content1</alias></host>
<host name='vespa-container-0.vespa-internal.default.svc.cluster.local'><alias>container1</alias></host>
<host name='vespa-container-1.vespa-internal.default.svc.cluster.local'><alias>container2</alias></host>
</hosts>
<?xml version='1.0' encoding='UTF-8'?>
<!-- Copyright 2019 Oath Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. -->
<services version="1.0">
<admin version='2.0'>
<adminserver hostalias="admin0"/>
<configservers>
<configserver hostalias="admin0"/>
</configservers>
</admin>
@wabzqem
wabzqem / gist:e4673da2d9da0de95cd1924511e21811
Last active December 5, 2020 05:08
Slack feature flags
var classname = "Slack.FeatureFlagManager";
var classmethod = "- isFeatureEnabled:";
var methodsignature = "(bool) - isFeatureEnabled:(pointer)";
try {
var hook = ObjC.classes['Slack.FeatureFlagManager']['- isFeatureEnabled:'];
//(bool) - isFeatureEnabled:(pointer)
Interceptor.attach(hook.implementation, {
onEnter: function (args) {
send("[Call_Stack]\nClass: " + classname + "\nMethod: " + methodsignature + "\n");
function launchInfoViewController() {
ObjC.schedule(ObjC.mainQueue, function() {
var application = ObjC.classes.UIApplication.sharedApplication();
var viewController = application.keyWindow().rootViewController();
viewController.presentedViewController().performSegueWithIdentifier_sender_("HomeToDebugSegue", NULL);
});
}
// Sloppy and good enough. Wait for the Main VC to be presented.
setTimeout(launchInfoViewController, 7000);
default 16:56:57.404645+1000 bluetoothd ShouldScan=1 AnyValidScanRequests=1 anyValidScanRequestInPaused=0 fObserverState=Active
default 16:56:57.405077+1000 bluetoothd ScanParams:AD:0 AS:0 MSL:4 (30/300) PSV:0 [com.apple.sharingd-central-68-107 SO:0 AP:0 AD:0(30/300) AS:0 RAS:0 DMN:1 FG:0 ADVBF:0] | AD:0 AS:0 MSL:4 (30/300) PSV:0 [com.apple.bluetoothd-central-85-0 SO:0 AP:0 AD:0(30/300) AS:0 RAS:0 DMN:1 FG:0 ADVBF:0] | AD:0 AS:0 MSL:4 (30/300) PSV:0 [au.gov.health.covidsafe-central-774-105 SO:0 AP:0 AD:0(0/0) AS:0 RAS:0 DMN:0 FG:0 ADVBF:0] |
default 16:56:57.405322+1000 bluetoothd Returning scan parameters: Main:30.00ms/300.00ms LP:0.00ms/300.00ms(unsupported) Dm:(m:30/300) Cond:0:1:0 Sc:1:0 (passive) Dupfilter:Enabled minScanLevel:4
default 16:56:57.405570+1000 bluetoothd needToRestart=0
default 16:57:59.586122+1000 bluetoothd ShouldScan=1 AnyValidScanRequests=1 anyValidScanRequestInPaused=0 fObserverState=Active
default 16:57:59.586411+1000 bluetoothd ScanParams:AD:0 AS:0 MSL:4 (30/300) PSV:0 [com.apple.sha
default 16:29:02.135404+1000 bluetoothd Stop scanning for process sharingd (68) with scan request of type 7, blob: {length = 0, bytes = 0x}, mask {length = 0, bytes = 0x}, active: 0, duplicates: 0, screen on: No Scan, screen off: No Scan, locked: 1, rssi: -90, peers: (
) nearby scan mode: 10, adv buf: 0, advbuf mode: 4
default 16:29:02.135592+1000 bluetoothd Removing scan request scan request of type 7, blob: {length = 0, bytes = 0x}, mask {length = 0, bytes = 0x}, active: 0, duplicates: 0, screen on: No Scan, screen off: No Scan, locked: 1, rssi: -90, peers: (
) nearby scan mode: 10, adv buf: 0, advbuf mode: 4 for client 749762CA-5342-4759-A54D-65C18B24174D
default 16:29:02.137482+1000 bluetoothd Passively scanning for devices of types: 18 15 5 (Window: 30/Interval: 300)
default 16:29:02.137968+1000 bluetoothd About to scan for type: 18 - rssi: -100 - range: 0 - payload: {length = 22, bytes = 0x00000000000000000000000000000000000000000000} - mask: {length = 22, bytes = 0x00000000000000000000000000000000000
sqlite> .schema ZENCOUNTER
CREATE TABLE ZENCOUNTER (
Z_PK INTEGER PRIMARY KEY, Z_ENT INTEGER,
Z_OPT INTEGER, ZV INTEGER, ZRSSI FLOAT,
ZTIMESTAMP TIMESTAMP, ZTXPOWER FLOAT,
ZMODELC VARCHAR, ZMODELP VARCHAR,
ZMSG VARCHAR, ZORG VARCHAR
)