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
# resize the virtual attached disks | |
# List block storage devices | |
lsblk | |
# List file systems | |
df -Th |
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
#!/usr/bin/env bash | |
set -eu | |
# Variables | |
LOG_PATH="/home/www-upload/update_magento_varnish_config.log" | |
MAGENTO_PATH="/var/www/html/current" | |
# Get Webscale App Servers | |
APP_SERVERS=$(webscale-cli apps servers) |
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
#!/usr/bin/env bash | |
set -eu | |
# ---------------------------------------- | |
# Variables | |
# ---------------------------------------- | |
INSTALL_DIR="/var/www/html" | |
SHARED_DIR="/var/www/shared/html" | |
TIMESTAMP=$(date -u +"%Y%m%dT%H%M%SZ") |
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
# AWS | |
# https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html | |
curl http://169.254.169.254/latest/dynamic/instance-identity/document | |
# Azure | |
curl http://169.254.169.254/metadata/v1/InstanceInfo | |
# GCP | |
# https://cloud.google.com/compute/docs/storing-retrieving-metadata#querying | |
curl -H "Metadata-Flavor: Google" "http://metadata.google.internal/computeMetadata/v1/instance/machine-type" |
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
#!/usr/bin/env bash | |
set -eu | |
######################################## | |
## Introduction | |
######################################## | |
HELP_INFO=$(cat <<'CONTENTS_HEREDOC' | |
sitecheck v0.1 |
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
# List all symlinks recursively | |
find . -type l -ls | |
find . -maxdepth 1 -type l -ls | |
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
# Find the installed path for the package | |
pip show gitman | |
cd /usr/local/lib/python3.7/site-packages | |
# install gitman from | |
pip install git+ssh://[email protected]/mttjohnson/gitman.git@feature/repo-rebuild | |
# If you've hacked up what is currently installed, you may need to uninstall and reinstall | |
pip uninstall gitman |
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
https://null-byte.wonderhowto.com/how-to/crack-shadow-hashes-after-getting-root-linux-system-0186386/ | |
cat /etc/shadow | |
root:$1$/avpfBJ1$x0z8w5UF9Iv./DR9E9Lid.:14747:0:99999:7::: | |
daemon:*:14684:0:99999:7::: | |
bin:*:14684:0:99999:7::: | |
sys:$1$fUX6BPOt$Miyc3UpOzQJqz4s5wFD9l0:14742:0:99999:7::: | |
sync:*:14684:0:99999:7::: | |
cat hashes.txt |
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
# https://github.com/sensiolabs/security-checker | |
# Uses Security Check Web service (https://security.symfony.com/) and Security Advisories Database (https://github.com/FriendsOfPHP/security-advisories) | |
curl -o security-checker https://get.sensiolabs.org/security-checker.phar | |
chmod +x ./security-checker | |
./security-checker security:check current/composer.lock | |
# MageReport | |
# https://www.magereport.com |
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
# http://www.chkrootkit.org/download/ | |
# http://www.chkrootkit.org/README | |
# Commands to download file, and then upload to server after validating it | |
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.tar.gz | |
wget ftp://ftp.pangeia.com.br/pub/seg/pac/chkrootkit.md5 | |
cat chkrootkit.md5 | |
md5sum chkrootkit.tar.gz | |
scp chkrootkit.tar.gz [email protected]:~/ |