generation 486 25.11.20250714.62e0f05

This commit is contained in:
2025-08-04 22:31:49 -04:00
parent 5f41363bf2
commit f6f3887d18
7 changed files with 52 additions and 1 deletions

View 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 -- .

View 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"

View 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

View 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

View File

@@ -0,0 +1 @@
docker run --rm -it -v "$PWD:/pwd" trufflesecurity/trufflehog:latest filesystem .