mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-04 01:10:59 -05:00
PortLookup: don't show notes fields marked as ?
This commit is contained in:
parent
a1826fbc85
commit
75f89cdf6e
@ -99,7 +99,7 @@ class PortLookup(callbacks.Plugin):
|
||||
# List the port notes (tags such as "Official", "TCP", "UDP", etc.)
|
||||
# This is every <td> tag except the 4th one, which is the description parsed
|
||||
# above.
|
||||
notes = [t.text.strip() for t in tds[:3]+tds[4:]]
|
||||
notes = [t.text.strip() for t in tds[:3]+tds[4:] if '?' not in t]
|
||||
notes = '; '.join(filter(None, notes))
|
||||
|
||||
# Remove \n, etc. in fields to prevent output corruption.
|
||||
|
Loading…
x
Reference in New Issue
Block a user