generation 486 25.11.20250714.62e0f05
This commit is contained in:
1
home/scripts/security/sg.sh
Normal file
1
home/scripts/security/sg.sh
Normal file
@@ -0,0 +1 @@
|
||||
semgrep --config=p/cwe-top-25 --config=p/owasp-top-ten --config=/home/synchronous/extras/semgrep-rules --exclude '*example*' --exclude '*test*' --severity ERROR -- .
|
||||
33
home/scripts/security/sub-to-ip.sh
Executable file
33
home/scripts/security/sub-to-ip.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 domain.com"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
DOMAIN="$1"
|
||||
OUTPUT_FILE="ips.txt"
|
||||
SUBS_FILE="subs.txt"
|
||||
|
||||
echo "[*] Enumerating subdomains for $DOMAIN..."
|
||||
subfinder -silent -d "$DOMAIN" -o "$SUBS_FILE"
|
||||
|
||||
if [ ! -s "$SUBS_FILE" ]; then
|
||||
echo "[!] No subdomains found or subfinder failed."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "[*] Resolving IPs..."
|
||||
> "$OUTPUT_FILE"
|
||||
|
||||
while read -r sub; do
|
||||
ips=$(dig +short "$sub" | grep -E '^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$')
|
||||
if [ -n "$ips" ]; then
|
||||
for ip in $ips; do
|
||||
echo "[+] $sub resolved to $ip"
|
||||
echo "$ip" >> "$OUTPUT_FILE"
|
||||
done
|
||||
else
|
||||
echo "[-] $sub did not resolve"
|
||||
fi
|
||||
done < "$SUBS_FILE"
|
||||
|
||||
echo "[*] IPs saved to $OUTPUT_FILE"
|
||||
7
home/scripts/security/subenum2.sh
Executable file
7
home/scripts/security/subenum2.sh
Executable file
@@ -0,0 +1,7 @@
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <domain>"
|
||||
echo "Example: $0 example.com"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
subfinder -silent -d $1
|
||||
7
home/scripts/security/testssl.sh
Normal file
7
home/scripts/security/testssl.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
# https://github.com/testssl/testssl.sh
|
||||
if [ -z "$1" ]; then
|
||||
echo "Usage: $0 <domain>"
|
||||
echo "Example: $0 example.com"
|
||||
exit 1
|
||||
fi
|
||||
docker run --rm -it ghcr.io/testssl/testssl.sh $1
|
||||
1
home/scripts/security/truffle.sh
Normal file
1
home/scripts/security/truffle.sh
Normal file
@@ -0,0 +1 @@
|
||||
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest filesystem .
|
||||
Reference in New Issue
Block a user