dmut icon indicating copy to clipboard operation
dmut copied to clipboard

Threads

Open jaikishantulswani opened this issue 3 years ago • 6 comments

@bp0lr Trying to generate long list of domains on a system with 32G ram but it crashes fatal error: runtime: out of memory can you add a flag to control the threads. I am only generating list cat mydomains.txt | ./dmut -d list.txt --save-gen

jaikishantulswani avatar Jul 16 '21 09:07 jaikishantulswani

hi!

yes, I'm aware of that. the jobs list is 100% generated in memory, so if you are working with a big permutation list that can literally eat all your memory.

I have plans to fix this using a file. I hope have some free time soon to be able to do it.

bp0lr avatar Jul 16 '21 14:07 bp0lr

@bp0lr thank you for your prompt response on this, any workaround just for the time.

jaikishantulswani avatar Jul 16 '21 14:07 jaikishantulswani

you can do some bash magic, and split your list.txt into multi parts. that is the best approach for now.

bp0lr avatar Jul 16 '21 14:07 bp0lr

@bp0lr Indeed but I am looking for something to change into the main.go initially just for now to lower the process / threads / workers or memory usage.

jaikishantulswani avatar Jul 16 '21 14:07 jaikishantulswani

the problem isn't related to workers. The main permutation list generated from the domain + dictionary list is created in memory. when you have a big domain list or dictionary list that list could be huge.

if you want to fix the problem from the code base, you need to change the generation chain to use a file to store the results and then load them into memory.

bp0lr avatar Jul 16 '21 14:07 bp0lr

@bp0lr It would also great if you add a flag like dnsgen to have Min length of custom words extracted from domains. so it mutate domains like:

domains

new-old.example.com

words

space

Dmut Mutation

new-oldspace.example.com
spacenew-old.example.com
space.new-old.example.com
new-old.space.example.com
new-old-space.example.com
space-new-old.example.com

New Mutations Like

new.example.com
new-new.example.com
new-new-old.example.com
new.new-old.example.com
newnew-old.example.com
new-old-new.example.com
new-old.new.example.com
new-oldnew.example.com
new-old-new-old.example.com
new-old.new-old.example.com
new-oldnew-old.example.com
new-old-old.example.com
new-old.old.example.com
new-oldold.example.com
new-old-space.example.com
new-old.space.example.com
new-oldspace.example.com
new-space.example.com
old.example.com
old-new-old.example.com
old.new-old.example.com
oldnew-old.example.com
old-old.example.com
space.example.com
space-new-old.example.com
space.new-old.example.com
spacenew-old.example.com
space-old.example.com

Thanks

jaikishantulswani avatar Jul 21 '21 10:07 jaikishantulswani