Some notes and tools for reverse engineering / deobfuscating / unminifying obfuscated web app code.
Today we will be using the Web browser (Google Chrome for Testing 125) as a local HTTP over TCP socket server.
WICG Direct Sockets specifies an API
that provides TCPSocket, UDPSocket, and TCPServerSocket.
In Chromium based browsers, for example Chrome, this capability is exposed in an Isolated Web Apps (IWA).
Previously we have created an IWA that we launch from arbitrary Web sites
with open(),
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
| import requests | |
| import time | |
| import json | |
| token = '' | |
| #Delete files older than this: | |
| ts_to = int(time.time()) - 30 * 24 * 60 * 60 | |
| def list_files(): |
前情提要参见: tuna/collection#217
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
| // ============================================================================= | |
| // XNU kperf/kpc demo | |
| // Available for 64-bit Intel/Apple Silicon, macOS/iOS, with root privileges | |
| // | |
| // | |
| // Demo 1 (profile a function in current thread): | |
| // 1. Open directory '/usr/share/kpep/', find your CPU PMC database. | |
| // M1 (Pro/Max/Ultra): /usr/share/kpep/a14.plist | |
| // M2 (Pro/Max): /usr/share/kpep/a15.plist | |
| // M3: /usr/share/kpep/as1.plist |
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
| // Demo of snapshotting and loading DockState. | |
| // | |
| // The general idea is to allow a user to save their layout and then be able to reload it later. | |
| // For example, in an IDE it might be helpful to have one layout for UI programming (e.g. a render | |
| // window on one side) while more space for terminal output might be preferable in other situations. | |
| // | |
| // Being able to save and load DockState allows quickly swapping between layouts. It also allows | |
| // the program to provide preset layouts that users could choose between. | |
| use eframe::NativeOptions; |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| # change to seperate installation | |
| sudo xcode-select --switch /Library/Developer/CommandLineTools | |
| # change to default installation | |
| sudo xcode-select -s /Applications/Xcode.app/Contents/Developer |
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
| user web; | |
| # One worker process per CPU core. | |
| worker_processes 8; | |
| # Also set | |
| # /etc/security/limits.conf | |
| # web soft nofile 65535 | |
| # web hard nofile 65535 | |
| # /etc/default/nginx |
Simular Guides
- (My) Perfect Gaming VM Setup with GPU Passthrough – Virtualization Server Part 14
- Configuring GPU Passthrough with VFIO on Fedora 30 notes
Usefull Commands
lspci -nnklist pci devicessudo grub2-mkconfig -o /etc/grub2-efi.cfgupdates the grubsudo call-a-friend @ballascalls the best knowledge base, fuck wiki 🤣
NewerOlder