Beispiel #1
0
 def __init__(self, options):
     utils.print_banner("ScreenShot the target")
     utils.make_directory(options['WORKSPACE'] + '/screenshot')
     self.module_name = self.__class__.__name__
     self.options = options
     slack.slack_info(
         self.options,
         mess={
             'title':
             "{0} | {1}".format(self.options['TARGET'], self.module_name),
             'content':
             'Start ScreenShot for {0}'.format(self.options['TARGET'])
         })
     self.initial()
     #check if the screenshot success or not, if not run it again
     # while True:
     #     if not os.listdir(utils.replace_argument(self.options, '$WORKSPACE/screenshot/')):
     #         utils.print_bad('Something wrong with these module ... run it again')
     #         self.initial()
     #         utils.just_waiting(self.module_name)
     #     else:
     #         break
     slack.slack_good(
         self.options,
         mess={
             'title':
             "{0} | {1} ".format(self.options['TARGET'], self.module_name),
             'content':
             'Done ScreenShot for {0}'.format(self.options['TARGET'])
         })
Beispiel #2
0
    def __init__(self, options):
        utils.print_banner("Scanning Subdomain")
        utils.make_directory(options['WORKSPACE'] + '/subdomain')
        self.module_name = self.__class__.__name__
        self.options = options

        slack.slack_info(self.options,
                         mess={
                             'title':
                             "{0} | {1}".format(self.options['TARGET'],
                                                self.module_name),
                             'content':
                             'Start Scanning Subdomain for {0}'.format(
                                 self.options['TARGET'])
                         })
        self.initial()

        utils.just_waiting(self.module_name)
        #this gonna run after module is done to update the main json
        self.conclude()

        slack.slack_good(self.options,
                         mess={
                             'title':
                             "{0} | {1} ".format(self.options['TARGET'],
                                                 self.module_name),
                             'content':
                             'Done Scanning Subdomain for {0}'.format(
                                 self.options['TARGET'])
                         })
Beispiel #3
0
    def create_skeleton_json(self):
        main_json = {
            "Company": utils.replace_argument(self.options, '$COMPANY'),
            "Main_domain": utils.replace_argument(self.options, '$TARGET'),
            "Whois": {
                "path":
                utils.replace_argument(self.options,
                                       '$WORKSPACE/info/$OUTPUT-whois.txt')
            },
            "Subdomains": [],
            "Modules": {},
            "IP Space": []
        }

        outout = utils.replace_argument(self.options,
                                        '$WORKSPACE/$COMPANY.json')

        utils.just_write(outout, main_json, is_json=True)
        utils.check_output(outout)
        slack.slack_info(self.options,
                         mess={
                             'title':
                             "{0} | {1}".format(self.options['TARGET'],
                                                self.module_name),
                             'content':
                             'Create skeleton json'
                         })
Beispiel #4
0
    def __init__(self, options):
        utils.print_banner("IP Discovery")
        utils.make_directory(options['WORKSPACE'] + '/ipspace')
        self.module_name = self.__class__.__name__
        self.options = options
        slack.slack_info(
            self.options,
            mess={
                'title':
                "{0} | {1}".format(self.options['TARGET'], self.module_name),
                'content':
                'Start IP Discovery for {0}'.format(self.options['TARGET'])
            })
        self.initial()
        utils.just_waiting(self.module_name)
        self.conclude()

        slack.slack_good(
            self.options,
            mess={
                'title':
                "{0} | {1} ".format(self.options['TARGET'], self.module_name),
                'content':
                'Done IP Discovery for {0}'.format(self.options['TARGET'])
            })
Beispiel #5
0
 def __init__(self, options):
     utils.print_banner("Scanning through BurpState")
     utils.make_directory(options['WORKSPACE'] + '/burpstate/')
     self.module_name = self.__class__.__name__
     self.options = options
     slack.slack_info(self.options,
                      mess={
                          'title':
                          "{0} | {1}".format(self.options['TARGET'],
                                             self.module_name),
                          'content':
                          'Start Scanning BurpState for {0}'.format(
                              self.options['TARGET'])
                      })
     self.initial()
     slack.slack_good(self.options,
                      mess={
                          'title':
                          "{0} | {1}".format(self.options['TARGET'],
                                             self.module_name),
                          'content':
                          'Start Scanning BurpState for {0}'.format(
                              self.options['TARGET'])
                      })
     self.conclude()
Beispiel #6
0
 def __init__(self, options):
     utils.print_banner("Scanning for Subdomain TakeOver")
     self.module_name = self.__class__.__name__
     self.options = options
     slack.slack_info(self.options, mess={
         'title':  "{0} | {1}".format(self.options['TARGET'], self.module_name),
         'content': 'Start Scanning TakeOver for {0}'.format(self.options['TARGET'])
     })
     self.initial()
     utils.just_waiting(self.module_name)
     self.conclude()
     slack.slack_good(self.options, mess={
         'title':  "{0} | {1} ".format(self.options['TARGET'], self.module_name),
         'content': 'Done Scanning TakeOver for {0}'.format(self.options['TARGET'])
     })
Beispiel #7
0
    def __init__(self, options):
        utils.print_banner("Github Repo Scanning")
        utils.make_directory(options['WORKSPACE'] + '/gitscan/')
        self.module_name = self.__class__.__name__
        self.options = options
        slack.slack_info(self.options, mess={
            'title':  "{0} | {1}".format(self.options['TARGET'], self.module_name),
            'content': 'Start Github Repo Scanning for {0}'.format(self.options['TARGET'])
        })
        self.initial()

        self.conclude()
        slack.slack_good(self.options, mess={
            'title':  "{0} | {1}".format(self.options['TARGET'], self.module_name),
            'content': 'Start Github Repo Scanning for {0}'.format(self.options['TARGET'])
        })
Beispiel #8
0
    def __init__(self, options):
        utils.print_banner("Port Scanning")
        utils.make_directory(options['WORKSPACE'] + '/portscan')
        self.module_name = self.__class__.__name__
        self.options = options
        slack.slack_info(self.options, mess={
            'title':  "{0} | {1}".format(self.options['TARGET'], self.module_name),
            'content': 'Start Port Scanning for {0}'.format(self.options['TARGET'])
        })
        self.initial()

        utils.just_waiting(self.module_name)
        self.result_parsing()
        self.conclude()
        slack.slack_good(self.options, mess={
            'title':  "{0} | {1}".format(self.options['TARGET'], self.module_name),
            'content': 'Start Port Scanning for {0}'.format(self.options['TARGET'])
        })
Beispiel #9
0
 def __init__(self, options):
     utils.print_banner("Headers Scanning")
     utils.make_directory(options['WORKSPACE'] + '/headers')
     utils.make_directory(options['WORKSPACE'] + '/headers/details')
     self.module_name = self.__class__.__name__
     self.options = options
     slack.slack_info(
         self.options,
         mess={
             'title':
             "{0} | {1}".format(self.options['TARGET'], self.module_name),
             'content':
             'Start Headers Scanning for {0}'.format(self.options['TARGET'])
         })
     self.initial()
     slack.slack_good(
         self.options,
         mess={
             'title':
             "{0} | {1}".format(self.options['TARGET'], self.module_name),
             'content':
             'Start Headers Scanning for {0}'.format(self.options['TARGET'])
         })