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

Adding the website resource and finding #271

Open
wants to merge 1 commit into
base: 232-websites_main_dev_branch
Choose a base branch
from

Conversation

lm-sec
Copy link
Collaborator

@lm-sec lm-sec commented Jun 21, 2024

This PR is the first of multiple PRs

With this new resource and finding, it is possible to represent websites in the database.

When a PortServiceFinding with a serviceName of http or https is emitted by a job, the jobs manager recognises that this is a website and emits a WebsiteFinding for every combination of a host's linked domains.

It is done this way because a port scan does not have the domain information with it, and anyway, any domain that resolves to a host could have a different website for the same port through the concept of virtual hosts.

A website is the combination of a domain (can be empty), a host, a port and a path (defaults to /). The reason behind the path is that several websites could be routed by a proxy, resulting in a different website at a different path.

This PR does not include any interface, but it will eventually get its own view. Cleanup is also lacking a little bit.

You can ignore the "new" e2e tests here. They are a copy paste from ports and will be fully changed in the next PR

…e it other than with a mongodb client, but it is there!
@lm-sec lm-sec added this to the Stalker 0.1.0 Beta milestone Jun 21, 2024
@lm-sec lm-sec requested a review from Aboisier June 21, 2024 22:23
@lm-sec lm-sec self-assigned this Jun 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant