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

New Module: server mode #18

Open
Nhoya opened this issue Oct 1, 2018 · 8 comments
Open

New Module: server mode #18

Nhoya opened this issue Oct 1, 2018 · 8 comments

Comments

@Nhoya
Copy link
Owner

Nhoya commented Oct 1, 2018

I would add a module that let run gOSINT as a web service exposing REST API

@jkomyno
Copy link

jkomyno commented Oct 1, 2018

Hi, I'm interested in this. I haven't used gOSINT before, how would you like to structure the REST API? Do you have any specification in mind?

@Nhoya
Copy link
Owner Author

Nhoya commented Oct 1, 2018

Hi, thanks for the interest in this project.

I would like to serve one endpoint to trigger scans specifying the type of scan with a special parameter (something like module="whatever") and the target, answering with the scan result, and save it in a database.

Another endpoint will answer the scan result stored in the database for a single target (if they exists) and, passing the timestamp of the scan the target as parameters will answer with the scan result.

The output will be JSON-encoded.

Nothing really complex after all, if you are familiar with [GraphQL}(https://graphql.org/) we could just use it instead of REST.

Other suggestions are well accepted :)

@Nhoya Nhoya added the core label Oct 1, 2018
@jkomyno
Copy link

jkomyno commented Oct 1, 2018

Thanks for the highlight. I have read and experimented with GraphQL in the past but for the moment I'd be more confident using REST. Do you have any preference for the Database?

@Nhoya
Copy link
Owner Author

Nhoya commented Oct 1, 2018

MySQL would be good but I would like to have an interface for others DBMS leaving freedom to the users

@jkomyno
Copy link

jkomyno commented Oct 1, 2018

I've started developing it here: https://github.com/jkomyno/gOSINT/tree/feature/18-server-mode-module

@jkomyno
Copy link

jkomyno commented Oct 1, 2018

In order to expose a server, I will need to refactor how the modules function are exported. That means taking them away from the main package. Is that ok?

@Nhoya
Copy link
Owner Author

Nhoya commented Oct 1, 2018

There is a big issue here, you started working on a fork of the master branch, note that you should always start from the dev branch (A LOT of stuff have changed, including modules logic)

@jkomyno
Copy link

jkomyno commented Oct 1, 2018

My bad, sorry for not noticing earlier. Thanks for pointing it out

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