Skip to content
GitLab
Next
About GitLab
GitLab: the DevOps platform
Explore GitLab
Install GitLab
How GitLab compares
Get started
GitLab docs
GitLab Learn
Pricing
Talk to an expert
Help
What's new
4
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Menu
Projects
Groups
Snippets
Get a free trial
Sign up
Login
Sign in / Register
Toggle navigation
Menu
Open sidebar
GitLab.com
GitLab Security Department
Threat Management
Red Team
Red Team Public
Red Team Tech Notes
Commits
4012c22f
Commit
4012c22f
authored
Sep 15, 2020
by
Chris Moberly
Browse files
Update ffssdp.py
parent
2272c637
Changes
1
Hide whitespace changes
Inline
Side-by-side
firefox-android-2020/ffssdp.py
View file @
4012c22f
...
...
@@ -6,8 +6,6 @@ versions 68.11.0 and lower.
evil-ssdp does a lot more, which is why some of this code may seem extra or
overkill. Sorry about that. :)
@init_string on Twitter
"""
from
multiprocessing
import
Process
...
...
@@ -189,7 +187,7 @@ def process_args():
args
=
parser
.
parse_args
()
# The following two lines help to avoid command injection in bash.
# Pretty
damn
unlikely scenario for this tool, but who knows.
# Pretty unlikely scenario for this tool, but who knows.
char_whitelist
=
re
.
compile
(
'[^a-zA-Z0-9 ._-]'
)
args
.
interface
=
char_whitelist
.
sub
(
''
,
args
.
interface
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment