All gists

Last active 3 weeks ago

bash <(curl -fsSL https://gist.veru.se/Veruse/fix-wp-permissions/raw/HEAD/fix-wp-permissions.sh)

0 0 1
1 #!/usr/bin/env bash
2 #
3 # fix-wp-permissions.sh — reset file and folder permissions on a WordPress install.
4 #
5 # Defaults (WordPress-recommended):
6 # directories 755
7 # files 644
8 # wp-config.php 640 (use --strict for 600)
9 # .htaccess 644
10 # wp-content/uploads writable by the web server group (775 dirs / 664 files) with --group-write
Last active 1 month ago

bash <(curl -fsSL https://gist.veru.se/Veruse/87653b8402024210986ecec3c826e1b9/raw/HEAD/redirect-checker.sh)

0 0 1
1 #!/usr/bin/env bash
2 #
3 # check_redirects.sh - Follow and report HTTP redirect chains (max 10 hops).
4 #
5 # Run straight from a gist (it will ask for the URLs):
6 # bash <(curl -fsSL https://gist.veru.se/Veruse/87653b8402024210986ecec3c826e1b9/raw/HEAD/redirect-checker.sh)
7 # curl -fsSL https://gist.veru.se/Veruse/87653b8402024210986ecec3c826e1b9/raw/HEAD/redirect-checker.sh | bash
8 #
9 # Arguments/flags work if you want to skip the prompts:
10 # bash <(curl -fsSL URL) https://a.com https://b.com
Last active 1 month ago

bash <(curl -fsSL https://gist.veru.se/Veruse/cpanel-ftp-audit/raw/HEAD/cpanel-ftp-audit.sh)

0 0 1
1 #!/usr/bin/env bash
2 #
3 # cpanel-ftp-audit.sh
4 #
5 # FTP login history, failed logins and file transfers for EVERY FTP account
6 # under a cPanel user: the main login, the <user>_logs account and all FTP
7 # sub-accounts (name@domain). Works with Pure-FTPd and ProFTPD.
8 #
9 # Usage (as root):
10 # bash cpanel-ftp-audit.sh [-v] [cpanel_username]