nccgroup / GTFOBLookup

Offline command line lookup utility for GTFOBins (https://github.com/GTFOBins/GTFOBins.github.io), LOLBAS (https://github.com/LOLBAS-Project/LOLBAS), WADComs (https://wadcoms.github.io), and HijackLibs (https://hijacklibs.net/).
GNU General Public License v3.0
253 stars 40 forks source link

Little wildcard "feature" ? #7

Closed lapolis closed 2 years ago

lapolis commented 2 years ago

Not really sure if it is just me wishing for something like this or not :D but here I am.

Sometimes I like to be lazy and have all the possible combinations in front of me so I don't really need to think too hard, for instance, if I want to get all the possible ways to download a file I could use this command:

./gtfoblookup.py gtfobins search -c download all

Same with lolbas.


Also, realised that when searching for lolbas, it is impossible to find some files, for instance, searching for DataSvcUtil like so do not yield any result (also tried with lowercase, mixed, etc):

./gtfoblookup.py lolbas search -c upload DataSvcUtil

But when (using this code) searching for all upload functionalities, DataSvcUtil is the first result:

./gtfoblookup.py lolbas search -c upload all

It might be something kinda easy to find, probably just about the capitalization. I might look into that but not promising anything :D

JamesConlan96 commented 2 years ago

I have fixed the filename issue that was causing DataSvcUtil not to show up. I'll take a look at the other issue now. In future, please raise a separate issue/pull request for each unique issue.

JamesConlan96 commented 2 years ago

Thanks for the pull request, however, I have implemented the requested functionality without the additional dependencies that your solution required.