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

Scan immediately ends #5

Closed
axelarator opened this issue Dec 19, 2019 · 10 comments
Closed

Scan immediately ends #5

axelarator opened this issue Dec 19, 2019 · 10 comments
Labels
bug Something isn't working

Comments

@axelarator
Copy link

Using any IP, ETA is always 0 seconds and states there are 0 services to fingerprint.

On kali, works fine. On manjaro is where the issue is seen

@assetgrower
Copy link

same here.

@s0md3v
Copy link
Owner

s0md3v commented Dec 19, 2019

Do you guys have masscan installed?

@s0md3v s0md3v added the bug Something isn't working label Dec 19, 2019
@axelarator
Copy link
Author

Yup. Nmap and masscan were installed from AUR

@assetgrower
Copy link

assetgrower commented Dec 19, 2019 via email

@kirkins
Copy link

kirkins commented Dec 19, 2019

I had the issue and I realized it was because I wasn't using sudo.

If I use masscan directly without using sudo I get back:

FAIL: wlp3s0: You don't have permission to capture on that device (socket: Operation not permitted)
 [hint] need to sudo or run as root or something
 [hint] I've got some local priv escalation 0days that might work
adapter[wlp3s0].init: failed

With Silver the error message was being sent to /dev/null so I got success message but ended up with only {} in my output folder.

Can anyone with the problem see if using sudo fixes the issue?

@s0md3v
Copy link
Owner

s0md3v commented Dec 19, 2019

@kirkins That's a good lead!

Add the following code to line #73 in silver.py and run it again.

print('masscan%s-p%s --rate 10000 -oG %s %s %s >/dev/null 2>&1' % (host, ports_to_scan, savefile, hostfile, exclude)

Copy the printed out masscan command and run it with sudo in your terminal and see if masscan works.

@kirkins
Copy link

kirkins commented Dec 19, 2019

@s0md3v I'm sure it works because silver works perfectly fine for me once I use sudo. My result-targets.txt is as expected once I had the correct permissions.

@s0md3v
Copy link
Owner

s0md3v commented Dec 19, 2019

Thanks @kirkins 🎉

I am pushing a patch!

@s0md3v s0md3v closed this as completed in 1822955 Dec 19, 2019
@s0md3v
Copy link
Owner

s0md3v commented Dec 19, 2019

The root permission thing has been documented and internal checks for dependencies (nmap, masscan, psutil) and the permission itself with pushed soon.

@slunak
Copy link

slunak commented May 1, 2020

@kirkins That's a good lead!

Add the following code to line #73 in silver.py and run it again.

suggested line

Copy the printed out masscan command and run it with sudo in your terminal and see if masscan works.

For everyone who will come here to trouleshoot, this line is missing closing bracket and should be:

print('masscan%s-p%s --rate 10000 -oG %s %s %s >/dev/null 2>&1' % (host, ports_to_scan, savefile, hostfile, exclude))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants