Relay Module — vsmartcard 2017-01-16 documentation

# Relay Module

class `virtualsmartcard.cards.Relay.` `RelayOS`(readernum)

  Bases: `virtualsmartcard.VirtualSmartcard.SmartcardOS`

  This class implements relaying of a (physical) smartcard. The RelayOS forwards the command APDUs received from the vpcd to the real smartcard via an actual smart card reader and sends the responses back to the vpcd. This class can be used to implement relay or MitM attacks.

  `cleanup`()

    Close the connection to the physical card

  `execute`(msg)
  `getATR`()
  `powerDown`()
  `powerUp`()
  `reset`()