PortMiner 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: PortMiner
3
+ Version: 0.1.0
4
+ Summary: A simple and Lite URL port scanner built with pure Python
5
+ Home-page: https://github.com/MobinSalehiP/PortMiner
6
+ Author: Mobin Salehi
7
+ Author-email: salehimobin343@gmail.com
8
+ Project-URL: GitHub, https://github.com/MobinSalehiP/EID-Miner
9
+ Project-URL: PyPI, https://pypi.org/project/EIDMiner/
10
+ Keywords: port scanner url socket urllib network security terminal
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Topic :: Internet
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Classifier: Topic :: System :: Networking
26
+ Requires-Python: >=3.6
27
+ Description-Content-Type: text/markdown
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: project-url
36
+ Dynamic: requires-python
37
+ Dynamic: summary
38
+
39
+ # Port Miner 🎅
40
+
41
+ [![PyPI version](https://img.shields.io/pypi/v/port-miner.svg)](https://pypi.org/project/port-miner/)
42
+ [![Python Version](https://img.shields.io/pypi/pyversions/port-miner.svg)](https://pypi.org/project/port-miner/)
43
+ [![License](https://img.shields.io/github/license/yourname/port-miner)](LICENSE)
44
+ [![Downloads](https://img.shields.io/pypi/dm/port-miner.svg)](https://pypi.org/project/port-miner/)
45
+ [![Status](https://img.shields.io/badge/status-active-brightgreen)]()
46
+
47
+ A simple, fun, and lightweight port scanner built with pure Python.
48
+
49
+ It asks the user for a URL, checks a list of common ports, and prints the open ones.
50
+
51
+ No third-party libraries needed.
52
+
53
+ ---
54
+
55
+ ## ✨ Features
56
+
57
+ - ⚡ Very lightweight
58
+ - 🧩 Pure Python (`socket` + `urllib.parse`)
59
+ - 🎯 Easy to use
60
+ - 🔎 Scans a list of ports
61
+ - 🖨 Prints only open ports
62
+
63
+ ---
64
+
65
+ ## 🛠 Requirements
66
+
67
+ - Python **3.6+**
68
+ - Works on Windows, Linux, and macOS
69
+
70
+ ---
71
+
72
+ ---
73
+
74
+ ## 👨‍💻 How To Use
75
+
76
+ - 🟩 from port_miner.core import scan_ports
77
+
78
+ - 🟩 scan_ports()
79
+
80
+ ---
81
+
82
+ ## 📦 Installation
83
+
84
+ ### From PyPI
85
+ ```bash
86
+ pip install portminer
@@ -0,0 +1 @@
1
+ from .core import scan_ports
@@ -0,0 +1,34 @@
1
+ import socket
2
+ from urllib.parse import urlparse
3
+
4
+ def scan_ports():
5
+ print("--- Port Miner 🎅 ---\n")
6
+ target_url = input("Enter URL : ").strip()
7
+
8
+ if not target_url.startswith(('http://', 'https://')):
9
+ target_url = 'https://' + target_url
10
+
11
+ domain = urlparse(target_url).hostname
12
+ if not domain:
13
+ print("URL IS INCORRECT 🤣🎅 ")
14
+ return
15
+
16
+ ports = [21, 22, 23, 25, 53, 80, 110, 443, 8080, 3306, 8020, 1080, 67]
17
+
18
+ print(f"🔎 Searching {domain} On {len(ports)} Ports\n")
19
+ print(f"{'PORT 🎅 ':<13} {'STATUS 🎅 ':<13}")
20
+ print("-" * 25)
21
+
22
+ found_any = False
23
+ for port in ports:
24
+ with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s:
25
+ s.settimeout(1.0)
26
+ if s.connect_ex((domain, port)) == 0:
27
+ print(f"{port:<13} ✅ OPEN")
28
+ found_any = True
29
+
30
+ if not found_any:
31
+ print("No open ports found 🎅 ")
32
+
33
+ if __name__ == "__main__":
34
+ scan_ports()
@@ -0,0 +1,86 @@
1
+ Metadata-Version: 2.4
2
+ Name: PortMiner
3
+ Version: 0.1.0
4
+ Summary: A simple and Lite URL port scanner built with pure Python
5
+ Home-page: https://github.com/MobinSalehiP/PortMiner
6
+ Author: Mobin Salehi
7
+ Author-email: salehimobin343@gmail.com
8
+ Project-URL: GitHub, https://github.com/MobinSalehiP/EID-Miner
9
+ Project-URL: PyPI, https://pypi.org/project/EIDMiner/
10
+ Keywords: port scanner url socket urllib network security terminal
11
+ Classifier: Development Status :: 3 - Alpha
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: Intended Audience :: Information Technology
14
+ Classifier: License :: OSI Approved :: MIT License
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3.6
17
+ Classifier: Programming Language :: Python :: 3.7
18
+ Classifier: Programming Language :: Python :: 3.8
19
+ Classifier: Programming Language :: Python :: 3.9
20
+ Classifier: Programming Language :: Python :: 3.10
21
+ Classifier: Programming Language :: Python :: 3.11
22
+ Classifier: Operating System :: OS Independent
23
+ Classifier: Topic :: Internet
24
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
25
+ Classifier: Topic :: System :: Networking
26
+ Requires-Python: >=3.6
27
+ Description-Content-Type: text/markdown
28
+ Dynamic: author
29
+ Dynamic: author-email
30
+ Dynamic: classifier
31
+ Dynamic: description
32
+ Dynamic: description-content-type
33
+ Dynamic: home-page
34
+ Dynamic: keywords
35
+ Dynamic: project-url
36
+ Dynamic: requires-python
37
+ Dynamic: summary
38
+
39
+ # Port Miner 🎅
40
+
41
+ [![PyPI version](https://img.shields.io/pypi/v/port-miner.svg)](https://pypi.org/project/port-miner/)
42
+ [![Python Version](https://img.shields.io/pypi/pyversions/port-miner.svg)](https://pypi.org/project/port-miner/)
43
+ [![License](https://img.shields.io/github/license/yourname/port-miner)](LICENSE)
44
+ [![Downloads](https://img.shields.io/pypi/dm/port-miner.svg)](https://pypi.org/project/port-miner/)
45
+ [![Status](https://img.shields.io/badge/status-active-brightgreen)]()
46
+
47
+ A simple, fun, and lightweight port scanner built with pure Python.
48
+
49
+ It asks the user for a URL, checks a list of common ports, and prints the open ones.
50
+
51
+ No third-party libraries needed.
52
+
53
+ ---
54
+
55
+ ## ✨ Features
56
+
57
+ - ⚡ Very lightweight
58
+ - 🧩 Pure Python (`socket` + `urllib.parse`)
59
+ - 🎯 Easy to use
60
+ - 🔎 Scans a list of ports
61
+ - 🖨 Prints only open ports
62
+
63
+ ---
64
+
65
+ ## 🛠 Requirements
66
+
67
+ - Python **3.6+**
68
+ - Works on Windows, Linux, and macOS
69
+
70
+ ---
71
+
72
+ ---
73
+
74
+ ## 👨‍💻 How To Use
75
+
76
+ - 🟩 from port_miner.core import scan_ports
77
+
78
+ - 🟩 scan_ports()
79
+
80
+ ---
81
+
82
+ ## 📦 Installation
83
+
84
+ ### From PyPI
85
+ ```bash
86
+ pip install portminer
@@ -0,0 +1,9 @@
1
+ README.md
2
+ setup.py
3
+ PortMiner/__init__.py
4
+ PortMiner/core.py
5
+ PortMiner.egg-info/PKG-INFO
6
+ PortMiner.egg-info/SOURCES.txt
7
+ PortMiner.egg-info/dependency_links.txt
8
+ PortMiner.egg-info/entry_points.txt
9
+ PortMiner.egg-info/top_level.txt
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ port-miner = port_miner.core:scan_ports
@@ -0,0 +1 @@
1
+ PortMiner
@@ -0,0 +1,48 @@
1
+ # Port Miner 🎅
2
+
3
+ [![PyPI version](https://img.shields.io/pypi/v/port-miner.svg)](https://pypi.org/project/port-miner/)
4
+ [![Python Version](https://img.shields.io/pypi/pyversions/port-miner.svg)](https://pypi.org/project/port-miner/)
5
+ [![License](https://img.shields.io/github/license/yourname/port-miner)](LICENSE)
6
+ [![Downloads](https://img.shields.io/pypi/dm/port-miner.svg)](https://pypi.org/project/port-miner/)
7
+ [![Status](https://img.shields.io/badge/status-active-brightgreen)]()
8
+
9
+ A simple, fun, and lightweight port scanner built with pure Python.
10
+
11
+ It asks the user for a URL, checks a list of common ports, and prints the open ones.
12
+
13
+ No third-party libraries needed.
14
+
15
+ ---
16
+
17
+ ## ✨ Features
18
+
19
+ - ⚡ Very lightweight
20
+ - 🧩 Pure Python (`socket` + `urllib.parse`)
21
+ - 🎯 Easy to use
22
+ - 🔎 Scans a list of ports
23
+ - 🖨 Prints only open ports
24
+
25
+ ---
26
+
27
+ ## 🛠 Requirements
28
+
29
+ - Python **3.6+**
30
+ - Works on Windows, Linux, and macOS
31
+
32
+ ---
33
+
34
+ ---
35
+
36
+ ## 👨‍💻 How To Use
37
+
38
+ - 🟩 from port_miner.core import scan_ports
39
+
40
+ - 🟩 scan_ports()
41
+
42
+ ---
43
+
44
+ ## 📦 Installation
45
+
46
+ ### From PyPI
47
+ ```bash
48
+ pip install portminer
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,46 @@
1
+ from setuptools import setup, find_packages
2
+
3
+ with open("README.md", "r", encoding="utf-8") as f:
4
+ long_description = f.read()
5
+
6
+ setup(
7
+ name="PortMiner",
8
+ version="0.1.0",
9
+ author="Mobin Salehi",
10
+ author_email="salehimobin343@gmail.com",
11
+ description="A simple and Lite URL port scanner built with pure Python",
12
+ long_description=long_description,
13
+ long_description_content_type="text/markdown",
14
+ url="https://github.com/MobinSalehiP/PortMiner",
15
+ packages=find_packages(),
16
+ include_package_data=True,
17
+ install_requires=[],
18
+ entry_points={
19
+ "console_scripts": [
20
+ "port-miner=port_miner.core:scan_ports",
21
+ ],
22
+ },
23
+ classifiers=[
24
+ "Development Status :: 3 - Alpha",
25
+ "Intended Audience :: Developers",
26
+ "Intended Audience :: Information Technology",
27
+ "License :: OSI Approved :: MIT License",
28
+ "Programming Language :: Python :: 3",
29
+ "Programming Language :: Python :: 3.6",
30
+ "Programming Language :: Python :: 3.7",
31
+ "Programming Language :: Python :: 3.8",
32
+ "Programming Language :: Python :: 3.9",
33
+ "Programming Language :: Python :: 3.10",
34
+ "Programming Language :: Python :: 3.11",
35
+ "Operating System :: OS Independent",
36
+ "Topic :: Internet",
37
+ "Topic :: Software Development :: Libraries :: Python Modules",
38
+ "Topic :: System :: Networking",
39
+ ],
40
+ keywords="port scanner url socket urllib network security terminal",
41
+ project_urls={
42
+ "GitHub": "https://github.com/MobinSalehiP/EID-Miner",
43
+ "PyPI": "https://pypi.org/project/EIDMiner/",
44
+ },
45
+ python_requires=">=3.6",
46
+ )