Method: HardsploitAPI.getNumberOfBoardAvailable

Defined in:
lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb

.getNumberOfBoardAvailableObject

Obtain the number of hardsploit connected to PC Return number



15
16
17
# File 'lib/HardsploitAPI/Core/HardsploitAPI_USB_COMMUNICATION.rb', line 15

def self.getNumberOfBoardAvailable
  return LIBUSB::Context.new.devices(:idVendor => 0x0483, :idProduct => 0xFFFF).size
end