This file contains 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
#!/bin/bash | |
set -u; | |
root="/opt/permission-tester/"; | |
output=`mktemp -t permission-tester.XXXXXXXXXX`; | |
#-------------------------------------------------- | |
# Check excluded folders exist, and are noexec | |
#-------------------------------------------------- |
This file contains 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
<?php | |
$characters = []; | |
for ($k = 0; $k < 500000; $k++) { | |
$key = base64_encode(random_bytes(32)); // 32 bytes results in "=" padding; try changing to 30 to fix. | |
foreach (str_split($key) as $c) { | |
if (!isset($characters[$c])) { |