Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/bin/bash | |
| # === INFO === | |
| # altnetworking.sh | |
| # Description: Run the specified application in a custom networking environment. | |
| # Uses cgroups to run process(es) in a network environment of your own choosing (within limits!) | |
| VERSION="0.2.0" | |
| # Author: John Clark | |
| # adapted for cgroups v2 by Anselm Kruis | |
| # Requirements: Debian 11 bullseye | 
If you, like me, resent every dollar spent on commercial PDF tools,
you might want to know how to change the text content of a PDF without
having to pay for Adobe Acrobat or another PDF tool. I didn't see an
obvious open-source tool that lets you dig into PDF internals, but I
did discover a few useful facts about how PDFs are structured that
I think may prove useful to others (or myself) in the future. They
are recorded here. They are surely not universally applicable --
the PDF standard is truly Byzantine -- but they worked for my case.
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | #!/usr/bin/env bash | |
| [[ $EUID -ne 0 ]] && exec sudo $0 -- $@ | |
| set -e | |
| command=${2:-help} | |
| port=${3:-1024} | |
| CHNROUTE_FILE="`dirname "$0"`/chnroute.txt" | |
| IGNORE_FILE="`dirname "$0"`/ignore.txt" | 
- Install qemu-user-static (
yay -S qemu-user-static).- This might need you to install 
pcre-staticand update PGP keys (follow the tips in the comments here). 
 - This might need you to install 
 - If not already present, install 
systemd-binfmt, the revamped version ofbinfmt-supporttools- Your system has to support transparent Qemu user emulation, but fortunately, that is mostly enabled once the steps here have been followed.
 
 - Check the status of the 
systemd-binfmtunit (systemctl status systemd-binfmt) and (re)start if needed (sudo systemctl restart systemd-binfmt)- This unit has ARM support by default, but check the current documentation to make install it if needed
 
 - Mount the root partition of the ARM system into a folder (for e.g., 
sudo mount /dev/sdb2 arm_mountpoint) - Copy the QEMU ARM static binary (
/usr/bin/qemu-arm-staticon my distro) to the mounted root directory'susr/bin 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | version: '3' | |
| services: | |
| traefik: | |
| restart: unless-stopped | |
| image: traefik:v2.0.2 | |
| ports: | |
| - "80:80" | |
| - "443:443" | |
| labels: | |
| - "traefik.http.services.traefik.loadbalancer.server.port=8080" | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | tvOS 10: 1080p + H.264 | |
| http://a1.phobos.apple.com/us/r1000/000/Features/atv/AutumnResources/videos/entries.json | |
| tvOS 11: 1080p/4K + SDR/HDR + HEVC | |
| https://sylvan.apple.com/Aerials/2x/entries.json | |
| https://t27q97zg19.execute-api.us-east-1.amazonaws.com/prod/aerialAltJSON/4kEntites.json | |
| tvOS 12: 4K + SDR/HDR + HEVC, 1080p + H.264, localised descriptions | |
| https://sylvan.apple.com/Aerials/resources.tar | 
NewerOlder