From 264894e595466d50684de618d027ead86629e9c5 Mon Sep 17 00:00:00 2001 From: ed Date: Mon, 16 Jan 2023 21:46:11 +0000 Subject: [PATCH] add cursed usecases --- docs/cursed-usecases/README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 docs/cursed-usecases/README.md diff --git a/docs/cursed-usecases/README.md b/docs/cursed-usecases/README.md new file mode 100644 index 00000000..c8ec17cd --- /dev/null +++ b/docs/cursed-usecases/README.md @@ -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`