day-to-day workflow automation scripts & programs
pseudonym | raw code | prog lang |
---|---|---|
Mass remane files | source code | python3 |
Monitor mode | source code | bash script |
Response code checker | source code | python3 |
Burp Raw Requests To Python | source code | python3 |
Optiptical Character Recognizer | source code | python3 |
Filesystem Path Logger | source code | python3 |
- linux users can use
sudo chmod +x <script/program name>
to run directly (eg:sudo monitormode wlan1 mon
, withoutbash
prefix) - all the programs are here are integrated/avaliable in one installation/program bto
Mass rename files is particular pattern or style you prefer.
usage: massnamer.py [-h] [-p PATTERN] [-r] [-pf PREFIX] [-npf NEW_PREFIX] FOLDER
Mass Rename Files
positional arguments:
FOLDER path to the folder containing the files
optional arguments:
-h, --help show this help message and exit
-p PATTERN, --pattern PATTERN
new file name pattern
-r, --random rename files randomly
-pf PREFIX, --prefix PREFIX
rename files starting with the specified prefix
-npf NEW_PREFIX, --new-prefix NEW_PREFIX
new prefix to replace the old prefix
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/massnamer.py
- Goto source code
- Change your network interface to monitor mode (and back to managed mode) with one command.
- Sometimes the script works, interface is changed to monitor mode but unable to detect the change and dispalys failed. Try
iw dev
or similar commands to check the interface mode manually.
[usage]: `./monitor-mode <interface> <mode>`
interface -> network interface to change
mode -> `mon` for monitor mode
`man` for managed mode
RUN script as ROOT: `sudo ./monitor-mode <interface> <mode>`
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/monitormode.sh
- Goto source code
- method 1 (used in script)
ip link set <interface> down
iw <interface> set monitor control (OR iw <interface> set type managed)
ip link set <interface> up
- method 2
sudo ifconfig <interface> down
sudo iwconfig <interface> mode monitor
sudo ifconfig <interface> up
- Check <interface> name using
iw dev
orifconfig
- display response codes for websites/urls from the given list
- usecase:
- check subdomains response codes (save subdomains in a list:
subfinder -d example.com > URL_LIST.txt
) - have bunch of urls, check response of each
- check subdomains response codes (save subdomains in a list:
[usage]: python3 responsor.py <url_list_file>
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/responsor.py
- Goto source code
- Burp Raw Requests To Python
- converts raw requests from burp suite to python code
- output:
- prints the converted python code
- saves it in a file (named same as
burp_raw_request_file
name with.py
extenstion)
[usage]: python3 brrtp.py <burp_raw_request_file>
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/brrtp.py
- Goto source code
- Optiptical Character Recognizer
- Extracts text from images
- it uses tesseract (installation guides: windows, linux, mac)
- python libraries used: PIL, pytesseract, numpy (
pip install Pillow pytesseract numpy
)
[usage]: python3 ocr.py <image_filename>
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/ocr.py
- Goto source code
- Directory tree logger and searcher
- Generate a log of files & folders paths (w/
-g
) - Search certain file/folder from logged file, faster that locate or find command (w/
-q
)
Welcome to logpath - your directory tree logger and searcher!
Usage:
python3 logpath.py -g -f custom_log_filename
python3 logpath.py -q search_query -f custom_log_filename
[default log filename is `directory_tree_log.txt` if `-f` is not specified]
Options:
-h, --help Display this help message
-g, --generate Generate directory tree log
-f, --filename Specify custom log file name (default is directory_tree_log.txt)
-q, --query Search for a file/folder and get its absolute path
- Download:
wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/logpath.py
- Goto source code