Note: I did not author this, i found it somehwere.
- Tools
- Most common paths to AD compromise
- [GPO - Pivoting with Local Admin
FILE SPACING: | |
# double space a file | |
sed G | |
# double space a file which already has blank lines in it. Output file | |
# should contain no more than one blank line between lines of text. | |
sed '/^$/d;G' |
Note: I did not author this, i found it somehwere.
If you need to decomission a node the first thing you should do is transfer all shards from it to other nodes
This command will tell ElasticSearch to:
#!/usr/bin/env python | |
# prints all the records in all the zones in colums separated by ','. | |
# It uses raw mode to handle pagination to iterate over zones and records | |
import CloudFlare | |
separator="," | |
cf = CloudFlare.CloudFlare(token='REPLACE_WITH_YOUR_OWN_CF_TOKEN', raw=True) | |
per_page = 10 |
link to project home: https://github.com/n1nj4sec/pupy
Modify pupy.conf Under the section starting with [aliases] you can add them
[aliases]
#!/bin/sh | |
# for testing EDR | |
VERSION="ng" | |
ADVISORY="This script should be used for authorized penetration testing and/or educational purposes only. Any misuse of this software will not be the responsibility of the author or of any other collaborator. Use it at your own computers and/or with the computer owner's permission." | |
########################################### | |
#-------) Checks pre-everything (---------# | |
########################################### | |
if ([ -f /usr/bin/id ] && [ "$(/usr/bin/id -u)" -eq "0" ]) || [ "`whoami 2>/dev/null`" = "root" ]; then | |
IAMROOT="1" |