A PowerShell script to analyze active network connections, extract public IPs, and check their reputation using VirusTotal and ipinfo.io.
- Extracts foreign IPs from current TCP connections
- Filters out private/local IP ranges
- Uses
ipinfo.ioto retrieve ISP, region, and country info - Uses
VirusTotalAPI to analyze IP reputation - Color-coded output:
- β Green for clean IPs
- β Red if IP has a negative reputation
- PowerShell (Windows)
- Internet access
- A free VirusTotal API Key
- Clone the repository:
git clone https://github.com/YamiNoKen/foreign_IP_Checker.git cd vt-ip-checker - Open VT_ip_checker.ps1 in a text editor.
- Paste your VirusTotal API key into the $apiKey variable.
Run the script from PowerShell: .\VT_ip_checker.ps1
It will:
- Display each public IP found
- Show details from ipinfo.io
- Show detection counts and reputation score from VirusTotal
This project is licensed under the MIT License.