mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 00:52:16 -06:00
add cursed usecases
This commit is contained in:
parent
5bb9f56247
commit
264894e595
22
docs/cursed-usecases/README.md
Normal file
22
docs/cursed-usecases/README.md
Normal file
|
@ -0,0 +1,22 @@
|
|||
insane ways to use copyparty
|
||||
|
||||
|
||||
## wireless keyboard
|
||||
|
||||
problem: you wanna control mpv or whatever software from the couch but you don't have a wireless keyboard
|
||||
|
||||
"solution": load some custom javascript which renders a virtual keyboard on the upload UI and each keystroke is actually an upload which gets picked up by a dummy metadata parser which forwards the keystrokes into xdotool
|
||||
|
||||
[no joke, this actually exists and it wasn't even my idea or handiwork (thx steen)](https://github.com/9001/copyparty/blob/hovudstraum/contrib/plugins/meadup.js)
|
||||
|
||||
|
||||
## appxsvc tarpit
|
||||
|
||||
problem: `svchost.exe` is using 100% of a cpu core, and upon further inspection (`procmon`) it is `wsappx` desperately trying to install something, repeatedly reading a file named `AppxManifest.xml` and messing with an sqlite3 database
|
||||
|
||||
"solution": create a virtual filesystem which is intentionally slow and trick windows into reading it from there instead
|
||||
|
||||
* create a file called `AppxManifest.xml` and put something dumb in it
|
||||
* serve the file from a copyparty instance with `--rsp-slp=9` so every request will hang for 9 sec
|
||||
* `net use m: http://127.0.0.1:3993/` (mount copyparty using the windows-native webdav client)
|
||||
* `mklink /d c:\windows\systemapps\microsoftwindows.client.cbs_cw5n1h2txyewy\AppxManifest.xml m:\AppxManifest.xml`
|
Loading…
Reference in a new issue