zoobab / EMVCAP

This tool emulates an EMV-CAP device
26 stars 11 forks source link

parsedRAPDU: TypeError: argument of type 'bool' is not iterable #3

Open eBug opened 3 years ago

eBug commented 3 years ago
Traceback (most recent call last):
  File "/usr/local/bin/EMV-CAP", line 453, in <module>
    if 0x80 in parsedRAPDU:
TypeError: argument of type 'bool' is not iterable

the referred line is: if 0x80 in parsedRAPDU:

This happens after upgrading my system to Debian 11. I'm no good at python, so I'm pretty clueless...

eBug commented 3 years ago

echoing parsedRAPDU shows:

[<TLV
    Tag:    77 (response message template format 2)
            application class
            constructed
    Length: 14 bytes
    Value:  
    [<TLV
        Tag:    82 (application interchange profile (AIP))
                context specific class
                primitive
        Length: 2 bytes
        Value:  3900
    >, <TLV
        Tag:    94 (application file locator)
                context specific class
                primitive
        Length: 8 bytes
        Value:  0801010110010501
    >]
>]