subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
for token in model.get('args', []): rendered.append(token.replace('{{OutputDir}}', outdir).replace('{{MediaPath}}', str(media_path))) cmd.extend(rendered) subprocess.run(cmd, check=True) txt_path = Path(outdir) / f'{media_path.stem}.txt' if not txt_path.exists(): candidates = list(Path(outdir).glob('*.txt'))- Confidence
- 91% confidence
- Finding
- subprocess.run(cmd, check=True)
