def start(context, argv): global args from recordpeeker.command_line import parse_args args = parse_args(argv) ips = set([ii[4][0] for ii in socket.getaddrinfo(socket.gethostname(), None) if ii[4][0] != "127.0.0.1"]) print "Configure your phone's proxy to point to this computer, then visit mitm.it" print "on your phone to install the interception certificate.\n" print "Record Peeker is listening on port {0}, on these addresses:".format(args.port) print "\n".join([" * {0}".format(ip) for ip in ips]) print "" print "Try entering the Party screen, or starting a battle." global dp dp = Dispatcher('ffrk.denagames.com') [dp.register(path, function) for path, function in handlers] [dp.ignore(path, regex) for path, regex in ignored_requests]
def start(context, argv): global args from recordpeeker.bin.command_line import parse_args args = parse_args(argv) ips = set([ii[4][0] for ii in socket.getaddrinfo(socket.gethostname(), None) if ii[4][0] != "127.0.0.1"]) print "Configure your phone's proxy to point to this computer, then visit mitm.it" print "on your phone to install the interception certificate.\n" print "Record Peeker is listening on port {0}, on these addresses:".format(args.port) print "\n".join([" * {0}".format(ip) for ip in ips]) print "" print "forever24 is looking for '{0}' (case-sensitive).".format(args.find) print "Waiting for you to enter the Magitek Facility..." global dp dp = Dispatcher('ffrk.denagames.com') dp.register('/dff/event/coliseum/6/enter_dungeon', enter_dungeon, flow=True) [dp.ignore(path, regex) for path, regex in ignored_requests]