https://github.com/divinemonk/program_dumps
[program_dumps]: day-to-day workflow automation scripts & programs!
https://github.com/divinemonk/program_dumps
automation bash burp burp-requests converter day-to-day linux python python3 requests scripts sh shell unix
Last synced: 3 months ago
JSON representation
[program_dumps]: day-to-day workflow automation scripts & programs!
- Host: GitHub
- URL: https://github.com/divinemonk/program_dumps
- Owner: Divinemonk
- Created: 2023-05-07T15:19:34.000Z (about 3 years ago)
- Default Branch: m41n
- Last Pushed: 2024-01-22T06:06:21.000Z (over 2 years ago)
- Last Synced: 2025-06-13T10:50:54.195Z (about 1 year ago)
- Topics: automation, bash, burp, burp-requests, converter, day-to-day, linux, python, python3, requests, scripts, sh, shell, unix
- Language: Python
- Homepage:
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Program Dumps
> day-to-day workflow automation scripts & programs
## Index
| pseudonym | raw code | prog lang |
| --- | --- | --- |
| [Mass remane files](#massnamer) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/massnamer.py) | python3 |
| [Monitor mode](#monitormode) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/monitormode.sh) | bash script |
| [Response code checker](#responsor) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/responsor.py) | python3 |
| [Burp Raw Requests To Python](#brrtp) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/brrtp.py) | python3 |
| [Optiptical Character Recognizer](#ocr) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/ocr.py) | python3 |
| [Filesystem Path Logger](#logpath) | [source code](https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/logpath.py) | python3 |
## Notes
- linux users can use `sudo chmod +x ` to run directly (eg: `sudo monitormode wlan1 mon`, without `bash` prefix)
- all the programs are here are integrated/avaliable in one installation/program [___bto___](https://github.com/Divinemonk/bto)
<br>
<hr>
<br>
## massnamer
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](https://github.com/Divinemonk/program_dumps/blob/m41n/massnamer.py)
<br>
<hr>
<br>
## monitormode
- 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](https://github.com/Divinemonk/program_dumps/blob/m41n/monitormode.sh)
<br>
### Manual commands:
- 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` or `ifconfig`
<br>
<hr>
<br>
## responsor
- 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
```
[usage]: python3 responsor.py <url_list_file>
```
- Download: `wget https://raw.githubusercontent.com/Divinemonk/program_dumps/m41n/responsor.py`
- [Goto source code](https://github.com/Divinemonk/program_dumps/blob/m41n/responsor.py)
<br>
<hr>
<br>
## brrtp
- 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](https://github.com/Divinemonk/program_dumps/blob/m41n/brrtp.py)
<br>
<hr>
<br>
## ocr
- Optiptical Character Recognizer
- Extracts text from images
- it uses tesseract (installation guides: [windows](https://linuxhint.com/install-tesseract-windows/), [linux](https://linuxhint.com/install-tesseract-ocr-linux/), [mac](https://www.oreilly.com/library/view/building-computer-vision/9781838644673/95de5b35-436b-4668-8ca2-44970a6e2924.xhtml))
- 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](https://github.com/Divinemonk/program_dumps/blob/m41n/ocr.py)
<br>
<hr>
<br>
## logpath
- 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](https://github.com/Divinemonk/program_dumps/blob/m41n/logpath.py)