Skip to content

Instantly share code, notes, and snippets.

View 0xroot-bf's full-sized avatar
🎯
Focusing

Sebas 0xroot-bf

🎯
Focusing
View GitHub Profile
Host: hackerone.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:61.0) Gecko/20100101 Firefox/61.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: https://hackerone.com/users/sign_in
content-type: application/json
x-auth-token: ----
origin: https://hackerone.com
Content-Length: 794
<?xml version="1.0" encoding="utf-8"?>
<Client name="Sony Bravia 2013 KDL-42W805A">
<!-- Author: PayLb. based on original profile from PLex Inc. Sony 2010-2013.
Also used:
- http://kb.sony-europe.com/SRVS/CGI-BIN/WEBCGI.EXE?St=332,E=0000000000126929163,Key=215,SXI=14,Case=obj(26884)
- Thanks to https://forums.plex.tv/index.php/topic/42523-writing-profiles-for-dlna-devices/
- Supported by Bravia KDL-42W705B codecs http://pdf.crse.com/manuals/14HE334111/EN/codeclist.html#10
-->
<!-- Identification: how Plex Media Server recognizes a device, given an incoming HTTP request.-->
function dex-method-count() {
cat $1 | head -c 92 | tail -c 4 | hexdump -e '1/4 "%d\n"'
}
function dex-method-count-by-package() {
dir=$(mktemp -d -t dex)
baksmali $1 -o $dir
for pkg in `find $dir/* -type d`; do
smali $pkg -o $pkg/classes.dex
count=$(dex-method-count $pkg/classes.dex)
name=$(echo ${pkg:(${#dir} + 1)} | tr '/' '.')