Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix bug of wrong file extension #1324

Merged
merged 1 commit into from
Sep 19, 2023
Merged

Fix bug of wrong file extension #1324

merged 1 commit into from
Sep 19, 2023

Conversation

huyphan
Copy link
Contributor

@huyphan huyphan commented Sep 18, 2023

Description

Currently when exporting results to certain file format, let's say json, dirsearch would use the extension .{'json'} for the output file. For example:

dirsearch --format json -u google.com                                                                                                  
  _|. _ _  _  _  _ _|_    v0.4.3
 (_||| _) (/_(_|| (_| )

Extensions: php, aspx, jsp, html, js | HTTP method: GET | Threads: 25 | Wordlist size: 11714
_23-09-18_14-31-47.json

Output: /home/hphan/dirsearch/reports/_google.com/_23-09-18_14-31-47.{'json'}

This change makes sure the correct extension is used.

Currently when exporting results to certain file format, let's say `json`, `dirsearch` would use the extension `.{json}` for the output file. For example:

```
dirsearch --format json -u google.com                                                                                                  
  _|. _ _  _  _  _ _|_    v0.4.3
 (_||| _) (/_(_|| (_| )

Extensions: php, aspx, jsp, html, js | HTTP method: GET | Threads: 25 | Wordlist size: 11714
_23-09-18_14-31-47.json

Output: /home/hphan/dirsearch/reports/_google.com/_23-09-18_14-31-47.{json}
```

This change remove the curly brackets around the extension.
@shelld3v shelld3v merged commit 288baef into maurosoria:master Sep 19, 2023
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants