owasp-amass / oam-tools

Analysis and management tools for an Open Asset Model database
Apache License 2.0
40 stars 10 forks source link

Issue: Error Printing Subdomains After Running Amass Command #9

Open cupello opened 3 weeks ago

cupello commented 3 weeks ago

Hi! After successfully running the amass command, I encounter an error when trying to print the found subdomains to the screen. It seems that the -dir flag is being ignored, and I am receiving the error: dial error: dial tcp 127.0.0.1:5432: connect: connection refused.

IMG_20240907_150916_841 IMG_20240907_150919_578

cupello commented 2 weeks ago

Hi! The issue seems to occur because the LoadSettings method is always called, which in turn calls the loadDatabaseSettings method. If there is no database configuration in config.yaml, it will always call the LoadDatabaseEnvSettings method, which will then create a database configuration for PostgreSQL set as primary. As a result, when the LocalDatabaseSettingsmethod is called, there is already a primary database in cfg.GraphDBs, causing the local database to be set as non-primary.

image

image

image