diff --git a/README.md b/README.md index 56ff6b41..0e1dc235 100644 --- a/README.md +++ b/README.md @@ -107,12 +107,16 @@ docker pull six2dez/reconftw:main - Run the container ```bash -$ docker run -it --rm \ - -v "${PWD}/OutputFolder/":'/reconftw/Recon/' \ - six2dez/reconftw:main -d example.com -r +docker run -it --rm \ +-v "${PWD}/OutputFolder/":'/reconftw/Recon/' \ +six2dez/reconftw:main -d example.com -r ``` -However, if you wish to: +- View results (they're NOT in the Docker container) + + - As the folder you cloned earlier (named `reconftw`) is being renamed to `OutputFolder`, you'll have to go to that folder to view results. + +If you wish to: 1. Dynamically modify the behaviour & function of the image 2. Build your own container @@ -401,6 +405,8 @@ reset='\033[0m' ## Example Usage +**NOTE: this is applicable when you've installed reconFTW on the host (e.g. VM/VPS/cloud) and not in a Docker container.** + ### To perform a full recon on single target ```bash @@ -628,7 +634,7 @@ If you want to contribute to this project, you can do it in multiple ways: This section shows the current financial sponsors of this project -[](https://github.com/0xtavian) +[](https://github.com/0xtavian) ## Thanks :pray: diff --git a/web/scans/utils.py b/web/scans/utils.py index 7f8224c5..90a67490 100644 --- a/web/scans/utils.py +++ b/web/scans/utils.py @@ -736,7 +736,13 @@ def screenshots_f2db(project_id): with open(f"{ss_path}/{s}", 'rb') as f: img = f.read() - hn = f"{s.replace('.png','').split('-')[1]}:{s.replace('.png','').split('-')[2]}" + hn = sub(r'https?-', '',s.replace('.png','')) + + i = hn.rfind('-') + + if '-' in hn and i > 0 and hn[i+1::].isnumeric(): + hn = f"{hn[:i:]}:{hn[i+1::]}" + ScreenShots.objects.create(hostname=hn, screenshot=img, project_id=project_id) diff --git a/web/web/settings.py b/web/web/settings.py index 43d074e4..20e48b52 100644 --- a/web/web/settings.py +++ b/web/web/settings.py @@ -8,7 +8,7 @@ DEBUG = 1 ipAddress=os.popen('hostname -I | cut -d " " -f1').read().strip() -ALLOWED_HOSTS = [ipAddress, 'localhost', '127.0.0.1'] +ALLOWED_HOSTS = [ipAddress, 'localhost', '127.0.0.1', '*'] # SESSION_COOKIE_SECURE = True # CSRF_COOKIE_SECURE = True