Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. curl -s https://www.whoismyisp.org | grep -o -P '(?<=is).*(?=In some)'
  2.  
  3. curl -s https://www.whoismyisp.org/ip/xxx.xxx.xxx.xxx | grep -o -P '(?<=is).*(?=In some)'
  4.  
  5. dig +short myip.opendns.com @resolver1.opendns.com
  6.  
  7. $ curl ipinfo.io
  8. {
  9. "ip": "xxx.xxx.xxx.xxx",
  10. "hostname": "xxxxxxxxxxxxxxxxxxxxxxxxxxx.xx",
  11. "city": "xxxxxxxx",
  12. "region": "xxxxxxxxxx",
  13. "country": "xx",
  14. "loc": "xxx.xxxx,xxx.xxxx",
  15. "org": "xxxxxxxxxxxx",
  16. "postal": "xxxxx"
  17. }
  18.  
  19. curl ipinfo.io/org
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement