├── README.md └── subjsfinder.sh /README.md: -------------------------------------------------------------------------------- 1 | # subjsfinder 2 | Send output from subjs to LinkFinder 3 | 4 | # Usage 5 | If you have a file called urls.txt you would provide it to the script using the following syntax: 6 | 7 | ``` 8 | cat urls.txt | subjsfinder.sh 9 | ``` 10 | 11 | # subjs Download 12 | https://github.com/C0RB3N/subjs 13 | 14 | https://github.com/GerbenJavado/LinkFinder 15 | -------------------------------------------------------------------------------- /subjsfinder.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | file_lines=$(cat $1) 3 | echo "Running LinkFinder over these urls..." 4 | 5 | for line in $file_lines 6 | do 7 | if [[ "$line" == "http"* ]] 8 | then 9 | if [[ $(wget $line -O-) ]] 2>/dev/null 10 | then 11 | linkfinder -i `echo $line` -o $(echo `pwd`)"/"$(echo `echo "$line"` | md5sum | sed -e 's/^\(.\{32\}\).*/\1/')".html" &>/dev/null 12 | echo $line 13 | fi 14 | else 15 | if [[ $(wget http://$line -O-) ]] 2>/dev/null 16 | then 17 | linkfinder -i `echo http://$line` -o $(echo `pwd`)"/"$(echo `echo "$line"` | md5sum | sed -e 's/^\(.\{32\}\).*/\1/')".html" &>/dev/null 18 | echo "http://$line" 19 | fi 20 | if [[ $(wget https://$line -O-) ]] 2>/dev/null 21 | then 22 | linkfinder -i `echo https://$line` -o $(echo `pwd`)"/"$(echo `echo "$line"` | md5sum | sed -e 's/^\(.\{32\}\).*/\1/')".html" &>/dev/null 23 | echo "https://$line" 24 | fi 25 | fi 26 | done 27 | echo "Done!" 28 | --------------------------------------------------------------------------------