-
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
36 changed files
with
418 additions
and
56 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 |
---|---|---|
|
@@ -11,3 +11,9 @@ https://github.com/kornelski/7z | |
7z x <file>.7z | ||
``` | ||
|
||
### Readable formats | ||
``` | ||
vmdk | ||
vhdx | ||
``` | ||
|
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,24 @@ | ||
### Source | ||
https://github.com/knavesec/CredMaster | ||
|
||
### Start password spray (-t threads, -m minimum jitter seconds, -j jitter, -d minute delay between pws) | ||
``` | ||
python3 credmaster.py --access_key <key> --secret_access_key "<secret>" --plugin <plugin> --url "https://<domain>" -u <userList> -p <passwordList> -a <useragentList> -o <outFile> --region <region> --passwordsperdelay 1 -t 1 -m 30 -j 60 -d 180 | ||
``` | ||
|
||
### Plugins | ||
``` | ||
ADFS - Active Directory Federation Services | ||
AzureSSO - Azure AD Seamless SSO Endpoint | ||
AzVault - AzVault Module, Azure spray point different to MSOL/AzureSSO | ||
EWS - Exchange Web Services | ||
FortinetVPN - Fortinet VPN Client | ||
HTTPBrute - Generic HTTP Brute Methods (Basic/Digest/NTLM) | ||
MSGraph - MSGraph Module, msgraph spray point for azure and MSOL credentials | ||
MSOL - Microsoft Online | ||
O365Enum - Office365 User Enum (No Authentication Request) | ||
O365 - Office365 - DEPRECATED | ||
Okta - Okta Authentication Portal | ||
OWA - Outlook Web Access | ||
``` | ||
|
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,8 @@ | ||
### Source | ||
https://github.com/fortra/impacket/blob/master/examples/dpapi.py | ||
|
||
### Decrypt using Data Protection API | ||
``` | ||
dpapy.py unprotect -file <file> -key <key> | ||
``` | ||
|
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,10 +1,15 @@ | ||
### Remove all files with a specific extension | ||
``` | ||
find . -type f -name "*.<bak>" -exec rm -f {} \; | ||
find . -type f -name "*.<txt>" -exec rm -f {} \; | ||
``` | ||
|
||
### Remove empty directories (f for files) | ||
``` | ||
find . -type d -empty -delete | ||
``` | ||
|
||
### Find biggest files | ||
``` | ||
find . -type f -exec ls -lh {} + | awk '{ print $9 ": " $5 }' | sort -k2,2h | tail -n 10 | ||
``` | ||
|
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,5 @@ | ||
### Get dependencies of binary | ||
``` | ||
ldd <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 |
---|---|---|
|
@@ -6,6 +6,6 @@ lsof -Pnl +M -i6 | |
|
||
### Get information for specific port number | ||
``` | ||
lsof -i :33991 | ||
lsof -i :<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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
### Install client | ||
``` | ||
apt install postgresql-client | ||
``` | ||
|
||
### Change user password | ||
``` | ||
sudo -i -u postgres | ||
psql | ||
\password postgres | ||
``` | ||
|
||
### Create database | ||
``` | ||
createdb <database> | ||
``` | ||
|
||
### Dump database | ||
``` | ||
pg_dump -h <host> -p -d <database> -U <user> -W | ||
``` | ||
|
||
### Import | ||
``` | ||
psql -h localhost -U postgres -f <file> | ||
``` | ||
|
||
### Restore archive | ||
``` | ||
pg_restore -h localhost -U postgres -d <database> <file> | ||
``` | ||
|
||
### Show databases | ||
``` | ||
\list | ||
``` | ||
|
||
### Connect to database | ||
``` | ||
\c <database> | ||
``` | ||
|
||
### Show tables | ||
``` | ||
\dt | ||
``` | ||
|
||
### Dump | ||
``` | ||
SELECT * FROM <table> | ||
``` | ||
|
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,5 @@ | ||
### Install | ||
``` | ||
apt install iproute2 | ||
``` | ||
|
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 |
---|---|---|
|
@@ -228,3 +228,8 @@ zg | |
zw | ||
``` | ||
|
||
### Replace last / of each line with - | ||
``` | ||
:%s/\(.*\)\(\/\)/\1-/g | ||
``` | ||
|
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,23 @@ | ||
### Bucket data | ||
``` | ||
/?versions - metadata about all versions of the objects inside | ||
/?uploads - lists of in-progress multipart uploads | ||
``` | ||
|
||
# Storage class for upload influences price | ||
* https://aws.amazon.com/s3/pricing | ||
|
||
``` | ||
aws s3 cp <file> "s3://<bucketname>/<file>" --storage-class <class> | ||
``` | ||
|
||
### Check if bucket belongs to a user ID (incorrect ID results in access denied error) | ||
``` | ||
curl -X GET "https://<bucketname>.amazonaws.com/" -H "x-amz-expected-bucket-owner: <ownerId>" | ||
``` | ||
|
||
### Get canonical user ID from bucket (resolve canonical ID to account ID by placing it inside an IAM policy) | ||
``` | ||
curl "https://<bucketname>.amazonaws.com?fetch-owner=true" | ||
``` | ||
|
Oops, something went wrong.