Hopefully it is ok to ask this question here, but here it is.

I am trying to create a custom password list. The routers I am testing have a default password that uses the last 10 of LAN MAC. It just so happens that the value of the last two digits of the LAN MAC is one less hex value than the WLAN MAC.

For example.

WLAN MAC is 112233445566, therefore I know the default WiFi password is going to be 2233445565.

Another example

WLAN MAC is 112233abcdef, so the WiFi password will be 2233abcdee.

Of course the tricky one would be

WLAN MAC of 112233abcde0 therefore the WiFi password will be 2233abcddf

In Linux: I can easily cut digits 3-12, but is there any way to decrease the last two digits by one hex value?

I am trying to create a custom password list. The routers I am testing have a default password that uses the last 10 of LAN MAC. It just so happens that the value of the last two digits of the LAN MAC is one less hex value than the WLAN MAC.

For example.

WLAN MAC is 112233445566, therefore I know the default WiFi password is going to be 2233445565.

Another example

WLAN MAC is 112233abcdef, so the WiFi password will be 2233abcdee.

Of course the tricky one would be

WLAN MAC of 112233abcde0 therefore the WiFi password will be 2233abcddf

In Linux: I can easily cut digits 3-12, but is there any way to decrease the last two digits by one hex value?