subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
return pytesseract except Exception: print("Installing tesseract-ocr...") subprocess.run(["apt-get","install","-y","-q", "tesseract-ocr","tesseract-ocr-chi-sim"], check=True) subprocess.run([sys.executable,"-m","pip","install","pytesseract", "--break-system-packages","-q"], check=True)- Confidence
- 94% confidence
- Finding
- subprocess.run(["apt-get","install","-y","-q", "tesseract-ocr","tesseract-ocr-chi-sim"], check=True)
