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

Support for port on the targets list #5

Closed
najachai opened this issue Oct 10, 2019 · 13 comments
Closed

Support for port on the targets list #5

najachai opened this issue Oct 10, 2019 · 13 comments

Comments

@najachai
Copy link

najachai commented Oct 10, 2019

Hello author!
This is a very good project. But I think he can improve it.
When infiltrating into the internal network, we often encounter many SSH protocols for non-standard ports.
When loading a target, I want to test the target in this format.
192.168.1.1#Default 22
192.168.1.2:2222
192.168.1.3:22022
This allows you to test different target ports simultaneously. If you do this, you don't need the -p parameter.
Looking forward to your reply

@matricali
Copy link
Owner

Hi @najachai,

It's curious that you mention this because I've been thinking to add this feature exactly as you describe :D
I will work on this for the next release 👍

Thanks for your support!

@najachai
Copy link
Author

@najachai

奇怪的是您提到了这一点,因为我一直在考虑完全按照您的描述添加此功能:D
我将在下一个版本中进行处理👍

谢谢你的支持!

When is it updated? I can't wait to experience the new version. If this improves, this will be a very good tool

@matricali
Copy link
Owner

I also would like to add support for port ranges.
Ie: -p 22,2022,2200-2299

What do you think?

@najachai
Copy link
Author

我还想添加对端口范围的支持。
即:-p 22,2022,2200-2299

你怎么看?

Are you referring to the scan mode?
This is good!

@najachai
Copy link
Author

我还想添加对端口范围的支持。
即:-p 22,2022,2200-2299

你怎么看?

In most cases, masscan is used to scan the port because he is very fast

@matricali
Copy link
Owner

Conceptually, cbrutekrag works on three different phases

  1. Build targets list (Literal list OR Scan + Honeypot detection)
  2. Build combinations, host+port+username+password (this is the total amount of login tries)
  3. Bruteforce!

@matricali
Copy link
Owner

Regarding the use of ports in the list of objectives, you are probably working on it this week.

We are also working on other new features.
Would you like to see the other issues and discuss them?

@najachai
Copy link
Author

关于目标列表中端口的使用,您可能会在本周内进行处理。

我们还在开发其他新功能。
您想看到其他问题并进行讨论吗?

I will look at other issues and pay attention and discussion! Looking forward to your next version update!👍

@matricali matricali changed the title feature request Support for port on the targets list Oct 10, 2019
matricali added a commit that referenced this issue Oct 13, 2019
…gets

- Now is possible to specify the port on targets list (ex: 
10.10.1.10:2222) (see #5)
@matricali matricali self-assigned this Oct 13, 2019
@matricali
Copy link
Owner

matricali commented Oct 14, 2019

@najachai I'm working on this in a specific branch: feature/5-custom-port-on-target-list
I've pushed the initial base. At this moment it is possible to specify a single target port per line, but CIDR blocks can be used.

  • 192.168.100.5: Adds a single target, using 192.168.100.5 as host, and port specified using -p argument, default instead (22)
  • 192.168.100.5: Adds a single target, using 192.168.100.5 as host and 2222 as the port
  • 192.168.100.0/24: Adds many targets, from 192.168.100.0 to 192.168.100.255, and port specified using -p argument, default instead (22)
  • 192.168.100.0/24:2222: Adds many targets, from 192.168.100.0 to 192.168.100.255, and 2222 as the port

This acts on the "target list building" phase, so we can use later on the "scan phase" and "brute-force phase"

You can view these changes on 511c462

@najachai
Copy link
Author

@najachai I'm working on this in a specific branch: feature/5-custom-port-on-target-list
I've pushed the initial base. At this moment it is possible to specify a single target port per line, but CIDR blocks can be used.

  • 192.168.100.5: Adds a single target, using 192.168.100.5 as host, and port specified using -p argument, default instead (22)
  • 192.168.100.5: Adds a single target, using 192.168.100.5 as host and 2222 as the port
  • 192.168.100.0/24: Adds many targets, from 192.168.100.0 to 192.168.100.255, and port specified using -p argument, default instead (22)
  • 192.168.100.0/24:2222: Adds many targets, from 192.168.100.0 to 192.168.100.255, and 2222 as the port

This acts on the "target list building" phase, so we can use later on the "scan phase" and "brute-force phase"

You can view these changes on 511c462

ok!I will take the time to test! thank you

matricali added a commit that referenced this issue Oct 19, 2019
…gets

- Now is possible to specify the port on targets list (ex: 
10.10.1.10:2222) (see #5)
@matricali
Copy link
Owner

@najachai any feedback on this?

@najachai
Copy link
Author

No problem at the moment

@matricali
Copy link
Owner

I close this issue since custom port support has been merged into the "master" branch.

Port ranges still pending (We will work on this on #6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants