[FEATURE] Add cdp-endpoint
Option for Controlling WebSocket Endpoint in Headless Mode
#5692
Labels
Type: Enhancement
Most issues will probably ask for additions or changes.
Describe your feature request
Allow users to specify a WebSocket endpoint for control in headless mode. This feature would provide greater flexibility by enabling users to connect to an existing browser instance or control a remote browser via its Chrome DevTools Protocol (CDP) URL, rather than being limited to spawning a local browser process.
The
cdp-endpoint
flag would accept a WebSocket URL, allowing the engine to interact with an already-running browser instance or a remote headless browser over the network.Describe the use case of the feature
Describe alternatives you've considered
No response
Additional context
Adding the
cdp-endpoint
flag would simplify working with browsers in distributed and cloud-hosted environments, offering a more flexible approach to browser control. Hopefully, this will address the issues we’ve been facing in PDCP.Note
If this is now fully supported, we might want to remove the
chromium
dependency along with anything else that relies on it. Ideally, thenuclei
base image should be built fromscratch
(w/o any external dependencies at all). This way, we can keep the image as lightweight and efficient as possible, focusing only on what’s essential.Footnotes
https://hub.docker.com/r/finic/chrome ↩
The text was updated successfully, but these errors were encountered: