Ejemplo n.º 1
0
    if args.install:
        # Install scutum into system
        avalon.info('Start Installing SCUTUM...')
        installer.install()
        print('\n' + avalon.FM.BD, end='')
        avalon.info('Installation Complete!')
        avalon.info('SCUTUM service is now enabled on system startup')
        avalon.info('You can now control it with systemd')
        avalon.info("You can also control it manually with \"scutum\" command")
        exit(0)
    elif args.uninstall:
        # Removes scutum completely from the system
        # Note that the configuration file will be removed too
        if avalon.ask('Removal Confirm: ', False):
            installer.removeScutum()
        else:
            avalon.warning('Removal Canceled')
            exit(0)
    elif args.reset:
        # resets the arptable, ufw and accept all incoming connections
        # This will expose the computer entirely on the network
        log.writeLog(str(datetime.datetime.now()) + ' ---- START ----')
        os.system('arptables -P INPUT ACCEPT')
        os.system('arptables --flush')
        if ufwHandled.lower() == "true":
                ufwctrl = Ufw(log)
                ufwctrl.disable()
        avalon.info('RST OK')
        log.writeLog(str(datetime.datetime.now()) + ' RESET OK')
    elif args.purgelog: