Method: Rex::Socket.eth_ntoa

Defined in:
lib/rex/socket.rb

.eth_ntoa(bin) ⇒ Object

Converts a 6-byte binary string into a colon-delimited MAC address



435
436
437
# File 'lib/rex/socket.rb', line 435

def self.eth_ntoa(bin)
  bin.unpack("C6").map{|x| "%.2x" % x }.join(":").upcase
end