Skip to content

Instantly share code, notes, and snippets.

View KonradIT's full-sized avatar

Konrad Iturbe KonradIT

View GitHub Profile

DJI camera activation

1. The tell: an unactivated camera announces itself, once a second

From the moment the BLE link is up, an unactivated camera pushes an unsolicited 0x00/0x32 frame at 1 Hz and does not stop until it is activated. In the capture that is 156 pushes, from 0.000s to 156.104s, and then nothing for the remaining 383 seconds. The push ceasing is the completion signal — there is no separate "done" frame.

AppName AppPackageName Color
GMAIL com.google.android.gm #FF0000
GOOGLE_SEARCH com.google.android.googlequicksearchbox #0055FF
WHATS_APP com.whatsapp #00AA00
HANGOUTS com.google.android.talk #00AA55
PLAY_STORE com.android.vending #00AA55
FACEBOOK_MESSENGER com.facebook.orca #0055FF
ANDROID_EMAIL com.android.email #FF5500
GOOGLE_CALENDAR com.google.android.calendar #0055FF
TELEGRAM org.telegram.messenger #00AAFF
from bs4 import BeautifulSoup
import requests
browserstorage = {
"fccid.io": {
"cookies": {
},
"headers": {
@KonradIT
KonradIT / download_concurrent.go
Created December 17, 2022 16:17
Download files off of GoPro concurrently
package main
import (
"io"
"log"
"net/http"
"os"
"path/filepath"
"strconv"
"sync"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@KonradIT
KonradIT / autelnfz.json
Created March 7, 2022 23:44
Autel No Fly Zones
This file has been truncated, but you can view the full file.
{
"code": 1,
"data": {
"action": "fetchNoflyzoneInfo",
"msg": "fetch No-fly zone Info success.",
"synctime": 1573651180,
"noflyzones": [{
"continent": "Asia",
"country": "China",
"city": "喀什市",
Video: 2.7K 60
Video: 2.7K 50
Video: 2.7K 30
Video: 2.7K 25
Video: 2.7K 24
Video: 2.7K 60
Video: 2.7K 60 (H.264)
Video: 2.7K 50
Video: 2.7K 50 (H.264)
Video: 2.7K 30
// Copyright 2004-present Facebook. All Rights Reserved.
// Generated by com.facebook.crudolib.sqliteproc.codegenerator.generators.schemavalidation
// Learn more: https://fburl.com/sqlite-build-time-checks
// @generated
// This is generated code -- do not modify manually.
{
"filename" : "com/facebook/stella/database/model/StellaDatabase_SerializedDb.json",
"tables" : {
@KonradIT
KonradIT / osmoaction2prollysux.py
Created October 1, 2020 17:06
dji you think u're slick eh
import json
import requests
import time
headers = {}
s = requests.Session()
def has_posted_in(user, sub, contains):
posted=False
<?xml version="1.0" encoding="utf-8"?>
<device>
<info>
<dev_type>X5</dev_type>
<dev_version>X20160126V03</dev_version>