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

[FEAT] ip saved in an "env" + adding to hosts file #102

Open
suljov opened this issue Jan 18, 2024 · 2 comments
Open

[FEAT] ip saved in an "env" + adding to hosts file #102

suljov opened this issue Jan 18, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request feat
Milestone

Comments

@suljov
Copy link

suljov commented Jan 18, 2024

  1. The idea i got was that the fact the tool right now shows you the ip. but it might be good if the tool will ask the user to save the ip as an ENV to make it easier to use for other scans. (examples belov)

  2. it would be also nice/cool if the tool has a feature that it also saves the vhost name(s) in a simple way. so if the user finds a vhost name it can simply use the tool and the tool will put it in the hosts file. so the user can use that feature later on if he/she find more vhost names connected to the ip/machine

for example:

┌──(suljov㉿suljov)-[~]
└─$ ping $ip
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.021 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.051 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.039 ms

this will be good to use for other tools like nmap, rustscan, gobuster/feroxbuster etc.

examples:

nmap -sV -A $ip
gobuster dir -u http://$ip -w /usr/share/wordlists/seclists/Discovery/Web-Content/common.txt

and so on.

@suljov suljov added the feat label Jan 18, 2024
@github-project-automation github-project-automation bot moved this to Todo in htb-cli Jan 18, 2024
@suljov suljov changed the title [FEAT] ip saved in an "env" [FEAT] ip saved in an "env" + adding to hosts file Jan 18, 2024
@qu35t-code qu35t-code added the enhancement New feature or request label Jan 18, 2024
@qu35t-code qu35t-code added this to the v1.6.0 milestone Jan 18, 2024
@qu35t-code qu35t-code moved this from Todo to In Progress in htb-cli Jan 18, 2024
@qu35t-code
Copy link
Member

Good idea, I'll think about it !

@qu35t-code qu35t-code modified the milestones: v1.6.0, v1.7.0 Jan 27, 2024
@qu35t-code
Copy link
Member

Hey @suljov,

The first part is in beta. the hosts command allows you to perform basic actions with the /etc/hosts file.

https://htb-cli-documentation.qu35t.pw/commands/hosts/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feat
Projects
Status: In Progress
Development

No branches or pull requests

2 participants