Integration of two Puppeteer + Evilginx

Puppeteer + Evilginx

Installing Puppeteer Install Node.js:

Go to the official Node website.js and download the installer for your operating system. Install it by following the instructions.

Creating a new project:

Open a terminal or command prompt and run the following commands:

mkdir my-puppeteer-project
cd my-puppeteer-project
npm init -y

Installing Puppeteer: Install Puppeteer using npm:

npm install puppeteer

The main functions of Puppeteer Here are some basic features that you can use with Puppeteer:

  • Launching the browser:

const browser = await puppeteer.launch({ headless: false }); 
  • Creating a new page:

const page = await browser.newPage();
  • Navigation to the page:

await page.goto('https://example.com');
  • Screenshots

await page.screenshot({ path: 'screenshot.png' });
  • Data extraction:

const title = await page.title();
console.log(title);
  • Filling out forms:

await page.type('#username', 'your-username');
await page.type('#password', 'your-password');
await page.click('#submit-button');
  • Waiting for the elements:

await page.waitForSelector('#element-id');
  • Closing the browser:

await browser.close();

Example of a script that automates logging in to the site and takes a screenshot of the page after logging in:

const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({ headless: false });
    const page = await browser.newPage();
    await page.goto('https://example.com/login');
    await page.type('#username', 'your-username');
    await page.type('#password', 'your-password');
    await page.click('#submit-button');
    await page.waitForNavigation();
    await page.screenshot({ path: 'after-login.png' });
    await browser.close();
})();

This will allow you to automate actions in the browser. Your script can interact with Evilginx by sending requests through its proxy.

const puppeteer = require('puppeteer');

(async () => {
    const browser = await puppeteer.launch({
        headless: false, 
        args: ['--proxy-server=http://localhost:8080'] ## Your addrees proxy Evilginx
    });

    const page = await browser.newPage();

    ## Your phishing link Evilginx
    await page.goto('http://your-evilginx-domain.com');

 ## Add additional actions here
## For example: filling out a form, clicking on links, etc.

    await browser.close();
})();

Writing a script should be tailored to your configurations, this is just an example.

Testing

Run the script and check if it interacts with Evilginx correctly and performs the actions you set.

Last updated

Was this helpful?