Skip to content

Commit

Permalink
update echoServer
Browse files Browse the repository at this point in the history
  • Loading branch information
noobpk committed Sep 13, 2023
1 parent b6a99f3 commit 9499f29
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion echoServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,17 @@ def do_FRIDA(self):
def main():
try:
if sys.version_info < (3, 0):
logger.error("[x_x] iOS hook requires Python 3.x")
logger.error("[x_x] echoServer requires Python 3.x")
sys.exit(0)
else:
logger.info('[*] Starting echoServer on port %d' % ECHO_PORT)
logger.info('[*] Listening on 127.0.0.1:%d' % ECHO_PORT)
server = HTTPServer(('', ECHO_PORT), RequestHandler)
server.serve_forever()

except Exception as e:
logger.error("[x_x] Something went wrong, please check your error message.\n Message - {0}".format(e))

except KeyboardInterrupt:
logger.info("Stop echoServer!!")

Expand Down

0 comments on commit 9499f29

Please sign in to comment.