Beispiel #1
0
if args.user_agent is not None:
    cua = args.user_agent
elif args.random_agent is not None:
    cua = cmseek.randomua('random')
else:
    cua = None

if args.googlebot:
    cua = 'Googlebot/2.1 (+http://www.google.com/bot.html)'
if args.url is not None:
    s = args.url
    target = cmseek.process_url(s)
    if target != '0':
        if cua == None:
            cua = cmseek.randomua()
        core.main_proc(target, cua)
        cmseek.handle_quit()
elif args.list is not None:
    sites = args.list
    cmseek.clearscreen()
    cmseek.banner("CMS Detection And Deep Scan")
    sites_list = []
    try:
        ot = open(sites, 'r')
        file_contents = ot.read().replace('\n', '')
        sites_list = file_contents.split(',')
    except FileNotFoundError:
        cmseek.error('Invalid path! CMSeeK is quitting')
        cmseek.bye()
    if sites_list != []:
        if cua == None:
Beispiel #2
0
def cmseekapi(target, cua=None):
    target = cmseek.process_url(target)
    if cua == None:
        cua = cmseek.randomua()
    core.main_proc(target, cua)