xnl-h4ck3r / xnLinkFinder

A python tool used to discover endpoints, potential parameters, and a target specific wordlist for a given target
1.18k stars 144 forks source link

let xnLinkFinder parse folder recursively :) #8

Closed 0xAwali closed 2 years ago

0xAwali commented 2 years ago

I tried run xnLinkFinder on jadx output folder but I got There are no files with a size greater than 500 Mb to process so any chance to run xnLinkFinder without tracking any size e.g.


for directory,directoriesnames,filesnames in os.walk(args.directory):
    for filename in filesnames:
        filelookup = os.path.join(directory,filename)
        if os.path.isfile(filelookup):
            with open(filelookup,encoding='utf8',errors='ignore') as lines:
                for line in lines:
                    match = regex.search(line)
                    if match:
                        print (match.string[match.start():match.end()])
xnl-h4ck3r commented 2 years ago

Hey @0xAwali, thanks for the suggestion. I'll look into that! So I assume there are separate files over 0.5GB in size in jadx output?

0xAwali commented 2 years ago

no but jadx output contains more subfolders and you mentioned that

NOTE: Sub directories are not checked. The -mfs option can be specified to skip files over a certain size.

so you can let xnLinkFinder parse folder and subfolders recursively without checking or skipping files over a certain size

xnl-h4ck3r commented 2 years ago

Ah, ok! I'll add that to the TODO list and try to get sorted soon!

xnl-h4ck3r commented 2 years ago

Hi @0xAwali That change is live now. There is still a default of ignoring files over 500MB in place, which should be fine for your case, but if you do want to process large files (that can take a long time) you can pass -mfs 0 which will ignore the size and process all files. Thanks for taking the time to raise the issue and trying out the tool! Regards Xnl