Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| howtos [2023-05-13 00:27] – [Booting GRUB from an ISO image] asdf | howtos [2024-03-10 00:10] (current) – [Add Linux swap space] asdf | ||
|---|---|---|---|
| Line 28: | Line 28: | ||
| To have the swap automount on boot, add the following to ''/ | To have the swap automount on boot, add the following to ''/ | ||
| - | <file> | + | <code> |
| /swapfile swap swap defaults 0 0 | /swapfile swap swap defaults 0 0 | ||
| - | </file> | + | </code> |
| ===== Boot an ISO from GRUB ===== | ===== Boot an ISO from GRUB ===== | ||
| Line 53: | Line 53: | ||
| Note that the [[GreatFET]] has Facedancer capabilities, | Note that the [[GreatFET]] has Facedancer capabilities, | ||
| - | ===== Log keys in Python | + | ===== Make an ethernet loopback connector |
| - | Let's say you need to hand your computer over to someone you don't fully trust and want to check on their usage afterward. Requires | + | This trick works with either a socket or a plug. Connect |
| - | <code python> | + | * 1 <-> 3 |
| - | from pynput.keyboard import Key, Listener | + | * 2 <-> 6 |
| - | import logging | + | * 4 <-> 7 |
| + | * 5 <-> 8 | ||
| - | logging.basicConfig(filename=(" | + | ===== Mount an ext4 drive in WSL2 ===== |
| + | Open a PowerShell window as an administrator, | ||
| - | def on_press(key): | + | <code powershell> |
| - | | + | GET-CimInstance -query " |
| - | + | ||
| - | with Listener(on_press=on_press) as listener: | + | |
| - | listener.join() | + | |
| </ | </ | ||
| + | |||
| + | Locate the desired entry, then attach it to the WSL instance: | ||
| + | |||
| + | <code powershell> | ||
| + | wsl --mount \\.\PHYSICALDRIVE2 | ||
| + | </ | ||
| + | |||
| + | Finally, locate and mount the disk within the WSL instance. | ||
| + | |||
| + | https:// | ||
| ===== Fake a document scan ===== | ===== Fake a document scan ===== | ||
| ===== Create a reverse SSH connection ===== | ===== Create a reverse SSH connection ===== | ||