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. …
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. …
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
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’
1). Spin up t2.medium in AL23 in x subnet, put into Security Group that has 22 and 3000 open to connect to 2). Assign elastic IP 3). Install Docker 4). …
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; …
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 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) = ”; …
From Powershell 1Remove-Item -LiteralPath ‘folder’ -Force -Recurse
The HSTS header can be added to AWS ELB applications through the Application Load Balancer. 1. Locate the Application Load Balancer in AWS Control Panel 2. Find the HTTPS listener …
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
