-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathloop.sh
More file actions
35 lines (25 loc) · 1.05 KB
/
loop.sh
File metadata and controls
35 lines (25 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#automate running of sslscan (or basically anything else if you replace sslscan with whatevers in your path you wanna iterate)
#based on https://unix.stackexchange.com/questions/7011/how-to-loop-over-the-lines-of-a-file
#usage is ./sslscan.sh <inputfile>
#can pipe output wherever
#expand cidr with nmap
#nmap -sL -n -iL $file | grep 'Nmap scan report for' | cut -f 5 -d ' '
#!/bin/bash
IFS=$'\n' # make newlines the only separator
set -f # disable globbing
while IFS= read -r line; do
#set up a case here for cmdline switch?
#sslscan an ip
#sslscan "$line"
#curl an ip (or list of urls) and intercept with a local proxy like burp
#curl --get --insecure --proxy 127.0.0.1:8080 $line
#run enum4linux
#enum4linux $line
#test for tcp timestamps
#hping3 -S -c 2 $line -p 445 --tcp-timestamp
#Responder's RunFinger.py with greppable output
#./RunFinger.py -g -i $line
#chromium web screenshot
#chromium --headless --disable-gpu --screenshot https://$line
wait
done < "$1"