Example #1
0
def prepare_requests(args):
    headers = {
        'User-Agent':
        'Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0',
        'Accept':
        'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
        'Accept-Language': 'en-US,en;q=0.5',
        'Accept-Encoding': 'gzip, deflate',
        'Connection': 'close',
        'Upgrade-Insecure-Requests': '1'
    }
    if type(headers) == bool:
        headers = extractHeaders(prompt())
    elif type(headers) == str:
        headers = extractHeaders(headers)
    if mem.var['method'] == 'JSON':
        mem.headers['Content-type'] = 'application/json'
    if args.url:
        params = getParams(args.include)
        return {
            'url': args.url,
            'method': mem.var['method'],
            'headers': headers,
            'include': params
        }
    elif args.import_file:
        return importer(args.import_file, mem.var['method'], headers,
                        args.include)
    return []
Example #2
0
 def __init__(self):
     self.db = db()
     self.badges = badges()
     self.importer = importer()
     self.storage = storage()
     self.config = config()
     self.modules = modules()
Example #3
0
    def __init__(self):
        self.badges = badges()
        self.local_storage = local_storage()
        self.plugins = plugins()
        self.importer = importer()

        self.details = {
            'Category': "plugin",
            'Name': "load",
            'Description': "Load specified plugin.",
            'Usage': "load <plugin>",
            'MinArgs': 1
        }
Example #4
0
    def __init__(self):
        self.importer = importer()
        self.badges = badges()
        self.local_storage = local_storage()
        self.modules = modules()

        self.details = {
            'Category': "module",
            'Name': "use",
            'Description': "Use specified module.",
            'Usage': "use <module>",
            'MinArgs': 1
        }
Example #5
0
    def __init__(self):
        self.io = io()
        self.badges = badges()
        self.storage = storage()
        self.importer = importer()

        self.details = {
            'Category': "plugin",
            'Name': "load",
            'Description': "Load specified plugin.",
            'Usage': "load <plugin>",
            'ArgsCount': 1,
            'NeedsArgs': True,
            'Args': list()
        }
Example #6
0
    def __init__(self):
        self.io = io()
        self.importer = importer()
        self.badges = badges()
        self.storage = storage()
        self.modules = modules()

        self.details = {
            'Category': "module",
            'Name': "use",
            'Description': "Use specified module.",
            'Usage': "use <module>",
            'ArgsCount': 1,
            'NeedsArgs': True,
            'Args': list()
        }
Example #7
0
 def __init__(self):
     self.badges = badges()
     self.importer = importer()
     self.local_storage = local_storage()
     self.modules = modules()
 def __init__(self):
     self.badges = badges()
     self.importer = importer()
     self.storage = storage()
Example #9
0
 def __init__(self):
     self.badges = badges()
     self.importer = importer()
     self.config = config()
Example #10
0
                progress += ((10 - page) * 10 / 3)
                del available_plugins[this_result[2]]
            for url in this_result[0]:
                requests[url] = []
            print('%s Progress: %i%%' % (info, progress), end='\r')
        page += 1
    print('%s Progress: %i%%' % (info, 100), end='\r')
    return requests

all_params = []

requests = None
if args.host:
    requests = fetch_urls(args.host)
elif args.input_file:
    requests = importer(args.input_file)
if requests:
    result, all_params = scanner(requests, args.save_params, args.dupes)
    if args.output_file:
        save_result(result, args.output_file, args.output_format)
        print('%s Result saved to %s' % (info, args.output_file))
    else:
        for each in result:
            print('%s+%s %s' % (green, end, each['url']))
            print('    %s- issues:%s   %s' % (green, end, ', '.join(each['issues'])))
            print('    %s- location:%s %s' % (green, end, each['location']))
            if each['data']:
                print('%s- data:%s %s' % (green, end, each['data']))
else:
    print('%s No targets specified.' % bad)
import sys
from core import importer


def main():
    print("Hello World!")


if __name__ == "__main__":
    #print(sys.argv[1])
    if sys.argv[1] == 'import_mov':
        if '-h' in sys.argv[1:]:
            print('''
            import_mov file_path year
            import movemnts files to the system
            ''')
        else:
            imp = importer.importer()
            #print(sys.argv[2],sys.argv[3])
            imp.read_file_ETrade(sys.argv[2], sys.argv[3])