subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
# 调用 stock_price 或 unified_stock import subprocess code_str = ' '.join(codes) result = subprocess.run( f'cd ~/.openclaw/workspace && python3 bin/stock_price {code_str}', shell=True, capture_output=True,- Confidence
- 98% confidence
- Finding
- result = subprocess.run( f'cd ~/.openclaw/workspace && python3 bin/stock_price {code_str}', shell=True, capture_output=True, text=True )
