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

Integration of two Puppeteer + Evilginx #25

Open
Evi1Grey5 opened this issue Dec 16, 2024 · 0 comments
Open

Integration of two Puppeteer + Evilginx #25

Evi1Grey5 opened this issue Dec 16, 2024 · 0 comments
Labels
Puppeteer Puppeteer

Comments

@Evi1Grey5
Copy link
Owner

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.

Watch the video

Testing

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


You can also add Evil Puppet to your Evilginx. You can find it in the release section.

EvilPuppet

@Evi1Grey5 Evi1Grey5 added the Puppeteer Puppeteer label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Puppeteer Puppeteer
Projects
None yet
Development

No branches or pull requests

1 participant