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

Search for vulnerabilities #25

Closed
n0lz opened this issue Jun 29, 2017 · 2 comments
Closed

Search for vulnerabilities #25

n0lz opened this issue Jun 29, 2017 · 2 comments
Assignees
Milestone

Comments

@n0lz
Copy link
Collaborator

n0lz commented Jun 29, 2017

No description provided.

@n0lz n0lz added this to the 2.0 milestone Jun 29, 2017
@n0lz n0lz added the feature label Jun 29, 2017
@n0lz n0lz modified the milestones: 1.0, 2.0 Jun 29, 2017
@hcrudolph hcrudolph added the bug label Jul 3, 2017
@hcrudolph
Copy link
Owner

Django doesn't seem to find the vulnerabilities' names using the following filter call. However, this does work when executed from the command line:

results_cs = CipherSuite.objects.filter(
	Q(name__icontains=search_term)|
	Q(auth_algorithm__long_name__icontains=search_term)|
	Q(enc_algorithm__long_name__icontains=search_term)|
	Q(kex_algorithm__long_name__icontains=search_term)|
	Q(hash_algorithm__long_name__icontains=search_term)|
	Q(protocol_version__long_name__icontains=search_term)|
	Q(auth_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(enc_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(kex_algorithm__vulnerabilities__name__icontains=search_term)|
	Q(hash_algorithm__vulnerabilities__name__icontains=search_term)
)

@hcrudolph
Copy link
Owner

fixed by ea907c5

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