wheregoes / utils-scripts

Useful scripts in Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DMF - Download multiple files from a file or user input and save on folder.
MMF- Move/Copy multiple files.
SFE - Separate files by extension
HAM - RandomHashAccessMemories
RDF - Search recursively for duplicate files by calculating hash of every file and delete.

dmf.py

Description
Download multiple files from a file or user input and save on folder.

Requirements: pip install requests tqdm colorama

Features
✔️ Can choose to download one file at time or many you want using multi-thread option.
✔️ Log when can't download a file.
✔️ Log when can't download the file entirely.
✔️ Cooldown and try again when fails to start downloading a file.
✔️ Can be used in background.

Future Updates
➖ Handle URLs from Clearnet and Deep/Dark web (.onion) together.
➖ Improve the log registry (add status code etc).
Suggestions

Usage:

python3 dmf.py [--multi-thread] [-T NUM_THREADS]

To use with .onion websites you can use torsocks before the script e.g: torsocks python3 dmf.py

mmf.py

Description
Move/Copy multiple files.

Requirements: none

Features
✔️ Supports Regex.
✔️ Move/copy files from differents folders.
✔️ Can be used in background.

Future Updates
➖ Handle permissionError when try to moving a file without necessary permissions (eg. read-only).
Suggestions

Usage:

python3 mmf.py [--regex] [-cp] [-mv] [-nd] source_paths_file destination_folder

Move/Copy Multiple Files and Folders

positional arguments:
  source_paths_file   Path to the source_paths.txt file or enter paths one by one.
  destination_folder  Path to the destination folder.

options:
  -h, --help          Help
  --regex             Use regex to match files and folders in the source directory.
  -mv, --move-files   Move files/folders to the destination folder.
  -cp, --copy-files   Copy files/folders to the destination folder.
  -nd, --no-dir       Do not move/copy folders to the destination folder.

sfe.py

Description
Separate files by extension

Requirements: pip install colorama

Features
✔️ Log when can't move/copy a file.
✔️ Can be used in background.

Future Updates
Suggestions

Usage:

usage: python3 sfe.py [-cp] [-mv] [-r] source_directory destination_directory

Separate files in folders by file extension

positional arguments:
  source_directory      Path to the source directory
  destination_directory Path to the destination directory

options:
  -h, --help            Help
  -cp, --copy-files     Copy files to destination directory
  -mv, --move-files     Move files to destination directory
  -r, --recursive       Recursively copy or move files

ham.py

Description
RandomHashAccessMemories

A script that provides a simple way to merge the cracked passwords to they respective usernames.

Example:

cat any_leak_user_hash.txt
user01:16e029226d8960b2d7cba16cab5f7044
user02:a280638195f9e88fb2fbdfcd1283d7fa
email@gmail.com:fee22a6247e95d5a08769c51a861cb00

cat any_leak_dehashed_pass.txt
16e029226d8960b2d7cba16cab5f7044:n00b
a280638195f9e88fb2fbdfcd1283d7fa:daftpunk
fee22a6247e95d5a08769c51a861cb00:checkstfproject

The script will merge these two files, changing the hashes that has been dehashed.

The third file result will be:

cat any_leak_user:pass.txt
user01:n00b
user02:daftpunk
email@gmail.com:checkstfproject

Requirements: pip install tqdm

Future Updates
Suggestions

Usage:

usage: ham.py input_file dehashed_file [-o OUTPUT_FILE]

positional arguments:
  input_file            The file containing the usernames and hashes.
  dehashed_file         The file containing the hashes and cracked passwords.

options:
  -o OUTPUT_FILE, --output_file OUTPUT_FILE
                        Output file with matched usernames and passwords.

rdf.py

Description
Search recursively for duplicate files by calculating hash of every file and delete.

Requirements: pip install tqdm sql

Features
✔️ Remove files recursively.
✔️ Can handle large files.
✔️ Log when can't remove a file.
✔️ Can be used in background.

Future Updates
Suggestions

Usage:

python3 rdf.py start_path

Process files and store their hashes in a SQLite database.

positional arguments:
  start_path  Starting path for file search

options:
  -h, --help  Help

About

Useful scripts in Python


Languages

Language:Python 100.0%