Skip to content

dougy147/mcbash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

264 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you twist it hard enough, mcbash will stand for Yet Another MAC Scanner.

Quick start

$ wget https://raw.githubusercontent.com/dougy147/mcbash/refs/heads/master/bin/mcbash
$ chmod +x ./mcbash
$ ./mcbash

Overview

mcbash --help displays most common options.

Requests

Option Functionality
-u, --url Server's URL/IP
-w, --wait Wait X seconds between each requests
-b, --break Make a break every X requests
-d, --pause-for Break duration (in seconds)
-s, --stop Stop McBash after X tested MACs
-t, --timeout Consider request a timeout after X seconds
-P, --proxy Set the proxy URL (any authentication method supported)
-pu, --proxy-user Set your proxy credentials user:password
--proxy-file Read proxy IPs from a file. Rotation when request timeout
-EA, --enhanced-auth Add SN and DevID1 to GET request (and save them if match)

Scan mode

Option Functionality
--mac-file Choose a file to read MACs from (MACs should be line by line)
--seq Check MACs in sequential order (--range is forced)
--range Set a range for checked MACs
-F, --from Set range lower boundary (lowest MAC value to check)
-L, --to Set range higher boundary (highest MAC value to check)
--prefix Select MACs prefix when screening in random mode

Filters 🆕

Option Functionality
--genre-regex Ensure specified genre exists (accepts regular expressions)
--playable Ensure stream/channels are playable (requires ffprobe)

Others

Option Functionality
-k, --keep Store expired MACs (valid addresses but expired accounts)
-np, --default Don't ask for parameters. Use default configuration
--show-only-mac Only outputs found MACs
--no-checkpoint Don't store checkpoints

For advanced settings, read the manual : man mcbash.

To change default options, simply edit $HOME/.config/mcbash/mcbash.conf.

Usecase examples

Scan sequentially from 00:1A:79:00:00:00 to 00:1A:79:00:11:11 :

$ mcbash -F 00:1A:79:00:00:00 -L 00:1A:79:00:11:11 --seq

Use proxy http://localhost:12345 and user:pwd as username and password :

$ mcbash --proxy http://localhost:12345 --proxy-user user:pwd

Use proxies listed in a text file (format must be IP[:PORT], one line = one proxy). Auto-rotation if current proxy fails :

$ mcbash --proxy-file /path/to/proxies-list.txt

Scan using your own MACs list (one line = one MAC) :

$ mcbash --mac-file ./path/to/your-MACs-list.txt

Keep MAC only if a genre containing "4K" or "HEVC" exists, and if channels can be played :

$ mcbash --genre-regex "(4K|HEVC)" --playable

Install

From source

$ git clone https://github.com/dougy147/mcbash
$ cd ./mcbash
$ make install

ArchLinux

$ yay -S mcbash

DISCLAIMER

bla bla bla don't hurt anyone with this tool, including yourself 3;)

Special thanks to contributors !

Feel free ! 😎

If mcbash has been of any help to you, I'd be glad and thankful !

ko-fi

BTC : bc1q4cflj0e3hwcn5edut654je86upn37p37gut5yk

About

User-friendly MAC scanner

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

 
 
 

Contributors