资 源 简 介
This project is currently moving to https://github.com/teeshop/rexgen
What is rexgen?
rexgen is a library which allows you to create all words that match the given regular expression.
The aim of this tool is to check if some secret follows a given pattern, which is an integral part of penetration tests. This tool is _not_ intended to be used for real attacks against any secrets.
For example, if you feed rexgen with the value index.php?id=[1-5] it creates the following results:
index.php?id=1index.php?id=2index.php?id=3index.php?id=4index.php?id=5
How can I use rexgen?
Currently, rexgen is usable via two interfaces:
C++ API
char_type word[BUFSIZE];Regex* re = parse_regex("index.php?id=[1-5]");Iterator* iter = re->iterator();while (iter->hasNext()) { iter->next(word, BUFSIZE