codingo / VHostScan

A virtual host scanner that performs reverse lookups, can be used with pivot tools, detect catch-all scenarios, work around wildcards, aliases and dynamic default pages.
GNU General Public License v3.0
1.19k stars 231 forks source link

Issue on Output Json #113

Open nuga99 opened 5 years ago

nuga99 commented 5 years ago

What's the problem (or question)?

  1. Problem on is_json() function in helpers/file_helper.py

Do you have an idea for a solution?

  1. Adding self because it's function based on class, and removed the open(json_file,'r') because OS cannot handled bigger file. So the new file_helper.py would be like this:

    ...
    ...
    def is_json(self, json_file):
        try:
            print(json_file)
            '''
            using open for big file can result Error
            '''
            # with open(json_file, "r") as f:
            #     json_object = json.load(f)
    
        except ValueError:
            return False
        return True
    ...
    ...

How can we reproduce the issue?

  1. Run the VHostScan and give as the output Json `VHostScan -t -oJ .
  2. It will show an error TypeError: is_json() takes 1 positional argument but 2 were given

What are the running context details?