{"id":34903999,"url":"https://github.com/0xsbow/pscan","last_synced_at":"2026-05-22T08:07:07.687Z","repository":{"id":329798801,"uuid":"1087300942","full_name":"0xsbow/PScan","owner":"0xsbow","description":"A lightweight, efficient port scanner for authorized network testing written in PowerShell.","archived":false,"fork":false,"pushed_at":"2025-10-31T17:52:54.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-23T07:48:14.376Z","etag":null,"topics":["portscan","portscanner","portscanning","powershell","powershell-portscanner","powershell-script","scanning"],"latest_commit_sha":null,"homepage":"","language":"PowerShell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xsbow.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-31T17:24:34.000Z","updated_at":"2025-10-31T18:05:11.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/0xsbow/PScan","commit_stats":null,"previous_names":["0xsbow/pscan"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/0xsbow/PScan","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsbow%2FPScan","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsbow%2FPScan/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsbow%2FPScan/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsbow%2FPScan/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xsbow","download_url":"https://codeload.github.com/0xsbow/PScan/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xsbow%2FPScan/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33334778,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-21T12:23:38.849Z","status":"online","status_checked_at":"2026-05-22T02:00:06.671Z","response_time":265,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["portscan","portscanner","portscanning","powershell","powershell-portscanner","powershell-script","scanning"],"created_at":"2025-12-26T09:38:47.699Z","updated_at":"2026-05-22T08:07:07.667Z","avatar_url":"https://github.com/0xsbow.png","language":"PowerShell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PScan - PowerShell Port Scanner\n\nA lightweight, efficient port scanner for authorized network testing written in PowerShell.\n\n## Features\n\n- Scan single IP or multiple IPs from a file\n- Support for custom ports, port ranges, and common port presets\n- Batch processing with configurable delays\n- Multiple export formats (CSV, TXT, JSON)\n- Colored console output\n- Verbose and quiet modes\n\n## Installation\n\n1. clone the repository or download the project zip file\n```\ngit clone https://github.com/Sid-Bahuguna/PScan.git\n```\n2. No additional dependencies required - uses native PowerShell\n\n## Usage\n\n### Basic Syntax\n\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target \u003cIP\u003e -Ports \u003cports\u003e [options]\n```\n\n### Quick Start Examples\n\n```powershell\n# Scan a single host using top 100 common ports\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 10.16.10.236 -Ports top100\n\n# Scan a hosts file, save results to a TXT file\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts-192-range -Ports top100 -OutTxt results.txt\n```\n\n### Scan Single IP\n\n```powershell\n# Scan default ports (22,80,443)\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1\n\n# Scan specific ports\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports \"22,80,443,8080\"\n\n# Scan port range\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports \"20-1024\"\n\n# Scan top 100 common ports\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100\n\n# Scan top 1000 common ports\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top1000\n```\n\n### Scan Multiple IPs\n\n```powershell\n# Scan hosts from file with top 100 ports\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts.txt -Ports top100\n\n# Scan multiple IPs with custom port range\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile network-hosts.txt -Ports \"1-1024\"\n\n# Scan with custom batch settings for large networks\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts.txt -Ports top100 -BatchSize 20 -BatchDelaySeconds 3\n```\n\n### Port Presets\n\n- **Custom ports:** `\"22,80,443,8080\"`\n- **Port range:** `\"1-1024\"`\n- **Top 100 ports:** `top100`\n- **Top 1000 ports:** `top1000`\n- **All ports:** `all` (1-65535, use with caution)\n\n### Export Results\n\n```powershell\n# Export to CSV\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100 -OutCsv results.csv\n\n# Export to JSON\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100 -OutJson results.json\n\n# Export to TXT\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100 -OutTxt results.txt\n\n# Export to multiple formats simultaneously\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts.txt -Ports top1000 -OutCsv scan.csv -OutJson scan.json -OutTxt scan.txt\n```\n\n### Advanced Options\n\n```powershell\n# Verbose output (show all port checks in real-time)\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100 -Verbose\n\n# Quiet mode (suppress console output except errors)\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1 -Ports top100 -Quiet -OutCsv results.csv\n\n# Custom batch settings for large-scale scans\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts.txt -Ports top100 -BatchSize 20 -BatchDelaySeconds 10\n\n# NoProfile flag for faster execution\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 10.16.10.236 -Ports \"22,80,443,3389\"\n\n# Comprehensive scan with verbose output and CSV export\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile enterprise-hosts.txt -Ports top1000 -Verbose -OutCsv enterprise-scan.csv -BatchSize 15\n```\n\n## Examples\n\n### Example 1: Quick Single Host Scan\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 10.16.10.236 -Ports top100\n```\n\n### Example 2: Scan Multiple Hosts from File\n```powershell\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile hosts-192-range -Ports top100 -OutTxt results.txt\n```\n\n### Example 3: Enterprise Network Scan with CSV Export\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile enterprise-network.txt -Ports top1000 -OutCsv network-audit.csv -BatchSize 25 -BatchDelaySeconds 8\n```\n\n### Example 4: Verbose Scan with All Output Formats\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.100 -Ports \"1-1000\" -Verbose -OutCsv scan.csv -OutJson scan.json -OutTxt scan.txt\n```\n\n### Example 5: Silent Batch Scan for Automation\n```powershell\npowershell.exe -NoProfile -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile critical-servers.txt -Ports \"22,80,443,3389,8080\" -Quiet -OutJson daily-scan.json\n```\n\n### Example 6: Web Server Discovery\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -HostsFile datacenter-hosts.txt -Ports \"80,443,8080,8443\" -OutCsv webservers.csv\n```\n\n### Example 7: Custom Port Range Scan\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 10.0.0.50 -Ports \"20-25,80,443,3389,5900-5910\" -Verbose\n```\n\n## Output Format\n\n### Console Output\n```\nIP            OpenPorts\n--            ---------\n192.168.1.1   22,80,443\n192.168.1.2   80,8080\n```\n\n### CSV Output\n```csv\nIP,OpenPorts\n192.168.1.1,\"22,80,443\"\n192.168.1.2,\"80,8080\"\n```\n\n### JSON Output\n```json\n[\n  {\n    \"IP\": \"192.168.1.1\",\n    \"OpenPorts\": \"22,80,443\"\n  }\n]\n```\n\n## Performance Tips\n\n- Use smaller batch sizes (`-BatchSize 5-10`) for faster networks with low latency\n- Increase `BatchDelaySeconds` (10-15 seconds) if experiencing network throttling or rate limiting\n- Use port presets (`top100`, `top1000`) instead of `all` for faster scans\n- For large scans, use `-Quiet` mode with file export to reduce console overhead\n- Use `-NoProfile` flag for faster PowerShell startup time\n- Scan during off-peak hours for large enterprise networks\n- Test connectivity with `ping` before running large scans\n\n## Security Notice\n\n⚠️ **Important:** This tool is intended for authorized network testing only. Only scan systems you own or have explicit permission to test. Unauthorized port scanning may be illegal in your jurisdiction.\n\n## Troubleshooting\n\n### Execution Policy Error\n```powershell\npowershell -ExecutionPolicy Bypass -File .\\PScan.ps1 -Target 192.168.1.1\n```\n\n### No Results Displayed\n- Check if target is reachable: `ping \u003ctarget\u003e`\n- Try with verbose mode: `-Verbose`\n- Verify ports are actually open\n\n### Firewall Blocking\nSome corporate firewalls may block outbound connection attempts. Run from a trusted network segment.\n\n## License\n\nThis tool is provided as-is for authorized security testing purposes only.\n\n## Contributing\n\nFor bugs, feature requests, or contributions, please contact Sidharth Bahuguna.\n\n---\n\n**Remember:** Always obtain proper authorization before scanning any network or system.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsbow%2Fpscan","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xsbow%2Fpscan","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xsbow%2Fpscan/lists"}