This commit is contained in:
Karl 2021-02-06 14:23:12 +00:00
parent c80e1254eb
commit 7c0a933e8c
5 changed files with 30 additions and 24 deletions

3
app.js
View File

@ -7,6 +7,7 @@ const port = 6969
let DNSArray = require('./DNSArray.json')
let streamArrays = require('./streamArray.json')
const otherDNS = require('./otherDNS.json')
const { gotRequest } = require('./gotRequest')
@ -23,6 +24,7 @@ function splitToArray(DNS) {
function mapToStream(DNSList) {
console.log('---Updated URLS---')
DNSList.unshift(...otherDNS)
for (let index = 0; index < streamArrays.length; index++) {
let element = streamArrays[index];
element.StreamURL = DNSList[index]
@ -68,3 +70,4 @@ app.get('/', async (req, res) => {
app.listen(port, () => {
console.log(`DNS Logger listening at http://localhost:${port}`)
})

View File

@ -12,8 +12,9 @@ async function main() {
const user = users[index];
console.log('Trying ' + user.username)
for (let index = 0; index < streamArrays.length; index++) {
// await delay(1000);
await delay(500);
const stream = streamArrays[index];
process.stdout.write('.')
let url = stream.StreamURL + "/player_api.php?username=" + user.username + "&password=" + user.password
let t = await gotRequest(url)
let body = t.body
@ -21,11 +22,13 @@ async function main() {
body = JSON.parse(body)
if (body.user_info.auth) {
var date = new Date(body.user_info.exp_date * 1000).toLocaleDateString('en-GB')
process.stdout.write('\n')
console.log('Match - ' + user.username + ' - ' + stream.StreamURL + ' - ' + stream.StreamName + ' - Expires - ' + date)
break
}
}
}
console.log('End Of Streams')
process.stdout.write('\nEnd Of Streams\n\n')
}
console.log('Finished')
}

View File

@ -3,26 +3,6 @@
"username": "Karl2903",
"password": "kcshkzex"
},
{
"username": "Karl2404",
"password": "pkrcbobqau"
},
{
"username": "Karl2804",
"password": "ckazebawsk"
},
{
"username": "Karl2904",
"password": "peyofdjtau"
},
{
"username": "Karl150520",
"password": "snqqfndtpn"
},
{
"username": "Karl1505",
"password": "upfjwtouwc"
},
{
"username": "Karl2802",
"password": "hgChnj8Fks"
@ -38,5 +18,13 @@
{
"username": "Karl2206",
"password": "913TpVzp3F"
},
{
"username": "Darren1706",
"password": "IqEoN5RjN5"
},
{
"username": "Dazg3012",
"password": "tXrD5tUvZB"
}
]

4
otherDNS.json Normal file
View File

@ -0,0 +1,4 @@
[
"https://trippy.pro:443",
"https://itty.in:443"
]

View File

@ -1,4 +1,12 @@
[
{
"StreamName": "Insanity",
"StreamURL": "https://trippy.pro:443"
},
{
"StreamName": "PremPlus",
"StreamURL": "https://itty.in:443"
},
{
"StreamName": "GunSlinger",
"StreamURL": "http://gunslingertv.org:8080"
@ -108,8 +116,8 @@
"StreamURL": "http://iptv.satplex.co.uk:8080"
},
{
"StreamName": "??",
"StreamURL": "http://www.hitechvisionz.com:25461"
"StreamName": "Gambler",
"StreamURL": "http://37723998.to:2052"
},
{
"StreamName": "??",