subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # Linux: 清理页面缓存 if os.path.exists('/proc/sys/vm/drop_caches'): subprocess.run(['sync'], check=True) with open('/proc/sys/vm/drop_caches', 'w') as f: f.write('3') except Exception as e:- Confidence
- 93% confidence
- Finding
- subprocess.run(['sync'], check=True)
