(self, cmd)
Send the command to the remote host
Send the command to the remote host
Send the command to the remote host
def send(self, cmd):
        """Send the command to the remote host"""
        try:
            if self.encrypt:
                cmd = self.rc4.encrypt(cmd)
            pkt = Ether() / ARP(pdst=self.remote_host)
            pkt /= cmd
            sendp(pkt, count=1)
        except Exception, e:
            util.Error(e)
def send ( self , cmd ) : try : if self . encrypt : cmd = self . rc4 . encrypt ( cmd ) pkt = Ether ( ) / ARP ( pdst = self . remote_host ) pkt /= cmd sendp ( pkt , count = 1 ) except Exception , e : util . Error ( e )