Advertisement
guyrleech

Show Details for External IP Address

Jan 4th, 2022
1,577
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $address = Invoke-WebRequest -Uri https://icanhazip.com | select-object -expand content
  2.  
  3. Invoke-WebRequest -Uri "https://rest.db.ripe.net/search.json?type-filter=inetnum&type-filter=organisation&type-filter=person&query-string=$address&source=ripe&source=apnic-grs&source=arin-grs&source=afrinic-grs&source=lacnic-grs&source=jpirr-grs&source=radb-grs"|select -ExpandProperty Content|ConvertFrom-Json|select -ExpandProperty objects|select -ExpandProperty object|select -ExpandProperty attributes|select -ExpandProperty attribute|Where Name -ne remarks
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement