()
Serves as the instantiation point to start Automater.

    Argument(s):
    No arguments are required.

    Return value(s):
    Nothing is returned from this Method.

    Restriction(s):
    The Method has no restrictions.
Serves as the instantiation point to start Automater.
Serves as the instantiation point to start Automater .
def main():
    """
    Serves as the instantiation point to start Automater.

    Argument(s):
    No arguments are required.

    Return value(s):
    Nothing is returned from this Method.

    Restriction(s):
    The Method has no restrictions.
    """

    sites = []
    parser = Parser('IP, URL, and Hash Passive Analysis tool', __VERSION__)

    # if no target run and print help
    if parser.hasNoTarget():
        print '[!] No argument given.'
        parser.print_help()  # need to fix this. Will later
        sys.exit()

    if parser.VersionCheck:
        Site.checkmoduleversion(__GITFILEPREFIX__, __GITLOCATION__, parser.Proxy, parser.Verbose)

    # user may only want to run against one source - allsources
    # is the seed used to check if the user did not enter an s tag
    sourcelist = ['allsources']
    if parser.hasSource():
        sourcelist = parser.Source.split(';')

    # a file input capability provides a possibility of
    # multiple lines of targets
    targetlist = []
    if parser.hasInputFile():
        for tgtstr in TargetFile.TargetList(parser.InputFile, parser.Verbose):
            tgtstrstripped = tgtstr.replace('[.]', '.').replace('{.}', '.').replace('(.)', '.')
            if IPWrapper.isIPorIPList(tgtstrstripped):
                for targ in IPWrapper.getTarget(tgtstrstripped):
                    targetlist.append(targ)
            else:
                targetlist.append(tgtstrstripped)
    else:  # one target or list of range of targets added on console
        target = parser.Target
        tgtstrstripped = target.replace('[.]', '.').replace('{.}', '.').replace('(.)', '.')
        if IPWrapper.isIPorIPList(tgtstrstripped):
            for targ in IPWrapper.getTarget(tgtstrstripped):
                targetlist.append(targ)
        else:
            targetlist.append(tgtstrstripped)

    sitefac = SiteFacade(parser.Verbose)
    sitefac.runSiteAutomation(parser.Delay, parser.Proxy, targetlist, sourcelist, parser.UserAgent, parser.hasBotOut,
                              parser.RefreshRemoteXML, __GITLOCATION__)
    sites = sitefac.Sites
    if sites:
        SiteDetailOutput(sites).createOutputInfo(parser)
def main ( ) : sites = [ ] parser = Parser ( 'IP, URL, and Hash Passive Analysis tool' , __VERSION__ ) # if no target run and print help if parser . hasNoTarget ( ) : print '[!] No argument given.' parser . print_help ( ) # need to fix this. Will later sys . exit ( ) if parser . VersionCheck : Site . checkmoduleversion ( __GITFILEPREFIX__ , __GITLOCATION__ , parser . Proxy , parser . Verbose ) # user may only want to run against one source - allsources # is the seed used to check if the user did not enter an s tag sourcelist = [ 'allsources' ] if parser . hasSource ( ) : sourcelist = parser . Source . split ( ';' ) # a file input capability provides a possibility of # multiple lines of targets targetlist = [ ] if parser . hasInputFile ( ) : for tgtstr in TargetFile . TargetList ( parser . InputFile , parser . Verbose ) : tgtstrstripped = tgtstr . replace ( '[.]' , '.' ) . replace ( '{.}' , '.' ) . replace ( '(.)' , '.' ) if IPWrapper . isIPorIPList ( tgtstrstripped ) : for targ in IPWrapper . getTarget ( tgtstrstripped ) : targetlist . append ( targ ) else : targetlist . append ( tgtstrstripped ) else : # one target or list of range of targets added on console target = parser . Target tgtstrstripped = target . replace ( '[.]' , '.' ) . replace ( '{.}' , '.' ) . replace ( '(.)' , '.' ) if IPWrapper . isIPorIPList ( tgtstrstripped ) : for targ in IPWrapper . getTarget ( tgtstrstripped ) : targetlist . append ( targ ) else : targetlist . append ( tgtstrstripped ) sitefac = SiteFacade ( parser . Verbose ) sitefac . runSiteAutomation ( parser . Delay , parser . Proxy , targetlist , sourcelist , parser . UserAgent , parser . hasBotOut , parser . RefreshRemoteXML , __GITLOCATION__ ) sites = sitefac . Sites if sites : SiteDetailOutput ( sites ) . createOutputInfo ( parser )