-
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
23 changed files
with
222 additions
and
18 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
### Install | ||
``` | ||
sudo apt-get install libffi-dev | ||
pipx install bofhound | ||
``` | ||
|
||
### Convert LDAP search results to bloodhound JSON | ||
``` | ||
bofhound --input <ldapSearchFile> --output <resultDirectory> | ||
``` | ||
|
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
### Install | ||
``` | ||
go install github.com/sensepost/gowitness@latest | ||
``` | ||
|
||
### Take single screenshot | ||
``` | ||
gowitness --delay 15 --timeout 30 single --screenshot-path <pathToOutDir> <url> | ||
``` | ||
|
||
### Create multiple screenshots using proxy | ||
``` | ||
gowitness --proxy socks5://127.0.0.1:9050 --delay 15 --timeout 30 --screenshot-path <pathToOutDir> --threads 2 file -f <pathToUrls> | ||
``` | ||
|
||
### List reachable hosts | ||
``` | ||
gowitness report list | ||
``` | ||
|
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,8 @@ | ||
### Source | ||
https://github.com/fortra/impacket/blob/master/examples/netview.py | ||
|
||
### List remote sessions | ||
``` | ||
netview.py -noloop '<user>:<password>' -target <rhost> | ||
``` | ||
|
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,20 +1,32 @@ | ||
### Install | ||
``` | ||
apt install ldap-utils | ||
``` | ||
|
||
### Basic request (works unauthenticated, -L = dont print LDIF version, -s scope of search) | ||
``` | ||
ldapsearch -LLL -x -H ldap://<domainController> -b '' -s base '(objectclass=*)' | ||
``` | ||
|
||
### Get all domain joined operating systems (-z result limit, -x simple auth, -W prompt for password, -D binddn, -b basedn) | ||
### Get information about single user (-b searchbase) | ||
``` | ||
ldapsearch -H ldap://<domainController> -D "<user>@<domain>" -w '<password>' -b "dc=<domainComponent>,dc=<domainComponent>,dc=<domainComponent>" "(sAMAccountName=<user>)" | ||
``` | ||
|
||
### Filter | ||
``` | ||
ldapsearch -H ldap://<domainController> -z none -x -W -D "<user>@<domain>" -b "dc=<domainComponent>,dc=<domainComponent>" "(objectclass=computer)" "DNSHostName" "OperatingSystem" | ||
"(objectclass=computer)" "DNSHostName" "OperatingSystem" | ||
"(objectclass=user)" | ||
"(&(<condition1>)(<condition2>))" | ||
``` | ||
|
||
### Get information about all user objects | ||
### Reference error troubleshooting | ||
``` | ||
ldapsearch -H ldap://<domainController> -z none -x -W -D "<user>@<domain>" -b "dc=<domainComponent>,dc=<domainComponent>" "(objectclass=user)" | ||
RefErr: DSID-0310079C -> wrong DN/searchbase (incorrect domain controller or incorrect searchbase) | ||
``` | ||
|
||
### Logical AND (use | for OR) (use ! NEGATION) | ||
### Certificate error troubleshooting | ||
``` | ||
ldapsearch -H ldap://<domainController> -z none -x -W -D "<user>@<domain>" -b "dc=<domainComponent>,dc=<domainComponent>" "(&(<condition1>)(<condition2>))" | ||
LDAPTLS_REQCERT=never | ||
``` | ||
|
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,5 @@ | ||
### Convert filesize to humand readable formant | ||
``` | ||
numfmt --to=iec-i --suffix=B <size> | ||
``` | ||
|
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,8 @@ | ||
### Source | ||
https://github.com/haad/proxychains | ||
|
||
### Needs socks5 instead of socks4 | ||
``` | ||
proxychains -f <file> | ||
``` | ||
|
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,5 @@ | ||
### Restores arrow key function for reverse shells | ||
``` | ||
rlwrap nc -lvp <port> | ||
``` | ||
|
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,14 @@ | ||
### Show table structure | ||
``` | ||
sqlite3 <file>.sqlite | ||
sqlite> .tables | ||
``` | ||
|
||
### Dump content of table | ||
``` | ||
sqlite> .headers on | ||
sqlite> .output <outputFile>.txt | ||
sqlite> SELECT * FROM <table>; | ||
sqlite> .exit | ||
``` | ||
|
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
Oops, something went wrong.