h4cker/ai_research/open-interpreter-examples/open_interpreter_recon1.py

23 lines
779 B
Python
Raw Normal View History

2024-12-08 04:30:49 +00:00
'''
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
2024-12-08 04:35:11 +00:00
# interpreter.system_message += """
# Run shell commands with -y so the user doesn't have to confirm them.
# """
# print(interpreter.system_message)
2024-12-08 04:30:49 +00:00
# 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()