Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:six2dez/reconftw into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
six2dez committed May 12, 2023
2 parents a939954 + 78b7abf commit 08637fd
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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

[<img src="https://pbs.twimg.com/profile_images/1360304248534282240/MomOFi40_400x400.jpg" width="100" height=auto>](https://github.com/0xtavian)
[<img src="https://pbs.twimg.com/profile_images/1578131929794314272/b79Rezd4_400x400.png" width="100" height=auto>](https://github.com/0xtavian)

## Thanks :pray:

Expand Down
8 changes: 7 additions & 1 deletion web/scans/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
2 changes: 1 addition & 1 deletion web/web/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 08637fd

Please sign in to comment.