subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
try: # Use NQL filter to search for posts with similar title # The ~ operator does a partial match result = subprocess.run( [GHST_BIN, "post", "list", "--filter", f"title:~'{title[:30]}'", "--json"], capture_output=True, text=True,- Confidence
- 92% confidence
- Finding
- result = subprocess.run( [GHST_BIN, "post", "list", "--filter", f"title:~'{title[:30]}'", "--json"], capture_output=True, text=True, check=True
