Import Urls from Burp Suite - Feature#17
Open
0xrishabh wants to merge 7 commits into
Open
Conversation
Author
|
Import URLs from Burp suite logs - Feature |
s0md3v
requested changes
Jan 17, 2020
| import json | ||
| import tempfile | ||
|
|
||
| import csv |
| url = line['Host']+line['Path'] | ||
| if url not in urls: | ||
| urls.append(url) | ||
| return urls No newline at end of file |
| parser.add_argument('-t', help='thread count', dest='threads', type=int, default=2) | ||
| parser.add_argument('-d', help='request delay', dest='delay', type=float, default=0) | ||
| parser.add_argument('-q', help='don\'t print help tips', dest='quiet', action='store_true') | ||
| parser.add_argument('-f', help='import from burp logs', dest='file') |
Owner
There was a problem hiding this comment.
- This argument doesn't accept any additional value, hence add
action='store_true'to make it Boolean. - I think
-bis a better name for it and thedestvalue can beburp_fileorburp_log. - The
helptext should betreat input file as Burp Suite logs - Please change the position of this line according to it's length.
| if inp_file: | ||
| urls = create_url_list(target, inp_file) | ||
| elif log_file: | ||
| urls = url_from_logs(log_file) |
Owner
There was a problem hiding this comment.
create_url_list must be executed even if there's no input file added by the user. Hence, the code here should be:
if log_file:
urls = url_from_logs(log_file)
else:
urls = create_url_list(target, inp_file)| pass | ||
| return sorted_headers | ||
|
|
||
| def url_from_logs(inp_file): |
| inp_file = args.inp_file | ||
| json_file = args.json_file | ||
| header_dict = args.header_dict | ||
| log_file = args.file |
Owner
There was a problem hiding this comment.
change the position of this line according to it's length.
|
0xrishabh:ImportBurpLogs |
Repository owner
deleted a comment from
Yariayappayariayappa
Aug 31, 2022
Repository owner
deleted a comment from
Yariayappayariayappa
Aug 31, 2022
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.