def ready(self): self.lock_player_input() self.fighter[0].avatar.face(1) self.fighter[0].set_position((150, 190)) self.fighter[1].avatar.face(0) self.fighter[1].set_position((170, 190)) # make sure the default animation is played at start of fight [f.reset() for f in self.fighter] banner_x = 322 / 2 - (self.fight_image.get_rect().width / 2) fight_banner = Banner(self.fight_image, (banner_x, 100), 1000) fight_banner.avatar.callback = (self.release_input_lock, []) fight_banner.show() self.pre_run()
import os import threading import sys import time if __name__ == '__main__': try: # Do root or reboot! if os.geteuid() != 0: exit(colors.RED + "[!] Root privileges needed to run this script" + colors.DEFAULT) # Everyone loves banners b = Banner() b.show() net = Net() net.enable_forward() print(colors.WHITE + "[*] Available network interfaces:\n" + colors.DEFAULT) count = 0 for x in net.get_avail_interfaces(): print("\t" + str(count) + ") " + x) count += 1 ans = "" while not ans.strip().isdigit() or int(ans.strip()) > count: ans = input(colors.BLUE + "\nmitm" + colors.WHITE + ":" + colors.BLUE + "interface" + colors.WHITE + "> " + colors.DEFAULT)