Method: Rex::Socket.eth_aton
- Defined in:
- lib/rex/socket.rb
.eth_aton(mac) ⇒ Object
Converts a colon-delimited MAC address into a 6-byte binary string
428 429 430 |
# File 'lib/rex/socket.rb', line 428 def self.eth_aton(mac) mac.split(":").map{|c| c.to_i(16) }.pack("C*") end |