Example #1
0
def main(args):
    logging.print('''                   
 ____              ____              
|    \ ___ ___ ___|    \ ___ ___ ___ 
|  |  | -_| -_| . |  |  |  _| . | . |
|____/|___|___|  _|____/|_| |___|  _|
              |_|               |_|  
    ''')

    app = Flask(__name__)
    
    try: 
        # Load the models
        models.load_models()
        logging.warn('All models loaded')

        # Patch our payloads - will be moved.
        deepdrop.patch_payloads(config.payload_files, config.domain)
        logging.warn(f'Payloads patched for {config.domain}')

        if args.debug:
            captains_key = str(uuid.uuid4())
            app.config['CAPTAINS_KEY'] = captains_key
            app.debug = True

            logging.debug(captains_key)

        # Setup our routes
        routing.setup_routes(app)

    except Exception as e:
        logging.error(str(e))

    app.run('0.0.0.0', 80, threaded=False, use_reloader=False) # No threading because https://github.com/keras-team/keras/issues/2397
Example #2
0
    def deliver(keycode):

        if keycode not in keycodes['keycode']:
            logging.print('[!] Not a valid code')

            return redirect(url_for('index'))

        else:
            stager = create_payload()
            keycodes['used_codes'].append(keycode)
            keycodes['keycode'].clear()

            return Response(stager, mimetype='text/plain')
Example #3
0
from core import config
from core import routing
from core import logging
from core import ddmodels
from core import payloads

if __name__ == '__main__':

    parser = argparse.ArgumentParser(description="Intelligent Droppers")

    args = parser.parse_args(sys.argv[1:])

    logging.print('''                   
 ____              ____              
|    \ ___ ___ ___|    \ ___ ___ ___ 
|  |  | -_| -_| . |  |  |  _| . | . |
|____/|___|___|  _|____/|_| |___|  _|
              |_|               |_|  
    ''')

    app = Flask(__name__,
                template_folder="core/templates",
                static_folder="core/static")

    try:
        ddmodels.load_models()

        routing.setup_routes(app)

        logging.success('Routes loaded')