Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # regex ile splunk.com subdomainlerinin
- # IP adreslerini bulmak
- SITE='splunk.com'
- DOSYA='splunk.txt'
- wget $SITE -O $DOSYA -q
- if [ ! -f $DOSYA ]
- then
- echo "Site indirilemedi!"
- else
- echo ">> IP adresleri:"
- cat $DOSYA |
- grep -iEo "([a-z0-9-]*\.splunk\.com)" |
- sort |
- uniq |
- xargs -l host -4 |
- grep -iEo "([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3})" |
- sort -r |
- uniq
- fi
Add Comment
Please, Sign In to add comment