horizon3ai / vcenter_saml_login

A tool to extract the IdP cert from vCenter backups and log in as Administrator
MIT License
472 stars 89 forks source link

UnicodeDecodeError #12

Open dasad1564112 opened 2 years ago

dasad1564112 commented 2 years ago

Hello, my Python encoding has been UTF-8, but still exploding such a mistake, my Data.mdb file has 1GB. It can be unspeakable when I solve the old MDB before I can solve it.

python3 vcenter_saml_login.py -t xx.xx.xx.xx -p data.mdb [*] Successfully extracted the IdP certificate Traceback (most recent call last): File "/vcenter_saml_login.py", line 342, in <module> trusted_cert_1, domain = get_trusted_cert1(bin_stream, args.verbose) File "/vcenter_saml_login.py", line 168, in get_trusted_cert1 cn = stream.read(f'bytes:{cn_len}').decode() UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 139: invalid start byte

chibd2000 commented 7 months ago

how to solve?