Sha256: 99f46afc1fe1ad3db1f5d0df991f7e4c86016dda9a849e6e2ec10630872a6c7b
Contents?: true
Size: 438 Bytes
Versions: 7
Compression:
Stored size: 438 Bytes
Contents
# -*- coding: binary -*- ## # ACPP protocol support ## module Rex module Proto module ACPP class Client def initialize(sock, opts = {}) @sock = sock @opts = opts end def authenticate(password = 'public') login = Message.new login.password = password login.type = 20 @sock.put(login.to_s) # TODO: the checksum never validates here Message.decode(@sock.get_once(128), false) end end end end end
Version data entries
7 entries across 7 versions & 1 rubygems