Advertisement
yakar

CSR / Hazırlık Ödevi 3 (cisco.com subdomainlerin ipleri)

Mar 25th, 2016
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. # regex kullanmadan cisco.com subdomainlerinin
  2. # IP adreslerini bulmak | one line
  3.  
  4. wget -q "cisco.com" -O cisco.txt;
  5. cat cisco.txt |
  6. grep "cisco.com" |
  7. cut -d '/' -f3 |
  8. grep "cisco.com" |
  9. sort |
  10. uniq |
  11. grep -v "\"" |
  12. while read LINE; do host -4 "$LINE" >> ipler.txt; done;
  13. cat ipler.txt |
  14. cut -d ' ' -f4 |
  15. grep -v "alias" |
  16. grep -v "address" |
  17. grep -v "handled" |
  18. sort |
  19. uniq
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement