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

Issue in getting results via discovery funstion in service scanner #171

Closed
shaddygarg opened this issue Jun 26, 2018 · 8 comments
Closed

Comments

@shaddygarg
Copy link
Contributor

I was trying to perform the same operation on my localhost and results were different everytime.

In [1]: from lib.payload.scanner.service.engine import discovery

In [2]: discovery("127.0.0.1")
Out[2]: {443: 'UNKNOWN', 3306: 'UNKNOWN'}

In [3]: discovery("127.0.0.1")
Out[3]: 
{80: 'http',
 443: 'UNKNOWN',
 631: 'UNKNOWN',
 3306: 'UNKNOWN',
 5432: 'UNKNOWN',
 8002: 'http'}

In [4]: discovery("127.0.0.1")
Out[4]: 
{80: 'http',
 139: 'UNKNOWN',
 443: 'UNKNOWN',
 445: 'UNKNOWN',
 631: 'UNKNOWN',
 3306: 'UNKNOWN',
 5432: 'UNKNOWN',
 8001: 'UNKNOWN',
 8002: 'http'}

In [5]: discovery("127.0.0.1")
Out[5]: 
{80: 'http',
 139: 'UNKNOWN',
 443: 'UNKNOWN',
 445: 'UNKNOWN',
 631: 'UNKNOWN',
 3306: 'UNKNOWN',
 5432: 'UNKNOWN',
 8001: 'UNKNOWN',
 8002: 'http'}

image

Am I doing anything wrong or is it some problem with the module!! Performing a port scan however works fine for me.


OS: Ubuntu

OS Version: 16.04

Python Version: 2.7.12

@pradeepjairamani
Copy link
Contributor

Thanks for the issue @Shaddy I will solve this ASAP

Best Regards
Pradeep Jairamani

@Ali-Razmjoo
Copy link
Collaborator

I think it's just because of the timeout... do you have any solution @pradeepjairamani ?

@pradeepjairamani
Copy link
Contributor

I am currently working on the solution, I think changing this below line can solve the issue.

if threading.activeCount() is 1 or int(kill_switch) is int(timeout * 5 * 10):

Best Regards

@Ali-Razmjoo
Copy link
Collaborator

i think this issue is duplicated with #101

@shaddygarg
Copy link
Contributor Author

Yes, I also think it is related to the same.

@Ali-Razmjoo
Copy link
Collaborator

so until we don't have a good solution, increase the timeout a little bit! :D

@aman566
Copy link
Collaborator

aman566 commented Jun 8, 2020

In my machine for the very first time when I are running it, I am still able to reproduce the issue.

image

@aman566
Copy link
Collaborator

aman566 commented Jun 8, 2020

We need to still increase the timeout a little bit: from 5*10 to 9*10.

Nettacker version 0.0.2 automation moved this from To do to Done Feb 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Development

No branches or pull requests

4 participants