ripgen icon indicating copy to clipboard operation
ripgen copied to clipboard

Lost in the permutation logic

Open marcelo321 opened this issue 2 years ago • 3 comments

hello,

I am getting confused by the way ripgen generates permutations.

3 subdomains generated 23 permutations only.

# echo -e "forum.zonduu.me\nabc.zonduu.me\ntest.a.zonduu.me" | ripgen | wc -l
23
cat batch_file  | wc -l
39
cat batch_file | ripgen | anew | wc -l
6034

it is not following the logic dnsgen has (also gives +1000 duplicate results, that's why I am using anew there). Every subdomain you add increases exponentially the amount of results ripgen gives

marcelo321 avatar Dec 01 '23 21:12 marcelo321

Hello! Let me take a look and get back to you.

For context: ripgen intentionally reuses the logic that dnsgen uses so you'll often see duplicate results as a result. That said, it might be time to migrate towards generating high signal name patterns rather than just an excessively wide net.

d0nutptr avatar Dec 02 '23 22:12 d0nutptr

Hmm could you explain what you're looking for me to do here? Do you want it to generate less permutations? Is it not matching dnsgen exactly?

d0nutptr avatar Dec 02 '23 22:12 d0nutptr

@d0nutptr sorry for the poorly formatted issue. I am lost in the way ripgen uses permutations, right now it is generating way less permutations than dnsgen and the results are "exponential".

like it might generate 20 permutation from a list of 1 host, but 3000 if the list of 10 hosts.

grep "paypal.com" mix-result | sed -n 1,20p | dnsgen - | anew | wc -l
56251
grep "paypal.com" mix-result | sed -n 1,20p | ripgen | anew | wc -l
6964

it is following some of the dnsgen logic for permutations but definitely not the same.

This generates 0 results:

echo abc.zonduu.me | ripgen | wc -l
0

and in the other hand, dnsgen:

echo abc.zonduu.me | dnsgen -| wc -l
1002

marcelo321 avatar Dec 04 '23 19:12 marcelo321