subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
'--index-filter', f'git rm --cached --ignore-unmatch {file_path}', '--prune-empty', '--tag-name-filter', 'cat', '--', '--all' ] subprocess.run(cmd, check=True, capture_output=True) # 强制推送到远程 subprocess.run(['git', 'push', 'origin', '--force', '--all'], check=True, capture_output=True)- Confidence
- 97% confidence
- Finding
- subprocess.run(cmd, check=True, capture_output=True)
