This file contains hidden or 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
Acronyms: | |
ASN: Autonomous System Number (map to network providers) | |
DLP: Data Loss Prevention | |
EDR: Endpoint Detection and Response | |
EP: Endpoint Protection | |
NSM: Network Security Monitoring | |
UEBA: User/Entity Behavior Analytics | |
C&C control planes: | |
https://github.com/byt3bl33d3r/gcat |
This file contains hidden or 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
#### Comment Spam prevention | |
# Disable comments on all blogs | |
site_list=`wp site list | cut -f 1 | grep -v blog` | |
for U in $site_list; do wp db query "update wp_${U}_options set option_value='closed' where option_name='default_comment_status';" ; done | |
for U in $site_list; do wp db query "update wp_${U}_options set option_value=0 where option_name='close_comments_days_old';" ; done | |
This file contains hidden or 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
import xmltodict | |
import pprint | |
with open('.local/share/rhythmbox/rhythmdb.xml') as F: | |
rhythmdb = xmltodict.parse(F.read()) | |
stations = sorted( [(E['title'], E['location']) for E in rhythmdb['rhythmdb']['entry'] if E['@type'] == 'iradio'] ) | |
pp = pprint.PrettyPrinter(width=240) | |
pp.pprint(stations) |
OlderNewer