-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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 support for network interface selection #45
Comments
Not a bad idea. I shall look into it. |
https://stackoverflow.com/questions/44571331/specify-network-interface-for-http-request-in-golang
|
Is there any benefit on doing this in code? I think this should be rather done on the OS level using routes to keep things simple |
Sure. Suppose you have a scanning box w/multiple IPs. You are scanning some target that might have active defenses (https://github.com/fail2ban/fail2ban, etc.) and don't want to get yourself blocked during an enumeration run. Another similar case would be if you have multiple IPs you can rotate requests through. Say a host will block after 10 You could achieve much the same with |
@hlein @edermi @0xdevalias I added a first try on the dev branch to specify either the interface name or the ip directly. Would be great if you can try it out ( |
Thank you! Hm, I see |
@hlein ok I thanks I will try to reproduce it. Seems like it's not that easy like described in the stack overflow article :D |
@hlein sorry for the delay, could you please try again with the latest dev version? I currently have no VPS available that supports multiple public ipv4s per machine to test this properly. The options are |
Hi, sorry for the slow response... well, I still see the same behavior, outbound traffic uses the default IP. I first tested using remote hosts and multiple IPs on In one terminal:
In another:
Back in the first terminal:
Back in the second terminal:
Back in the first:
Here we would expect to have seen Same for I can't spell Go, but when I strace |
Hi,
it would be great to have a command switch to specify which interface gobuster uses for scanning.
The text was updated successfully, but these errors were encountered: