Skip to content

Commit 6fdac03

Browse files
author
patched.codes[bot]
committed
Patched /Users/user/Documents/GitHub/example-python/main.py
1 parent e24fb58 commit 6fdac03

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ def func_calls():
2121
# Introduce a command injection vulnerability
2222
user_input = input("Enter a command to execute: ")
2323
command = "ping " + user_input
24-
subprocess.call(command, shell=True)
24+
subprocess.call(command, shell=False)
2525

26-
print("Command executed!")
26+
print("Command executed!")

0 commit comments

Comments
 (0)