Rotate AWS Keys

1). Create a new key in IAM console 2). use Cloud Trail to log the use of the old key Go to the CloudTrail console. Click Trails > Create trail. …

Fixing Broken Links WordPress

Using the wp-cli 1234567curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar php wp-cli.phar –info chmod +x wp-cli.phar sudo mv wp-cli.phar /usr/local/bin/wp wp –info cd /var/www/html/ wp search-replace ‘192.168.10.100’ ‘www.itsmetor.com’ –all-tables

OpenALPR Car Check API

To test the OpenALPR Car Check API via Powershell: 1curl -X POST -F image=’RTW7125.jpg’ ‘https://api.openalpr.com/v3/recognize?recognize_vehicle=1&country=us&secret_key=sk_secret’

Fix WordPress Site URL

You change the site url in WordPress and then cannot get the site to load at all. Revert it in the database. 123456789101112mysql -u *YOURDBUSERNAME* -p > *YOURPASSWORD* show databases; …

List Domain Joined Servers

1234567891011121314151617181920212223242526272829303132333435363738394041424344# =========================================================================== # This script pulls a list of all domain joined servers and prints the # last connected time.  The server is in red if this time is older …

Search tables for value

Search for any column in any table that has a specific value where the column is a specific data type 12345678910111213DECLARE @SearchGUID UNIQUEIDENTIFIER = ‘BF3CBDB9-39A9-487D-8754-FC4120E4D993’; DECLARE @SQL NVARCHAR(MAX) = ”; …

Test HSTS

How to manually test to see if HSTS is enabled on a web server 12~$ curl -s -D- https://owasp.org | grep -i strict-transport-security: Strict-Transport-Security: max-age=31536000 https://owasp.org/www-project-web-security-testing-guide/latest/4-Web_Application_Security_Testing/02-Configuration_and_Deployment_Management_Testing/07-Test_HTTP_Strict_Transport_Security