EntySec / HatSploit

Modular penetration testing platform that enables you to write, test, and execute exploit code.
https://hatsploit.com
MIT License
276 stars 62 forks source link

Add TAB completion for console #54

Closed dmknght closed 2 years ago

dmknght commented 3 years ago

Describe the bug When i start hsf and use command use + double tabs, it shows all files in current folder. It suppose to suggest all modules instead

To Reproduce Steps to reproduce the behavior:

  1. Start hsf (version 2.0) as root sudo hsf. Accept Term and build db
  2. use double tab
  3. See output Expected behavior It should show modules instead. Like "exploit", "scanner", ...

Screenshots image

Desktop (please complete the following information):

dmknght commented 3 years ago

Uhm after checking i think current framework doesn't support auto completion?

enty8080 commented 3 years ago

@dmknght Yeah, HatSploit does not support this feature, I mean it has autocompletion for commands history, but not for modules.

dmknght commented 3 years ago

@enty8080 IMO autocompletion is a very huge feature for UX. May i know why HatSploit doesn't support it?

enty8080 commented 3 years ago

@dmknght I do not know how to implement it, but maybe at HatSploit 3 it will be added

dmknght commented 3 years ago

@dmknght I do not know how to implement it, but maybe at HatSploit 3 it will be added

Oh i did it before. It is not very hard but you'll need a very long module and oop. I reused the code of routersploit and it worked very well. Well it would be great if i can create pull request for HatSploit but i'm afraid i don't have enough time for an other project :(

enty8080 commented 2 years ago

@dmknght #80 - This patch should implement what you've requested.