(self)
Fetch remote host and perform any encryption
           runtime generation.
Fetch remote host and perform any encryption
           runtime generation.
Fetch remote host and perform any encryption runtime generation .
def initialize(self):
        """Fetch remote host and perform any encryption
           runtime generation.
        """
        util.Msg('The slarpd daemon should be running on the remote host!')

        while True:
            try:
                tmp = raw_input('[!] Remote host: ')
                if len(tmp.split('.')) is 4:
                    self.remote_host = tmp

                tmp = raw_input('[!] Encrypt traffic? ')
                if not 'n' in tmp.lower():
                    self.initialize_crypto()
                    util.Msg('Traffic encrypted.')
                    self.encrypt = True
                break
            except Exception, e:
                util.Error(e)
        util.Msg('Spawning remote shell to %s' % (self.remote_host))
        self.shell()
def initialize ( self ) : util . Msg ( 'The slarpd daemon should be running on the remote host!' ) while True : try : tmp = raw_input ( '[!] Remote host: ' ) if len ( tmp . split ( '.' ) ) is 4 : self . remote_host = tmp tmp = raw_input ( '[!] Encrypt traffic? ' ) if not 'n' in tmp . lower ( ) : self . initialize_crypto ( ) util . Msg ( 'Traffic encrypted.' ) self . encrypt = True break except Exception , e : util . Error ( e ) util . Msg ( 'Spawning remote shell to %s' % ( self . remote_host ) ) self . shell ( )