Method: HardsploitAPI.allPosibility

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

.allPosibility(numberOfConnectedPinFromA0:, numberOfSignalsForBus:) ⇒ Object



175
176
177
178
179
180
181
182
183
184
# File 'lib/HardsploitAPI/Core/HardsploitAPI.rb', line 175

def self.allPosibility(numberOfConnectedPinFromA0:,numberOfSignalsForBus:)
    if numberOfConnectedPinFromA0 < numberOfSignalsForBus then
      raise HardsploitAPI::ERROR::API_SCANNER_WRONG_PIN_NUMBER
    end
    a =	  Array.new
    for i in 0..numberOfConnectedPinFromA0-1
      a.push i
    end
   return a.permutation.to_a
end