-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
24 lines (20 loc) · 822 Bytes
/
index.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
//Main
function generate(amount = BigInt){
var proxies = ""
for( i = 0; i <= amount; i++){
var proxy = "";
var proxyList = ["https://", "https://", "socks4:https://", "socks5:https://"];
var proxyType = proxyList[Math.floor(Math.random() * proxyList.length)];
var proxyPort = Math.floor(Math.random() * 65535) + 1;
if(!proxies.length){
proxies = `${proxyType}${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}:${proxyPort}`
}else{
proxies += `\n${proxyType}${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}.${Math.floor(Math.random() * 255) + 1}:${proxyPort}`
}
}
return proxies;
}
//Exporter
module.exports = {
generate: generate
}