hello i am making a script but keep having an error pop up:
File "creditcardsniff.py", line 70, in findCreditCard
print(f"{GREEN}{BRIGHT}[+] Found American Express Card: " + str(americaRE[0]) +""+ str(CCVRE[0]) +""+ str(MMYY[0]))
IndexError: list index out of range
ive had 2 people try and help me solve it by rewriting the regex thats the only solution we could think of. we seen that scapy just finds the mmyy empty but detects everything else (card and ccv) here is the Regular expression formats that im using if that helps:
MMYY = re.findall("(0[1-9]|10|11|12)\/[0-9]{2}", raw)
if you need more info let me know im also using python 3.8