From 7c0a933e8c81d72246b6b6fdc7b637a3ac388eda Mon Sep 17 00:00:00 2001 From: Karl Date: Sat, 6 Feb 2021 14:23:12 +0000 Subject: [PATCH] updates --- app.js | 3 +++ checker.js | 7 +++++-- logins.json | 28 ++++++++-------------------- otherDNS.json | 4 ++++ streamArray.json | 12 ++++++++++-- 5 files changed, 30 insertions(+), 24 deletions(-) create mode 100644 otherDNS.json diff --git a/app.js b/app.js index 7ba6072..970b21d 100644 --- a/app.js +++ b/app.js @@ -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}`) }) + diff --git a/checker.js b/checker.js index a2e6ff0..4859711 100644 --- a/checker.js +++ b/checker.js @@ -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') } diff --git a/logins.json b/logins.json index d6a60fe..ac11c07 100644 --- a/logins.json +++ b/logins.json @@ -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" } ] \ No newline at end of file diff --git a/otherDNS.json b/otherDNS.json new file mode 100644 index 0000000..387d41b --- /dev/null +++ b/otherDNS.json @@ -0,0 +1,4 @@ +[ + "https://trippy.pro:443", + "https://itty.in:443" +] \ No newline at end of file diff --git a/streamArray.json b/streamArray.json index f585d88..2177549 100644 --- a/streamArray.json +++ b/streamArray.json @@ -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": "??",