-
Notifications
You must be signed in to change notification settings - Fork 0
/
github.js
30 lines (24 loc) · 942 Bytes
/
github.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const puppeteer = require('puppeteer');
const readlineSync = require('readline-sync');
const randomUseragent = require('random-useragent');
var uname = readlineSync.question('[+] Masukan Username :');
var pw = readlineSync.question('[+] Masukan Password :');
var mail = readlineSync.question('[+] Masukan Email : ')
const $options = {
waitUntil: 'networkidle2'
};
(async () => {
var usgent = randomUseragent.getRandom(function (ua) {
return ua.osName === 'Windows';
});
var browser = await puppeteer.launch ({
headless: false,
});
const page = await browser.newPage();
await page.goto('https://github.com/join', $options);
const username = await page.type('#user_login',uname);
const email = await page.type('#user_email',mail);
const password = await page.type('#user_password',pw);
await page.select('select#all_emails');
await page.select('#signup_button');
})();