{"id":19186424,"url":"https://github.com/mar0ls/portscaner","last_synced_at":"2025-07-09T16:36:27.817Z","repository":{"id":193922695,"uuid":"588484158","full_name":"mar0ls/portscaner","owner":"mar0ls","description":"simply TCP port scaner","archived":false,"fork":false,"pushed_at":"2023-02-20T15:30:45.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-04T05:34:40.212Z","etag":null,"topics":["hacking-tool","pentesting","portscan","python","scanner","socket"],"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/mar0ls.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}},"created_at":"2023-01-13T08:28:16.000Z","updated_at":"2023-01-13T09:34:48.000Z","dependencies_parsed_at":"2023-09-10T20:22:45.337Z","dependency_job_id":null,"html_url":"https://github.com/mar0ls/portscaner","commit_stats":null,"previous_names":["mar0ls/portscaner"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar0ls%2Fportscaner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar0ls%2Fportscaner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar0ls%2Fportscaner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mar0ls%2Fportscaner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mar0ls","download_url":"https://codeload.github.com/mar0ls/portscaner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240261497,"owners_count":19773474,"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":["hacking-tool","pentesting","portscan","python","scanner","socket"],"created_at":"2024-11-09T11:14:43.831Z","updated_at":"2025-02-23T02:45:58.018Z","avatar_url":"https://github.com/mar0ls.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv id=\"header\" align=\"center\"\u003e\n  \u003cimg src=\"https://media2.giphy.com/media/JGUMPPTMRCVPbSncVF/giphy.webp?cid=6c09b9522e214fc409ce67211bae3730c1b65ee298cc4c77\u0026rid=giphy.webp\u0026ct=g\" width=\"100\"/\u003e\n\u003c/div\u003e\n\n# **Portscaner**\n    Usage of program: -t \u003ctarget host\u003e -p \u003ctargert port\u003e + ex. portscaner.py -t 192.168.1.1 -p 1-100\n      -t, specify target host name or IP\n      -p, specify terget ports separated by a comma \",\" or a dash \"-\". Default scan all ports.\n\n# What does portscaner mean?\nPort scanning is a method of determining which ports on a network are open and could be receiving or sending data. It is also a process for sending packets to specific ports on a host and analyzing responses to identify vulnerabilities.\nThis scanning can’t take place without first identifying a list of active hosts and mapping those hosts to their IP addresses. This activity, called host discovery, starts by doing a network scan.\nThe goal behind port and network scanning is to identify the organization of IP addresses, hosts, and ports to properly determine open or vulnerable server locations and diagnose security levels. Both network and port scanning can reveal the presence of security measures in place such as a firewall between the server and the user’s device.\nAfter a thorough network scan is complete and a list of active hosts is compiled, port scanning can take place to identify open ports on a network that may enable unauthorized access.\n\nIt’s important to note that network and port scanning can be used by both IT administrators and cybercriminals to verify or check the security policies of a network and identify vulnerabilities — and in the attackers’ case, to exploit any potential weak entry points. In fact, the host discovery element in network scanning is often the first step used by attackers before they execute an attack.\nAs both scans continue to be used as key tools for attackers, the results of network and port scanning can provide important indications of network security levels for IT administrators trying to keep networks safe from attacks.\n\n# Ports in networting\nA network port is a process-specific or an application-specific software construct serving as a communication endpoint, which is used by the Transport Layer protocols of Internet Protocol suite, such as User Diagram Protocol (UDP) and Transmission Control Protocol (TCP).\nA specific network port is identified by its number commonly referred to as port number, the IP address in which the port is associated with and the type of transport protocol used for the communication.\nA port number is a 16-bit unsigned integer that ranges from 0 to 65535.\n\n**LIST OF WELL-KNOWN PORTS**\nPort numbers range from 0 to 65535, but only port numbers 0 to 1023 are reserved for privileged services and designated as well-known ports. The following list of well-known \nport numbers specifies the port used by the server process as its contact port.\n\n**Port Number\tDescription**\n*\t1\tTCP Port Service Multiplexer (TCPMUX)\n*\t5\tRemote Job Entry (RJE)\n*\t7\tECHO\n*\t18\tMessage Send Protocol (MSP)\n*\t20\tFTP — Data\n*\t21\tFTP — Control\n*\t22\tSSH Remote Login Protocol\n*\t23\tTelnet\n*\t25\tSimple Mail Transfer Protocol (SMTP)\n*\t29\tMSG ICP\n*\t37\tTime\n*\t42\tHost Name Server (Nameserv)\n*\t43\tWhoIs\n*\t49\tLogin Host Protocol (Login)\n*\t53\tDomain Name System (DNS)\n*\t69\tTrivial File Transfer Protocol (TFTP)\n*\t70\tGopher Services\n*\t79\tFinger\n*\t80\tHTTP\n*\t103\tX.400 Standard\n*\t108\tSNA Gateway Access Server\n*\t109\tPOP2\n*\t110\tPOP3\n*\t115\tSimple File Transfer Protocol (SFTP)\n*\t118\tSQL Services\n*\t119\tNewsgroup (NNTP)\n*\t137\tNetBIOS Name Service\n*\t139\tNetBIOS Datagram Service\n*\t143\tInterim Mail Access Protocol (IMAP)\n*\t150\tNetBIOS Session Service\n*\t156\tSQL Server\n*\t161\tSNMP\n*\t179\tBorder Gateway Protocol (BGP)\n*\t190\tGateway Access Control Protocol (GACP)\n*\t194\tInternet Relay Chat (IRC)\n*\t197\tDirectory Location Service (DLS)\n*\t389\tLightweight Directory Access Protocol (LDAP)\n*\t396\tNovell Netware over IP\n*\t443\tHTTPS\n*\t444\tSimple Network Paging Protocol (SNPP)\n*\t445\tMicrosoft-DS\n*\t458\tApple QuickTime\n*\t546\tDHCP Client\n*\t547\tDHCP Server\n*\t563\tSNEWS\n*\t569\tMSN\n*\t1080\tSocks\n\n•\tWell-known ports range from 0 through 1023.\n•\tRegistered ports are 1024 to 49151.\n•\tDynamic ports (also called private ports) are 49152 to 65535.\n\n# What's work?\nThe simplest port scanners use the operating system's network functions and are generally the next option to go to when SYN is not a feasible option . This mode connect scan, named after the Unix connect() system call. If a port is open, the operating system completes the TCP three-way handshake, and the port scanner immediately closes the connection to avoid performing a Denial-of-service attack. Otherwise an error code is returned. This scan mode has the advantage that the user does not require special privileges. However, using the OS network functions prevents low-level control, so this scan type is less common. This method is \"noisy\", particularly if it is a \"portsweep\": the services can log the sender IP address and Intrusion detection systems can raise an alarm.\n\n%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\n# HAVE FUN ( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)( ͡° ͜ʖ ͡°)    (/◕ヮ◕)/(/◕ヮ◕)/(/◕ヮ◕)/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar0ls%2Fportscaner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmar0ls%2Fportscaner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmar0ls%2Fportscaner/lists"}