Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add TAB completion for console #54

Closed
dmknght opened this issue Jul 22, 2021 · 6 comments
Closed

Add TAB completion for console #54

dmknght opened this issue Jul 22, 2021 · 6 comments
Labels
enhancement New feature or request

Comments

@dmknght
Copy link

dmknght commented Jul 22, 2021

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):

  • OS: Parrot OS
  • Version 4.11.2 amd64. Python3.9
@dmknght
Copy link
Author

dmknght commented Jul 22, 2021

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

@enty8080
Copy link
Member

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

@enty8080 enty8080 added enhancement New feature or request and removed enhancement New feature or request labels Jul 22, 2021
@dmknght
Copy link
Author

dmknght commented Jul 22, 2021

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

@enty8080
Copy link
Member

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

@dmknght
Copy link
Author

dmknght commented Jul 22, 2021

@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 enty8080 reopened this Jan 22, 2022
@enty8080 enty8080 changed the title Double tab of command "use" shows current files in pwd instead of modules Add TAB completion for console Jan 22, 2022
@enty8080 enty8080 added the enhancement New feature or request label Jan 22, 2022
@enty8080
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants