(self)
Kill the local HTTP server, remove the iptable rules,
            and shut down the proxy.
Kill the local HTTP server, remove the iptable rules,
            and shut down the proxy.
Kill the local HTTP server remove the iptable rules and shut down the proxy .
def shutdown(self):
        """ Kill the local HTTP server, remove the iptable rules,
            and shut down the proxy.
        """
        util.Msg("Shutting PEMod down...")
        if not util.kill_app(self.http_server):
            util.Error('Failed to kill HTTP server!')

        self.modip_rule(False)
        self.proxy_server.shutdown()
        self.hooker.shutdown()

        # delete all the backdoored binaries
        util.init_app('rm -fr /tmp/.pe/')
def shutdown ( self ) : util . Msg ( "Shutting PEMod down..." ) if not util . kill_app ( self . http_server ) : util . Error ( 'Failed to kill HTTP server!' ) self . modip_rule ( False ) self . proxy_server . shutdown ( ) self . hooker . shutdown ( ) # delete all the backdoored binaries util . init_app ( 'rm -fr /tmp/.pe/' )