From 355c03a724a4a202bd56076eb0593b429b088c82 Mon Sep 17 00:00:00 2001 From: Omar Santos Date: Sat, 7 Dec 2024 23:30:49 -0500 Subject: [PATCH] Create open_interpreter_recon1.py --- .../open_interpreter_recon1.py | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 ai_research/open-interpreter-examples/open_interpreter_recon1.py diff --git a/ai_research/open-interpreter-examples/open_interpreter_recon1.py b/ai_research/open-interpreter-examples/open_interpreter_recon1.py new file mode 100644 index 0000000..fdc25db --- /dev/null +++ b/ai_research/open-interpreter-examples/open_interpreter_recon1.py @@ -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()