Open phil0sophy opened 3 years ago
Does this not work with US numbers?
Hello. Script doesn't work with US numbers. Because:
In file scripts/funcs.js written methods - filter_input_data_single , filter_input_data_scope, which parsing input data. In this methods there is regular expression, which check only KZ mobile operators numbers. It looks like this:
filter_input_data_single (ctx, data) {
let data_1 = data.split('');
data_1 = data_1.filter((value) => {
return value !== ' ';
})
data_1 = data_1.filter((value) => {
return value !== `)`;
})
data_1 = data_1.filter((value) => {
return value !== `(`;
})
data_1 = data_1.filter((value) => {
return value !== `+`;
})
data_1 = data_1.filter((value) => {
return value !== `-`;
})
data_1 = data_1.join('')
Here:
let operators = /700|701|702|703|704|705|706|707|708|709|747|750|751|760|761|762|763|764|771|775|776|777|778/g;
if (data_1.length === 11) {
let check = operators.test(data_1.substring(1, 4));
if (check) {
let data_output = data_1.substring(1)
return data_output;
} else {
ctx.reply("Вы ввели некорректный номер. Пожалуйста, убедитесь в корректности номера и введите его заново❗️")
return 'Bad number';
}
} else if (data_1.length === 10) {
let check = operators.test(data_1.substring(0, 3));
if (check) {
return data_1;
} else {
ctx.reply("Вы ввели некорректный номер. Пожалуйста, убедитесь в корректности номера и введите его заново❗️")
return 'Bad number';
}
} else {
ctx.reply ('Вы ввели некорректный номер. Пожалуйста, убедитесь в корректности номера и введите его заново❗️')
return 'Bad number';
}
But, you can write your own project and use:
Can I pay you to write a functional US version?
Sorry, I don't have enough time now. If you decide write your own bot yourself, you need to find services, which can send sms/call verification to US numbers and where captcha is not used. I recommend you check my blog - https://securedev.info/posts/sms-call-bomber.html. Here i wrote detailed description how to do it. But content is written in russian. I think it is not problem. You can just translate it. I think here everything is clear.
Sorry, I don't have enough time now. If you decide write your own bot yourself, you need to find services, which can send sms/call verification to US numbers and where captcha is not used. I recommend you check my blog - https://securedev.info/posts/sms-call-bomber.html. Here i wrote detailed description how to do it. But content is written in russian. I think it is not problem. You can just translate it. I think here everything is clear.
Im interested but your blog is broken ! I have a similar script to send only sms spoofed but not with flood ! Hope that you can help me ! Thanks !
Здравствуй, у меня появилась эта ошибка: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' Как её можно исправить?
Hello, I have this error: code: 'ERR_PACKAGE_PATH_NOT_EXPORTED' How can it be fixed?
(node:7163) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. (node:7163) UnhandledPromiseRejectionWarning: Error: 400: Bad Request: can't parse entities: Can't find end of the entity starting at byte offset 44 at /Users/**/Telegram-bot-Sms-Call-bomber/node_modules/telegraf/core/network/client.js:281:17 at processTicksAndRejections (internal/process/task_queues.js:97:5) (node:7163) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag
--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) node --unhandled-rejections=strict