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
"Virtual" interfaces not working #43
Comments
Apparently the same issue has been reported for zmap as well - zmap/zmap#35 |
By they way, I'm working on this. One bug is that the code uses "00-00-00-00-00-00" as an inbound flag for failure. I've separated it out so that there is a separate flag. You should now be able to force this by "--adapter-mac 00-00-00-00-00-00" and maybe it'll work. Any tips for setting up a sample configuration? Just normal VPN? |
Easiest way might be to splurge ($2) and get one of the VPS' from VPScheap.net Or, I can give you access to my instance if you'd like. |
I've checked in code that I think will work. I tested with OpenVPN using the "tun1" interface. Give it a try, and if it doesn't work, we'll work on recreating your exact setup. |
Tried it, not working. Had another person verify on their VPS as well: https://twitter.com/madvillain/statuses/424674049063518208 I'm willing to spin up a clean instance for you to test on if you wish. Let me know. |
Yea, if you could spin me up an instance and send me a password (robert_david_graham@yahoo.com), I'll log on and get it working. |
On my vps... ifconfig: ./masscan 0.0.0.0/0 --exclude 255.255.255.255 -p80 -oX scan.xml --max-rate 1000000 --interface venet0:0 --adapter-mac 00-11-22-33-44-55 --router-mac 88-77-66-55-44-33 I get "clock_gettime() err 22" repeatedly in the terminal window. |
Any progress on this issue? Im having the same problem with masscan and zmap. |
Also hoping that I'd be able to use masscan on my OpenVZ VPS one day. |
No news about this problem? I have the same problem.. |
@robertdavidgraham Any news on this issue? I would be happy to help provide an account on a VPS as well to get this resolved. |
Same issue. Nmap experiences this as well, looking at possible solutions provided to nmap users. |
Same issue, will not work on VENET interfaces. As mentioned above, nmap had the same issue. |
What's the current status for this issue? Has anyone had success using masscan on an OpenVZ container with a venet interface? |
Never had any luck getting nmap or masscan to work on OpenVZ. Everything is working flawlessly with KVM though. |
Can anyone Plz tell me How to Send More packets and Get the Results for Sure. because while using Masscan. i can send Packets but not Getting the Results. Can anyone Suggests the Ethernet card and other Specification to use the masscan at 100% Success rate. i can Buy anything to Work with Masscan. Just Give me the procedure and List of items to try. |
I am curious if this was ever resolved - I can provide a login to a system where this is present and easy to reproduce. |
Ran into this today on an osx box running an OpenVPN client. Worked around it by disabling the connection. |
[MY SOLUTION] Original Error: Verbose Original Error: I stopped the output at "router-ip=0.0.0.0" since I knew 0.0.0.0 to be incorrect for my tap0 interface. Once I specified the correct gateway IP with "--router-ip", all was well. Here's how: First, find the gateway IP for the interface you want masscan to use. Finding Gateway IP for All Interfaces: In my case, the gateway IP I needed for tap0 was "10.1.0.1", which is shown above as Masscan Command Solution Example: So in short, the solution that worked for me was as simple as finding the IP address of the gateway for the interface I wanted masscan to use. Then, merely providing the gateway IP and desired interface using the "--router-ip" parameter for the gateway IP and the "-e" parameter for the desired interface. Generically, the command would look like this: Generic Masscan Command Solution Example: |
Just validated that @mahatah solution works. |
how about ppp0? I use PPPoE connection for Internet, and @mahatah solution doesn't work, same error: |
@llllllllllllllllllllllllllllllllllll What you are describing is more of an issue with the Point-to-Point protocol than it is with Masscan. PPPoE interfaces do not have mac addresses, which is why it could not be found in your "ppp0" example. With that said, it may still be possible to configure your routes via iptables such that your eth0 or wlan0 (whichever you're using, assuming you're not running masscan from the modem itself) will route their packets through the ppp0 interface. That type of configuration requires more work than I care to get into on a bug tracking forum. Suffice to say, the Masscan command you'll ultimately use will be to set -e to your ethernet or wireless interface, not ppp0. |
After 4 years no news for this issue. I have a openvz with venet0:0 interface, but also with option --router-ip it require adapter-mac but is not working. |
that is embarassed , i have this problem some days ago .the error is caused by the winpcap ,emmmm,winpcap can't find the right adapter because your computer have too many adapter such as vmware or wireless or others,you can see it in you device manager ,the network adapter ,i swear you have many many adapters. my way to solve it is to diable all other adapters and just keep one i need .for example ,i use WIFI to scan ,so i just keep "killer wireless Network adapter" to use ,and then everything is ok.finally,fuck winpcap. |
我有两个网卡, em1
em1:0
按照报错的提示, 添加
哈哈, 可以正常使用了 备注:
|
Dont waste time guys. docker run ilyaglow/masscan -p80,443 --rate 1000 --banners IPBLOCK |
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:127995 errors:0 dropped:0 overruns:0 frame:0
TX packets:74394 errors:0 dropped:27 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:165737898 (165.7 MB) TX bytes:6890666 (6.8 MB)
venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:199.175.51.99 P-t-P:199.175.51.99 Bcast:199.175.51.99 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
e.g.
scanner@199:
/brisket$ sudo masscan --rate 2337 --adapter venet0:0 --adapter-ip 199.175.51.99 -p 1433 96.127.0.0/18/brisket$ sudo masscan --rate 2337 --adapter venet0:0 --adapter-ip 199.175.51.99 --adapter-mac 00:00:00:00:00:00 -p 1433 96.127.0.0/18FAIL: failed to detect MAC address of interface: "venet0:0"
[hint] try something like "--adapter-mac 00-11-22-33-44-55"
scanner@199:
FAIL: failed to detect MAC address of interface: "venet0:0"
[hint] try something like "--adapter-mac 00-11-22-33-44-55"
scanner@199:~/brisket$ sudo masscan --rate 2337 --adapter venet0:0 --adapter-ip 199.175.51.99 --adapter-mac 00:00:00:00:00:00:00:00:00:00:00:00 -p 1433 96.127.0.0/18
FAIL: failed to detect MAC address of interface: "venet0:0"
[hint] try something like "--adapter-mac 00-11-22-33-44-55"
nmap works but you have to specify the following (perhaps it'll help you:
nmap -e venet0:0 -Pn -S <real_ip_of_server> <target_ip>
The text was updated successfully, but these errors were encountered: