portune 0.1.11__tar.gz → 0.1.13__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.
Potentially problematic release.
This version of portune might be problematic. Click here for more details.
- {portune-0.1.11/portune.egg-info → portune-0.1.13}/PKG-INFO +4 -1
- {portune-0.1.11 → portune-0.1.13}/README.md +3 -0
- {portune-0.1.11 → portune-0.1.13}/portune/portune.py +10 -3
- {portune-0.1.11 → portune-0.1.13}/portune/version.py +2 -2
- {portune-0.1.11 → portune-0.1.13/portune.egg-info}/PKG-INFO +4 -1
- {portune-0.1.11 → portune-0.1.13}/.github/workflows/python-publish.yml +0 -0
- {portune-0.1.11 → portune-0.1.13}/.gitignore +0 -0
- {portune-0.1.11 → portune-0.1.13}/LICENSE +0 -0
- {portune-0.1.11 → portune-0.1.13}/portune/__init__.py +0 -0
- {portune-0.1.11 → portune-0.1.13}/portune.egg-info/SOURCES.txt +0 -0
- {portune-0.1.11 → portune-0.1.13}/portune.egg-info/dependency_links.txt +0 -0
- {portune-0.1.11 → portune-0.1.13}/portune.egg-info/entry_points.txt +0 -0
- {portune-0.1.11 → portune-0.1.13}/portune.egg-info/top_level.txt +0 -0
- {portune-0.1.11 → portune-0.1.13}/pyproject.toml +0 -0
- {portune-0.1.11 → portune-0.1.13}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: portune
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.13
|
|
4
4
|
Summary: Simple Python HTTP Exec Server
|
|
5
5
|
Author: Franck Jouvanceau
|
|
6
6
|
Maintainer: Franck Jouvanceau
|
|
@@ -47,3 +47,6 @@ Multitreaded port scanner
|
|
|
47
47
|
* html full report / dns domain summary / vlan timeout summary
|
|
48
48
|
* mail with html summary / report attachment (mailhost relay)
|
|
49
49
|
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+

|
|
@@ -15,3 +15,6 @@ Multitreaded port scanner
|
|
|
15
15
|
* html full report / dns domain summary / vlan timeout summary
|
|
16
16
|
* mail with html summary / report attachment (mailhost relay)
|
|
17
17
|
|
|
18
|
+

|
|
19
|
+
|
|
20
|
+

|
|
@@ -24,7 +24,6 @@ import time
|
|
|
24
24
|
import subprocess
|
|
25
25
|
from concurrent.futures import ThreadPoolExecutor, as_completed
|
|
26
26
|
from collections import defaultdict
|
|
27
|
-
import json
|
|
28
27
|
from html import escape
|
|
29
28
|
import smtplib
|
|
30
29
|
from email.mime.text import MIMEText
|
|
@@ -454,7 +453,7 @@ function exportToExcel(table, fileNamePrefix = 'export') {
|
|
|
454
453
|
|
|
455
454
|
// Get data rows with type information
|
|
456
455
|
const rows = Array.from(table.querySelectorAll('tbody tr'))
|
|
457
|
-
.filter(row => row.
|
|
456
|
+
.filter(row => ! row.classList.contains('hidden'))
|
|
458
457
|
.map(row =>
|
|
459
458
|
Array.from(row.cells)
|
|
460
459
|
.map(cell => {
|
|
@@ -611,10 +610,18 @@ class ProgressBar:
|
|
|
611
610
|
percentage = f"{100 * self.current / self.total:.1f}%"
|
|
612
611
|
elapsed_time = time.time() - self.start_time
|
|
613
612
|
speed = self.current / elapsed_time if elapsed_time > 0 else 0
|
|
613
|
+
|
|
614
|
+
|
|
614
615
|
# Create the progress message
|
|
615
616
|
progress_msg = f'{self.prefix} |{bar}| {percentage} ({self.current}/{self.total}) [{speed:.1f} ports/s]'
|
|
616
617
|
# Add padding to ensure old content is cleared
|
|
617
|
-
|
|
618
|
+
try:
|
|
619
|
+
col = os.get_terminal_size(2).columns
|
|
620
|
+
except OSError:
|
|
621
|
+
col = 80
|
|
622
|
+
padding = ' ' * (col - len(progress_msg) - 1)
|
|
623
|
+
|
|
624
|
+
sys.stderr.write('\r' + progress_msg[:col - 1] + padding)
|
|
618
625
|
sys.stderr.flush()
|
|
619
626
|
if self.current == self.total:
|
|
620
627
|
sys.stderr.write('\n')
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: portune
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.13
|
|
4
4
|
Summary: Simple Python HTTP Exec Server
|
|
5
5
|
Author: Franck Jouvanceau
|
|
6
6
|
Maintainer: Franck Jouvanceau
|
|
@@ -47,3 +47,6 @@ Multitreaded port scanner
|
|
|
47
47
|
* html full report / dns domain summary / vlan timeout summary
|
|
48
48
|
* mail with html summary / report attachment (mailhost relay)
|
|
49
49
|
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+

|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|