Wordmagic

Sat Oct 27 01:49:39 UTC 2018

wordmagic-1.0.0.tar.gz released!

Configuring and building:

./configure --prefix=/usr
make

Now, as the root user:

make install

Thu Sep 10 21:30:19 UTC 2015

Wordmagic is an engine that generates wordlists from desired patterns based on the syntax of regular expression. It receives pattern from expression EXPRESSION or file FILE, or from standard input if a single hyphen-minus (-) is given as file name. Wordmagic performs to compile the pattern then uses internal word engine to generate corresponding set of strings according to the pattern’s rules based on using the syntax of regular expression to describe.

SYNOPSIS

wordmagic [OPTIONS] EXPRESSION
wordmagic [OPTIONS] -f FILE

EXAMPLES

wordmagic '(abc){1,10}'

Repeat string abc from 1 to 10 times

abc
abcabc
abcabcabc
abcabcabcabc
abcabcabcabcabc
abcabcabcabcabcabc
abcabcabcabcabcabcabc
abcabcabcabcabcabcabcabc
abcabcabcabcabcabcabcabcabc
abcabcabcabcabcabcabcabcabcabc

wordmagic '((123)|(ABC)|(abc)|(!@#)){2}'

Repeat a string exactly 2 times. This string can be any string among 4 strings 123 , ABC , abc and !@#

!@#!@#
abc!@#
!@#abc
123!@#
ABC!@#
abcabc
!@#123
!@#ABC
123abc
ABCabc
abc123
abcABC
123123
123ABC
ABC123
ABCABC

wordmagic '[[:punct:]]{,3}frank[0-5]*' -m10

[:punct:] is a predefined class of characters, used within bracket expressions. This is the class of 32 symbolic characters. They are
!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~
Characters ?+{|()\^$*.[ have special meaning in regular expressions. To preserve their literal value, place preceding each character with a backslash.
If your pattern contains a ' then the pattern must be enclosed by " and " instead of ' and '. In this case, a literal backslash must be preceded with 3 backslashes, eg: \\\\. In addition, a ! need 1 backslash: \! , a " need 1 backslash: \" , a literal $ need 2 backslashes: \\$ , and a ` need 1 backslash: \`
The middle section of the above pattern is a fixed string frank.
The below is some output paragraphs extracted. MAXLEN is 10

frank
!frank
"frank
#frank
$frank
%frank
!%frank
!&frank
!'frank
!(frank
!)frank
&(*frank20
&(*frank21
&(*frank22
&(*frank23
&(*frank30
&(*frank31
&(*frank32
&(*frank33
&)!frank00
&)!frank01

cat pattern.txt | wordmagic -f- -o wordlist.txt -b40mb

Get patterns from standard input piped from output of cat command for file pattern.txt. Write the output to file wordlist.txt with maximum size of output data is 40 Megabytes

wordmagic '([1-9][0-9]?|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\.([0-9]{1,2}|1[0-9]{2}|2[0-4][0-9]|25[0-5])){3}'

This command will generate IP addresses with data information as follows

. 68261992512 bytes
. 65100 MB
. 64 GB
. 0.1 TB
. 4799379480 Lines

The below is an output data paragraph extracted.

161.183.205.207
161.183.205.208
161.183.205.209
161.183.205.210
161.183.205.211
161.183.205.212
161.183.205.213
161.183.205.214
161.183.205.215
161.183.205.216
161.183.205.217
161.183.205.218
161.183.205.219
161.183.205.220
161.183.205.221
161.183.205.222

wordmagic -f pattern.txt | aircrack-ng -w- -b TARGET psk*.cap

Wordmagic generates password list from pattern of file pattern.txt. The output is piped into aircrack-ng.
TARGET is bssid of the target to attack. psk*.cap are your cap files.