Run / Run Current Module Recon Ng
Run Current Module Recon Ng
Run the current module in the Recon-NG framework.
run run #!/bin/bash
# Run Current Module Recon Ng
run import subprocess
# Run Current Module Recon Ng
# Make sure to replace <placeholders> with actual values
def run_command():
cmd = [
"run",
]
try:
print(f"Executing: {' '.join(cmd)}")
subprocess.run(cmd, check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e}")
except FileNotFoundError:
print("Error: run not found. Please install it first.")
if __name__ == "__main__":
run_command() When To Use
During security assessments utilizing Recon-NG for OSINT gathering.
Pro Tip
Use 'run run -v' for verbose logging to monitor module activity in real-time.
Anatomy of Output
Understanding the result
Running module: recon/domains-hosts/google.site Module Status Indicates which module is being executed.
[INFO] Module executed successfully. Execution Output Confirms successful run of the specified module.
Total results: 15 hosts found. Results Summary Summarizes output count from the executed module.
Power User Variants
Optimized versions
run --json-output report.json Stores output in a JSON format for structured data analysis.
run -p 2 Runs the module with a parallelization factor for faster execution.
Troubleshooting
Common pitfalls
[ERROR] Module 'recon/domains-hosts/google.site' not found.
Solution: Ensure that the module is correctly installed and available in your environment.
[ERROR] Permission denied when accessing target URL.
Solution: Check permissions or run the command with elevated privileges.
[ERROR] Failed to connect to the host.
Solution: Validate internet connection and target availability.
Command Breakdown
What each part is doing
-
run - Base Command
- The executable that performs this operation. Here it runs Run before the shell applies any redirect operators.
Alternative Approaches
Comparable commands in other tools
Alternative documentation tools for the same job.