portune 0.1.11__py3-none-any.whl → 0.1.13__py3-none-any.whl

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/portune.py CHANGED
@@ -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.style.display !== 'none')
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
- sys.stderr.write('\r' + progress_msg)
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')
portune/version.py CHANGED
@@ -17,5 +17,5 @@ __version__: str
17
17
  __version_tuple__: VERSION_TUPLE
18
18
  version_tuple: VERSION_TUPLE
19
19
 
20
- __version__ = version = '0.1.11'
21
- __version_tuple__ = version_tuple = (0, 1, 11)
20
+ __version__ = version = '0.1.13'
21
+ __version_tuple__ = version_tuple = (0, 1, 13)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: portune
3
- Version: 0.1.11
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
+ ![portune](https://github.com/user-attachments/assets/497a4c73-fb6c-4a20-b7ea-043949c49ca9)
51
+
52
+ ![image](https://github.com/user-attachments/assets/ddea20d8-485d-44d6-8dcc-e817d396e197)
@@ -0,0 +1,9 @@
1
+ portune/__init__.py,sha256=RfXuNfHBqfRt_z4IukwN1a0oeCXahuMOO8_eBt4T8NM,58
2
+ portune/portune.py,sha256=6uZkcsMAEJt8yROPsl92VMYIPDypQosx0SZdJypN9gs,67510
3
+ portune/version.py,sha256=Ln0urWB3R3JaxFwIIvoej0v08KbDCO89NUBxWx-zj0U,513
4
+ portune-0.1.13.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
5
+ portune-0.1.13.dist-info/METADATA,sha256=3uH8AGBdr-einwhLQowuU-9cwDpSLm4iUASl-17HkRA,2196
6
+ portune-0.1.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ portune-0.1.13.dist-info/entry_points.txt,sha256=6j7jAf5fOZrLPbVIs3z92R1tT891WyY9YxQ6OVnPKG0,80
8
+ portune-0.1.13.dist-info/top_level.txt,sha256=CITDikHhRKAsSOGmNJzD-xSp6D5iBhSr9ZS1qy8-SL0,8
9
+ portune-0.1.13.dist-info/RECORD,,
@@ -1,9 +0,0 @@
1
- portune/__init__.py,sha256=RfXuNfHBqfRt_z4IukwN1a0oeCXahuMOO8_eBt4T8NM,58
2
- portune/portune.py,sha256=aTV3Q2ISuMROxdkgIIzQC9R62iIE7KPh3PGTbZbOBCw,67331
3
- portune/version.py,sha256=xfwL5IZGNNwnNDAQtGFjpvlNxqYn3U9IM9B98Du9pJw,513
4
- portune-0.1.11.dist-info/licenses/LICENSE,sha256=gRJf0JPT_wsZJsUGlWPTS8Vypfl9vQ1qjp6sNbKykuA,1064
5
- portune-0.1.11.dist-info/METADATA,sha256=qfzamuTm9tC7Arp-OgBtZ2bW3nWhXbZFTqKgGVfkf3Y,2013
6
- portune-0.1.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
- portune-0.1.11.dist-info/entry_points.txt,sha256=6j7jAf5fOZrLPbVIs3z92R1tT891WyY9YxQ6OVnPKG0,80
8
- portune-0.1.11.dist-info/top_level.txt,sha256=CITDikHhRKAsSOGmNJzD-xSp6D5iBhSr9ZS1qy8-SL0,8
9
- portune-0.1.11.dist-info/RECORD,,