diff --git a/html.js b/html.js index d685bd5..168572a 100644 --- a/html.js +++ b/html.js @@ -110,35 +110,40 @@ export default class Html extends PureComponent { {styleElement} -
- {_.map(scripts, (script, key) => ( + ) } diff --git a/main.py b/main.py index 468f8c0..c59b6e0 100644 --- a/main.py +++ b/main.py @@ -18,9 +18,9 @@ def func_calls(): prep = req.prepare() session.rebuild_proxies(prep, proxies) - # Introduce a command injection vulnerability + # Fix the command injection vulnerability user_input = input("Enter a command to execute: ") - command = "ping " + user_input - subprocess.call(command, shell=True) + command = ['ping', user_input] + subprocess.call(command, shell=False) print("Command executed!") \ No newline at end of file