# sudo add-apt-repository ppa:wireguard/wireguard
# sudo apt-get update
# sudo apt-get install wireguard
This file contains 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
## just find the pid of the shell | |
[root]> ps -aux | grep bash | |
user 28202 0.0 0.1 4464 3696 pts/0 Ss+ 10:26 0:00 -bash | |
root 28227 0.0 0.1 4360 3760 pts/1 Ss 10:26 0:00 -bash | |
root 28855 0.0 0.0 3044 884 pts/1 S+ 11:13 0:00 grep bash | |
## then call the oneline command | |
## strace -p<pid> -s9999 -e write 2>&1 | python -c "import sys,re;[print(re.sub(r'write\(\d,\s\"(.+)\",\s\d+\)\s+=\s+\d+$|^---.+$', r'\1', line).replace('\n', '').encode('utf-8').decode('unicode_escape'), end='', flush=True) for line in sys.stdin]" | |
strace -p28202 -s9999 -e write 2>&1 | python -c "import sys,re;[print(re.sub(r'write\(\d,\s\"(.+)\",\s\d+\)\s+=\s+\d+$|^---.+$', r'\1', line).replace('\n', '').encode('utf-8').decode('unicode_escape'), end='', flush=True) for line in sys.stdin]" | |
strace: Process 28202 attached |
The official installation guide (https://wiki.archlinux.org/index.php/Installation_Guide) contains a more verbose description.
- Image from https://www.archlinux.org/
I hereby claim:
- I am wargio on github.
- I am der0ad (https://keybase.io/der0ad) on keybase.
- I have a public key whose fingerprint is 16D2 1F3F FFC6 D07A 233D 7F7D BAB3 FDCF 8315 7E41
To claim this, I am signing this object:
This file contains 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 java.io.IOException; | |
import java.util.Set; | |
import javafx.application.Application; | |
import javafx.scene.*; | |
import javafx.scene.layout.StackPane; | |
import javafx.scene.web.WebEngine; | |
import javafx.scene.web.WebView; | |
import javafx.stage.Stage; | |
import javafx.collections.ListChangeListener; |
This file contains 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
#!/bin/bash | |
PORT_FOUND="0" | |
PORT=0 | |
if [ $# -eq 1 ]; then | |
echo "I'm testing the port" | |
for port in `seq 1 65535`; do | |
echo "port=" $port | |
./hb-test.py $1 -p $port -P >> /dev/null | |
if [ $? -eq 0 ]; then |