{"id":19207655,"url":"https://github.com/gill-singh-a/port-scanner","last_synced_at":"2025-02-23T06:44:22.125Z","repository":{"id":152459706,"uuid":"626100044","full_name":"Gill-Singh-A/Port-Scanner","owner":"Gill-Singh-A","description":"Scans for Open ports in the given IPv4 Targets using TCP Protocol","archived":false,"fork":false,"pushed_at":"2024-07-31T19:06:05.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-04T15:41:46.668Z","etag":null,"topics":["multiprocessing","network","port-scanner","ports","python","python-3","scanner","scapy","socket","tcp"],"latest_commit_sha":null,"homepage":"","language":"Python","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/Gill-Singh-A.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}},"created_at":"2023-04-10T19:51:23.000Z","updated_at":"2024-07-31T19:06:09.000Z","dependencies_parsed_at":null,"dependency_job_id":"ca663e14-d9fd-4307-9c90-4bad492ffd27","html_url":"https://github.com/Gill-Singh-A/Port-Scanner","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Gill-Singh-A%2FPort-Scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Gill-Singh-A","download_url":"https://codeload.github.com/Gill-Singh-A/Port-Scanner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240280835,"owners_count":19776414,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["multiprocessing","network","port-scanner","ports","python","python-3","scanner","scapy","socket","tcp"],"created_at":"2024-11-09T13:21:42.114Z","updated_at":"2025-02-23T06:44:22.097Z","avatar_url":"https://github.com/Gill-Singh-A.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Port Scanner\nScans for Open ports in the given IPv4 Targets using TCP Protocol\n\n## Requirements\nLanguage Used = Python3\nModules/Packages used:\n* scapy\n* socket\n* os\n* datetime\n* optparse\n* pickle\n* multiprocessing\n* colorama\n* time\n\u003c!-- --\u003e\nInstall the dependencies:\n```bash\npip install -r requirements.txt\n```\n## port_scanner.py\n### Input\n* '-t', \"--target\": IP Address/Addresses of the Target/Targets to scan Ports (seperated by ',')\n* '-p', \"--port\": Port/Ports (seperated by ',') to scan\n* '-s', \"--port-range\": Range of Ports to scan (seperated by '-', start-stop)\n* '-d', \"--timeout\": Timeout for Single Port Scan\n* '-l', \"--load\": Load Targets from a file\n* '-r', \"--read\": File to read a Previous Scan Result\n* '-w', \"--write\": Dump the output to a File (Optional)\n\n### Output\nThe Program will display the Number of : Scaned Ports, Open Port and Close Ports, List of Open Ports and time taken to scan for each target. \u003cbr /\u003e\nIf the write argument is provided, it will dump the data of scan into a file named as the argument provided. \u003cbr /\u003e\nIf the read argument is provided, it will read the dump file of a previous scan.\n## scapy_port_scanner.py\nThis program requires root privileges. It is good for scanning a large amount of Hosts. It sends SYN Packets parallely and sniffs the incomming packet using a daemonic thread.\n### Input\n* '-t', \"--target\": IP Address/Addresses of the Target/Targets to scan Ports (seperated by ',')\n* '-i', \"--interface\" : Interface to use\n* '-p', \"--port\": Port/Ports (seperated by ',') to scan\n* '-s', \"--port-range\": Range of Ports to scan (seperated by '-', start-stop)\n* '-l', \"--load\": Load Targets from a file\n* '-T', \"--timeout\": Timeout for Single Port Scan\n* '-r', \"--read\": File to read a Previous Scan Result\n* '-w', \"--write\": Dump the output to a File (Optional)\n\n### Output\nThe Program will display the Number of : Scaned Ports, Open Port and Close Ports, List of Open Ports and time taken to scan for each target. \u003cbr /\u003e\nIf the write argument is provided, it will dump the data of scan into a file named as the argument provided. \u003cbr /\u003e\nIf the read argument is provided, it will read the dump file of a previous scan.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgill-singh-a%2Fport-scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgill-singh-a%2Fport-scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgill-singh-a%2Fport-scanner/lists"}