-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4ab1f53
commit 355c03a
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
ai_research/open-interpreter-examples/open_interpreter_recon1.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
''' | ||
This script is a basic example of how to use the Open Interpreter library to perform passive reconnaissance on a target domain. | ||
''' | ||
|
||
# Import the Open Interpreter library | ||
# To install the library, run: pip install open-interpreter | ||
from interpreter import interpreter | ||
|
||
# Set the LLM model to use | ||
interpreter.llm.model = "gpt-4o-mini" | ||
|
||
# Set the system message | ||
interpreter.system_message += """ | ||
Run shell commands with -y so the user doesn't have to confirm them. | ||
""" | ||
print(interpreter.system_message) | ||
|
||
# Perform passive reconnaissance on the target domain | ||
interpreter.chat("Use Amass to perform passive reconnaissance on secretcorp.org. Analyze the output. Save the output and analysis to a file called secretcorp.md.") | ||
|
||
# Start an interactive chat | ||
interpreter.chat() |