blackorbird / APT_REPORT

Interesting APT Report Collection And Some Special IOC
2.44k stars 516 forks source link

fix: find will return -1 on failure #8

Closed RealHurrison closed 7 months ago

RealHurrison commented 7 months ago

find will return -1 on failure not 0 or bool

if -1:
    print("passwd")

This code snippet will print 1, so the if check to find header is incorrect.