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
| function randomUUID() { | |
| return randhex(8) + "-" + randhex(4) + "-4" + randhex(3) + "-" + choice(["8", "9", "a", "b"]) + randhex(3) + "-" + randhex(12); | |
| } | |
| let scratchTarr = new Uint32Array(1); | |
| function choice(arr) { | |
| crypto.getRandomValues(scratchTarr); | |
| return arr[Math.floor(scratchTarr[0]%arr.length)] | |
| } | |
| function randhex(count) { | |
| crypto.getRandomValues(scratchTarr); |
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
| socat TCP-LISTEN:<localport> SOCKS4A:localhost:<host>:<remoteport>,socksport=9050 | |
| # for example, to ssh into secret.shell.server.org via tor, do: | |
| $ socat TCP-LISTEN:22222 SOCKS4A:localhost:secret.shell.server.org:22,socksport=9050 & | |
| $ ssh localhost -p 22222 |