dougy147 / mcbash

Find MAC addresses on IPTV providers.
GNU General Public License v3.0
102 stars 35 forks source link

Invalid DNS format #27

Closed Twistee closed 1 month ago

Twistee commented 1 month ago

Hey guys i get the error invalid dns format with EVERY URL i tried. This is my input/output: mcbash -u yesimes.oknirvana.club:8880 -w 1.5 -b 10 -d 3 -s 1500 -t 2 grep: repetition-operator operand invalid ERROR: invalid DNS format.

Am i doing something wrong?

dougy147 commented 1 month ago

Hi @Twistee,

Could you provide the output of grep -V and bash --version?

You are doing nothing wrong, I suspect this is some kind of compatibility problem with grep.

mcbash has a built-in URL checker that needs grep with extended regexp support (-E). As far as I know, it should work with recent versions (even BusyBox).

As a shaky workaround, you could try replacing everything in the inspect_dns() function by something dummy like echo "Bypassing DNS checking.".

Twistee commented 1 month ago

bash --version

Thank you for trying to help :)

These are my versions => ➜ ~ grep -V grep (BSD grep, GNU compatible) 2.6.0-FreeBSD ➜ ~ bash --version GNU bash, version 3.2.57(1)-release (arm64-apple-darwin24) Copyright (C) 2007 Free Software Foundation, Inc.

putting dummy code into the function also did not resolve the error for what ever reason..

dougy147 commented 1 month ago

Classic macOS' out-of-date packages :/, he are some workarounds:

if this does not work, I'll add a bypass option

Twistee commented 1 month ago
  • sh ./bin/mcbash

Wow thank you it really worked :) I wrongly tried to adjust the function in the func directory and not in the script file directly. God bless ✌️

dougy147 commented 1 month ago

Glad it worked :) !

Modifying it in the func directory can work too if you then run sh build.sh (it rebuilds the script inside the ./bin/mcbash folder).