Unlike pinned messages, if the passwords, aws-keys.txt, private-keys, urls are not found it is not acknowledged properly.
In case of specific harvesting, such as for example only credential-scan an empty folder is created inspite of no harvested data.
A solution that I can think of is:
Before returning the control back to the main function, a cleanup function can remove the empty files and directories created as part of the process.
Unlike
pinned messages
, if thepasswords
,aws-keys.txt
,private-keys
,urls
are not found it is not acknowledged properly. In case of specific harvesting, such as for example onlycredential-scan
an empty folder is created inspite of no harvested data.Steps to reproduce
CREDENTIAL_REGEX
with a random value such that it does not match any message.CREDENTIAL_REGEX=r"lorem ipsum xyz abc mno"
https://github.com/emtunc/SlackPirate/blob/501483363abb1049d07abc16da0db1f05641175c/SlackPirate.py#L92 and replaceCREDENTIALS_QUERIES
with random value.CREDENTIALS_QUERIES = ["lorem"]
https://github.com/emtunc/SlackPirate/blob/501483363abb1049d07abc16da0db1f05641175c/SlackPirate.py#L38$ ./SlackPirate.py --token xoxs-xxxxx --credential-scan
passwords.txt
created.