projectdiscovery / nuclei

Nuclei is a fast, customizable vulnerability scanner powered by the global security community and built on a simple YAML-based DSL, enabling collaboration to tackle trending vulnerabilities on the internet. It helps you find vulnerabilities in your applications, APIs, networks, DNS, and cloud configurations.
https://docs.projectdiscovery.io/tools/nuclei
MIT License
20.81k stars 2.52k forks source link

[FEATURE] PDCP Login on first run #5624

Open olearycrew opened 2 months ago

olearycrew commented 2 months ago

Describe your feature request

Implement a feature in Nuclei that prompts the user to log in to the ProjectDiscovery Cloud Platform (PDCP) on the first run if no existing credentials are found. The prompt should offer multiple login options (e.g., GitHub, GitLab, Bitbucket, Email, SAML Single Sign-On) and provide an option to skip the login process.

Describe the use case of the feature

This feature aims to streamline the user experience by integrating Nuclei with PDCP authentication from the first use. By prompting users to log in on the initial run, we can ensure they are authenticated and can benefit from centralized authentication across all ProjectDiscovery tools. This will enhance security, provide a seamless user experience, and allow users to access PDCP features and services immediately.

Describe alternatives you've considered

No response

Additional context

The login prompt should be similar to the Vercel CLI, offering a clear and user-friendly interface.

Example prompt:

root@vultr:~# nuclei
Nuclei CLI [Version]
> No existing credentials found. Please log in:
? Log in to ProjectDiscovery Cloud Platform (Use arrow keys)
❯ Continue with GitHub
  Continue with Email
  Continue with SAML Single Sign-On
─────────────────────────────────
  Skip Login
olearycrew commented 2 months ago

More examples from the Vercel CLI:

CleanShot 2024-09-10 at 16 55 28

CleanShot 2024-09-10 at 16 56 01

We could also consider examples from https://charm.sh/ as inspiration