-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
197 additions
and
113 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,14 +4,14 @@ git config user.name "r1cksec" | |
git config user.email "[email protected]" | ||
``` | ||
|
||
### Sign files with given key | ||
### List config of current repository | ||
``` | ||
git config --global commit.gpgsign true | ||
git config --list --local | ||
``` | ||
|
||
### List config of current repository | ||
### Sign files with given key | ||
``` | ||
git config --list --local | ||
git config --global commit.gpgsign true | ||
``` | ||
|
||
### Show available tags | ||
|
@@ -89,3 +89,4 @@ git config --global --unset http.proxy | |
### Generate access token | ||
* https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
### Install | ||
``` | ||
apt install guestfish | ||
``` | ||
|
||
### Get filesystem | ||
``` | ||
guestfish --ro -a <file>.vhdx | ||
> run | ||
> list-filesystems | ||
``` | ||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,13 @@ | ||
### Source | ||
https://github.com/stedolan/jq | ||
|
||
### Print one line json file as multiple lines | ||
### Print distinguishedname of bloodhound users | ||
``` | ||
jq <file>.json | ||
cat <userFile>.json | jq '.data[].Properties.distinguishedname | ||
``` | ||
|
||
### Retrieve values from key | ||
### Print attributes of bloodhound user | ||
``` | ||
{ | ||
"pos1": { | ||
"key1": "val1", | ||
"key2": "val2" | ||
}, | ||
"key3": "val3" | ||
} | ||
jq ".pos1 .key1" <file>.json | ||
``` | ||
|
||
### Retrieve multiple values from key | ||
``` | ||
cat <file>.json | jq -r ".pos1 .key1, .key3" | ||
``` | ||
|
||
### Retrieve values from array (example: name of computer from bloodhound json result) | ||
``` | ||
cat <file>.json | jq -r ".data[] .Properties .name" | ||
``` | ||
|
||
### Retrieve multiple values from array | ||
``` | ||
jq ".data[] .Properties | .name, .distinguishedname, .operatingsystem, .serviceprincipalnames" <file>.json | ||
cat <userFile>.json | jq '.data[].Properties | select(.name | ascii_downcase == "<name>")' | ||
``` | ||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
### Install software in dom0 | ||
``` | ||
sudo qubes-dom0-update <packet> | ||
``` | ||
|
||
### Run command on another qube | ||
``` | ||
qvm-run --pass-io <qubeName> '<command>' | ||
``` | ||
|
||
### Copy file to dom0 | ||
``` | ||
qvm-run --pass-io <qubeName> 'cat <file> > <outFile>' | ||
``` | ||
|
||
### Copy file to qube | ||
``` | ||
qvm-copy-to-vm <qubeName> <file> | ||
``` | ||
|
||
### List network information of qube | ||
``` | ||
qvm-ls -n <qubeName> | ||
``` | ||
|
||
### Extend disk space of standalone qube to 30GB | ||
``` | ||
qvm-volume extend <qubeName> 30g | ||
``` | ||
|
||
### Extend initial memory of qube to 8GB | ||
``` | ||
qvm-prefs <qubeName> memory 8000 | ||
``` | ||
|
||
### Extend maximal memory of qube to 8GB | ||
``` | ||
qvm-prefs <qubeName> maxmem 8000 | ||
``` | ||
|
||
### Watch memory usage | ||
``` | ||
xentop | ||
``` | ||
|
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.