Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Read charset from file? #14

Open
madbombs opened this issue Jan 6, 2018 · 1 comment
Open

Read charset from file? #14

madbombs opened this issue Jan 6, 2018 · 1 comment

Comments

@madbombs
Copy link

madbombs commented Jan 6, 2018

Thanks for this wonderful app. I'm not sure this is intentional or not, but unlike hc, mp cannot input a charset from file in (at least not in Windows). As a result, I've resorted to using an environment variable with the charset instead.

C:> set mycharset=0102030406070B0C0F1112131416171B1C1F....
C:> mp64 -q 2 -1 %mycharset% ?1?1?1?1?1?1?1?1?1?1?1?1?1?1?1?1 --hex-charset

Will reading charset from file be supported in the future?

@rapbando
Copy link

rapbando commented Sep 27, 2021

Thanks for this wonderful app. I'm not sure this is intentional or not, but unlike hc, mp cannot input a charset from file in (at least not in Windows). As a result, I've resorted to using an environment variable with the charset instead.

C:> set mycharset=0102030406070B0C0F1112131416171B1C1F....
C:> mp64 -q 2 -1 %mycharset% ?1?1?1?1?1?1?1?1?1?1?1?1?1?1?1?1 --hex-charset

Will reading charset from file be supported in the future?

I used XARGS to import a file containing rules so it iterates the program for each line and writes everything in the same file like this:

xargs -0 -n 1 mp64 -o dictionary.txt < <(tr \\n \\0 </home/user/rules.txt)

Example of a rule inside rules.txt

+1555?d?d?d?d?d?d?d

It created a 5GB file in 5 seconds on my average notebook.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants