{"id":24796243,"url":"https://github.com/ali1raz/port-scanner-python","last_synced_at":"2025-03-24T20:18:25.468Z","repository":{"id":249616533,"uuid":"831999278","full_name":"Ali1raz/port-scanner-python","owner":"Ali1raz","description":"port scanner using python, socket programming, python, computer networks, networking, project","archived":false,"fork":false,"pushed_at":"2024-07-23T04:10:08.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-30T00:33:50.180Z","etag":null,"topics":["cli-app","computer-networks","ethical-hacking","ethical-hacking-tools","networking","networking-in-python","nmap","portscanner","project-repository","python","python-app","socket-programming","sockets"],"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/Ali1raz.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":"2024-07-22T06:43:21.000Z","updated_at":"2024-07-23T04:13:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"d7806a3d-a149-43da-a10a-24eaf4ec5018","html_url":"https://github.com/Ali1raz/port-scanner-python","commit_stats":null,"previous_names":["ali1raz/port-scanner-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ali1raz%2Fport-scanner-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ali1raz%2Fport-scanner-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ali1raz%2Fport-scanner-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ali1raz%2Fport-scanner-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ali1raz","download_url":"https://codeload.github.com/Ali1raz/port-scanner-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245343986,"owners_count":20599867,"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":["cli-app","computer-networks","ethical-hacking","ethical-hacking-tools","networking","networking-in-python","nmap","portscanner","project-repository","python","python-app","socket-programming","sockets"],"created_at":"2025-01-30T00:32:09.959Z","updated_at":"2025-03-24T20:18:25.452Z","avatar_url":"https://github.com/Ali1raz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Port Management Script\n\n## Overview\n\nThis script provides functionality to manage TCP ports on your localhost. It allows you to scan for open ports, open and listen on specific ports, and close those ports when you're done.\n\n## Features\n\n- **Port Scanning:** Check which ports in a specified range are open.\n- **Open Port:** Open a specific port and listen for incoming connections.\n- **Close Port:** Close a specific port that was previously opened.\n\n## Requirements\n\n- Python 3.x\n\n## Usage\n\n### Scan Ports\n\n```sh\npython scanner.py s \u003chostname\u003e \u003cstart_port\u003e \u003cend_port\u003e\n```\n\n### Example:\n```sh\npython scanner.py s localhost 1 500\n```\n\n### Open a port:\n\n```sh\n  python scanner.py o \u003chostname\u003e \u003cport\u003e\n```\n### Example:\n\n```sh\n  python scanner.py o localhsot 133\n```\n\n### Closing a port:\n- **Connect a client to that port first**\n\n### Example:\n```sh\n  python client.py\n  Enter server port\u003cint\u003e: 133\n```\n- **send close from client and scanner to close that port**\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali1raz%2Fport-scanner-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fali1raz%2Fport-scanner-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fali1raz%2Fport-scanner-python/lists"}