Closed psrok1 closed 1 year ago
In [1]: from mwdblib import MWDB In [2]: mwdb = MWDB() In [3]: mwdb Out[3]: MWDB(api_url='https://mwdb.cert.pl/api/', username='psrok1') In [4]: next(mwdb.recent_files()) Out[4]: MWDBFile(sha256='16b83c892688e1869a75fcf88075e1a7a0983c284c41a7ff721e23cb6b9c9f86', name='1e6d0394a9335f03d83a7f498df12ec8.exe') In [5]: next(mwdb.recent_configs()) Out[5]: MWDBConfig(id='41769caf7f92e5b280b18e9fa08647413eea2323afec8f517184294d3cad1ecb', family='mirai', type='static') In [6]: config = next(mwdb.recent_configs()) In [7]: config.parents Out[7]: [MWDBFile(sha256='d1382ae79bfca963d493ada55cdc759a2c809d66020c55722b0016f6c6522874', name='3063db1d8b9970df0c740e8c7d5b9bfa.elf')]