# nocap

A great captcha solver 🙅🧢. Generate site-specific captcha responses.

## About

This uses express + hostile to create a in-browser captcha solver. Whenever a recaptcha is present this can be used to submit a valid token without visiting the site.

## Installing

A step by step series of examples that tell you how to get a development env running

Install nocap

```
npm i nocap
```

Use nocap

```js
const { nocap } = require('nocap');

const run = async () => {
    /* When using nocap you must provide 3 arguments to it:
    * host (string) - Hostname/domain of the site
    * sitekey (string) - Recaptcha site key
    * port (number) - Port to host nocap on
    */
    let response = await nocap("blendsus.com", "6LeoeSkTAAAAAA9rkZs5oS82l69OEYjKRZAiKdaF", 8080);
    console.log(response);
}();
```

Make sure to run your app with sudo / root privileges as nocap has to edit host files in order to display the captcha successfuly.