udpated
This commit is contained in:
parent
649b4e9e19
commit
813a8296e2
@ -1,4 +1,5 @@
|
||||
[
|
||||
"http://webservgroup.xyz/smarters4567891/api/home.php?action=dns",
|
||||
"http://panelhost.xyz/cli3nts/Funky/Smarters/api/home.php?action=dns"
|
||||
"http://panelhost.xyz/cli3nts/Funky/Smarters/api/home.php?action=dns",
|
||||
"http://panelhost.xyz/cli3nts/smartersv3/funky/api/home.php?action=dns"
|
||||
]
|
@ -170,6 +170,7 @@ async function newSingleCheck(accountData) {
|
||||
for (let streamURL of streamURLS) {
|
||||
process.stdout.write('.')
|
||||
let url = await buildURL(streamURL, userAccount.username, userAccount.passwordDecryped)
|
||||
console.log('trying ' + url)
|
||||
let t = await gotRequest(url)
|
||||
let body = t.body
|
||||
if (t.statusCode == 200 && body !== "") {
|
||||
@ -223,11 +224,16 @@ async function newSingleCheck(accountData) {
|
||||
// }
|
||||
// // }
|
||||
|
||||
// newSingleCheck
|
||||
|
||||
// main()
|
||||
// singleCheck('Karl2903')
|
||||
// newCheck()
|
||||
// newSingleCheck('Karl1607', 'Ybkjqszr1z')
|
||||
newSingleCheck({
|
||||
"username":'Karl0ss1709',
|
||||
"password":'YEfbZskEH2Zu',
|
||||
"stream": "Badger",
|
||||
"userId":1})
|
||||
|
||||
module.exports = {
|
||||
newCheck,
|
||||
|
@ -10,6 +10,12 @@ const { newSingleCheck } = require('../lib/checker')
|
||||
/* POST postUser page. */
|
||||
router.post('/', async function (req, res, next) {
|
||||
let postData = req.body
|
||||
for (var key in postData) {
|
||||
postData[key] = postData[key].trim();
|
||||
}
|
||||
if (postData.username.includes('KarlOss')) {
|
||||
postData.username = postData.username.replace("O", "0")
|
||||
}
|
||||
postData.userId = getUserId(req.auth.user)
|
||||
let userName = req.auth.user
|
||||
let result = await storeAccountToDB(postData)
|
||||
|
@ -56,7 +56,12 @@ async function getStreamsNew() {
|
||||
requestData = await gotRequest(url)
|
||||
let DNSList = requestData.body
|
||||
if (typeof DNSList === 'string' || DNSList instanceof String) {
|
||||
try {
|
||||
DNSList = JSON.parse(DNSList)
|
||||
} catch (error) {
|
||||
jointArray.unshift(...otherURLs)
|
||||
return jointArray
|
||||
}
|
||||
}
|
||||
DNSList = splitToArray(DNSList.su)
|
||||
DNSList.forEach(url => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user