👋 Hey, Welcome to my GitHub page.
👨💻 My name is Amin Mahmoudi, also known as Amin MasterkinG!
💼 I'm currently working as a freelancer.
A bot to create Twitch accounts and Follow using NodeJS
License: Apache License 2.0
Error is showing when trying to verify email:
6) Getting Kasada code ...
7) Getting public integrity token ...
8) Try to verify the account ...
--------------------------------------
(node:6085) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'validateVerificationCode' of undefined
at StartCreate (/tmp/twitch-account-creator/main.js:393:36)
at processTicksAndRejections (internal/process/task_queues.js:97:5)
at async CreateNewAccount (/tmp/twitch-account-creator/main.js:421:5)
at async GettingUsername (/tmp/twitch-account-creator/main.js:429:9)
(node:6085) 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: 1)
(node:6085) [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.
I cannot send messages in any chat. Twitch asks for phone verification. Can something be done about it?
Created users are not available on twitch.
Where could I be doing wrong?
I have got the script to run, and I confirmed that the accounts are actually being created (I can see their profiles on Twitch).
However, I cannot login to these accounts, as it says the provided email verification code is incorrect.
Client-Integrity error
Have failed
{"client_id":"kimne78kx3ncx6brgo4mv6wki5h1ko","client_ip":"X.X.X.X","device_id":"XXXXXXXXX","exp":"2022-10-01T05:28:59Z","iat":"2022-09-30T21:28:59Z","is_bad_bot":"true","iss":"Twitch Client Integrity","nbf":"2022-09-30T21:28:59Z","user_id":"XXXXXXXXXX"}
"is_bad_bot":"true
in the follow.js
Hi, getting that error every time. With and without proxy.
Captcha found, registering account ...
Oops! We encountered an unexpected error. Please try again.
Username: turnaboutgrand019
Username: turnaboutgrand019 Password:mpQHexKeYD_MK32 BDay: 1973/10/2
Getting email
Solving captcha
Using 2Captcha.
Request sent to the 2captcha wait a bit, Request ID: 71588334505
Wating to reslove ... (15 - 300 sec)
Thanks in advance.
i see a module that generates a username how can i enable it?
Allow support for proxies to bypass error "You are trying to sign up for accounts too fast.
Following is shown either immediately, or after a single follower creation.
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
Unable to get Kasada, Try again ...
(node:6072) UnhandledPromiseRejectionWarning: RangeError: Maximum call stack size exceeded
at console.value (internal/console/constructor.js:276:13)
at console.log (internal/console/constructor.js:344:26)
at KasdaResolver (/tmp/twitch-account-creator/main.js:51:13)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
at KasdaResolver (/tmp/twitch-account-creator/main.js:52:18)
(node:6072) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an asying a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `-js.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
(node:6072) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are noth a non-zero exit code.
I cannot send messages in any chat. Twitch asks for phone verification. Can something be done about it?
traceback
`\twitch-account-creator-main\main.js:163
if (validateVerificationCode.request.status == 'VERIFIED') {
^
TypeError: Cannot read properties of null (reading 'status')
at verifyEmail (C:\Users####\Downloads\twitch-account-creator-main\main.js:163:46)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async StartCreate (C:\Users####\Downloads\twitch-account-creator-main\main.js:79:5)
at async CreateNewAccount (C:\Users####\Downloads\twitch-account-creator-main\main.js:86:5)`
can you please set it up to generate usernames?
F:\DEV\Bad Shits\twitch-account-creator>node main.js
Username: subcontractordeservingoqf
Username: subcontractordeservingoqf Password:jmPxGsfuJl_MK32 BDay: 1998/5/7
Getting email
Solving captcha
Using 2Captcha.
Request sent to the 2captcha wait a bit, Request ID: 71734740979
Wating to reslove ... (15 - 300 sec)
Generating payload
Captcha found, registering account ...
F:\DEV\Bad Shits\twitch-account-creator\main.js:159
console.log(e.response.data.error);
^
TypeError: Cannot read properties of undefined (reading 'data')
at registerAccount (F:\DEV\Bad Shits\twitch-account-creator\main.js:159:32)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async CaptchaAndRegister (F:\DEV\Bad Shits\twitch-account-creator\main.js:185:26)
at async StartCreate (F:\DEV\Bad Shits\twitch-account-creator\main.js:201:26)
at async CreateNewAccount (F:\DEV\Bad Shits\twitch-account-creator\main.js:229:5)
at async GettingUsername (F:\DEV\Bad Shits\twitch-account-creator\main.js:237:9)
F:\DEV\Bad Shits\twitch-account-creator>
Twitch for some reason is no longer returning the access_token
when programmatically doing it, seems to just return:
{
captcha_proof: '1234',
redirect_path: 'https://www.twitch.tv',
userID: '1234',
}
I am unable to find a way around, when creating account via browser it returns the access_token
, so I tried to modify the headers to include similar to browser, and doesn't seem to work. I have to manually enter the email verification code because it's not returning access token.
pls help
Can support this one?
Could you add an option to fill the captchas urself?
Username?
TestUsername121
Username: TestUsername121 Password:WenEwiHski_MK32 BDay: 1971/6/12
Getting email
Solving captcha
Generating payload
Registering account
Please complete the CAPTCHA correctly.
Thats what happens when I try to run it. I checked Anti-Captcha.com and I was charged for it as well.
@masterking32 Is it possible for you to make it so we can change the length of the generated twitch username? That'd be awesome!
Hello just wanted to know if there is any site similar to that. I don't mind if it's subscription based.
Also, sincere apologies as this isn't an issue but a general question.
after the proccess of getting twitch cookies,
it says like:
"unable to get kasada unable to get kasada unable to get kasada unable to get kasada unable to get kasada unable to get kasada
after start i try create account and work and stop before save results i use anti-captcha.
D:\Virtual Machine\NODJE\twitch-account-creator-main\twitch-account-creator-main>node main.js
Username?
lzihdf234
Username: lzihdf234 Password:MJnFQPasfC_MK32 BDay: 1970/7/12
Getting email
Solving captcha
Generating payload
Registering account
Please complete the CAPTCHA correctly.
Username?
asdasds
Username: asdasds Password:CtWzpdLhTx_MK32 BDay: 1980/2/10
Getting email
Solving captcha
Generating payload
Registering account
This username already exists.
Username?
123asdadas22
Username: 123asdadas22 Password:kuFZamWkMf_MK32 BDay: 1974/4/26
Getting email
Solving captcha
Generating payload
Registering account
Please complete the CAPTCHA correctly.
Username?
I'm getting this error:
----------------------- console text -----------------------------------------------------------------
Unable to get Kasada, Try again ...
Error: Request failed with status code 400
at createError (C:\Users\bf1ot\Desktop\twitch-account-creator-main\node_modules\axios-https-proxy-fix\lib\core\createError.js:16:15)
at settle (C:\Users\bf1ot\Desktop\twitch-account-creator-main\node_modules\axios-https-proxy-fix\lib\core\settle.js:18:12)
at IncomingMessage.handleStreamEnd (C:\Users\bf1ot\Desktop\twitch-account-creator-main\node_modules\axios-https-proxy-fix\lib\adapters\http.js:201:11)
at IncomingMessage.emit (node:events:526:35)
at endReadableNT (node:internal/streams/readable:1408:12)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
config: {
adapter: [Function: httpAdapter],
transformRequest: { '0': [Function: transformRequest] },
transformResponse: { '0': [Function: transformResponse] },
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
headers: {
Accept: 'application/json, text/plain, /',
'Content-Type': 'text/json',
'User-Agent': 'axios/0.17.1',
'Content-Length': 347
},
method: 'post',
url: 'https://api.capsolver.com/kasada/invoke',
data: '{"clientKey":"RemovedHereOnlySoNoOneSeesIt","appId":"B278567A-C94E-457E-B419-F1D6A5D1AA6D","task":{"type":"AntiKasadaTask","pageURL":"https://gql.twitch.tv/","proxy":"http://zvwdyvoz:[email protected]:7492","cd":true,"onlyCD":false,"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"}}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype] {
abort: [Function (anonymous)],
aborted: [Function (anonymous)],
connect: [Function (anonymous)],
error: [Function (anonymous)],
socket: [Function (anonymous)],
timeout: [Function (anonymous)],
finish: [Function: requestOnFinish]
},
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 347,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: TLSSocket {
_tlsOptions: [Object],
_secureEstablished: true,
_securePending: false,
_newSessionPending: false,
_controlReleased: true,
secureConnecting: false,
_SNICallback: null,
servername: 'api.capsolver.com',
alpnProtocol: false,
authorized: true,
authorizationError: null,
encrypted: true,
_events: [Object: null prototype],
_eventsCount: 9,
connecting: false,
_hadError: false,
_parent: null,
_host: 'api.capsolver.com',
_closeAfterHandlingError: false,
_readableState: [ReadableState],
_maxListeners: undefined,
_writableState: [WritableState],
allowHalfOpen: false,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: undefined,
_server: null,
ssl: [TLSWrap],
_requestCert: true,
_rejectUnauthorized: true,
timeout: 5000,
parser: null,
_httpMessage: null,
autoSelectFamilyAttemptedAddresses: [Array],
[Symbol(alpncallback)]: null,
[Symbol(res)]: [TLSWrap],
[Symbol(verified)]: true,
[Symbol(pendingSession)]: null,
[Symbol(async_id_symbol)]: -1,
[Symbol(kHandle)]: [TLSWrap],
[Symbol(lastWriteQueueSize)]: 0,
[Symbol(timeout)]: Timeout {
_idleTimeout: 5000,
_idlePrev: [TimersList],
_idleNext: [TimersList],
_idleStart: 6082,
_onTimeout: [Function: bound ],
_timerArgs: undefined,
_repeat: null,
_destroyed: false,
[Symbol(refed)]: false,
[Symbol(kHasPrimitive)]: false,
[Symbol(asyncId)]: 345,
[Symbol(triggerId)]: 343
},
[Symbol(kBuffer)]: null,
[Symbol(kBufferCb)]: null,
[Symbol(kBufferGen)]: null,
[Symbol(kCapture)]: false,
[Symbol(kSetNoDelay)]: false,
[Symbol(kSetKeepAlive)]: true,
[Symbol(kSetKeepAliveInitialDelay)]: 1,
[Symbol(kBytesRead)]: 0,
[Symbol(kBytesWritten)]: 0,
[Symbol(connect-options)]: [Object]
},
_header: 'POST /kasada/invoke HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: text/json\r\n' +
'User-Agent: axios/0.17.1\r\n' +
'Content-Length: 347\r\n' +
'Host: api.capsolver.com\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: Agent {
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
defaultPort: 443,
protocol: 'https:',
options: [Object: null prototype],
requests: [Object: null prototype] {},
sockets: [Object: null prototype] {},
freeSockets: [Object: null prototype],
keepAliveMsecs: 1000,
keepAlive: true,
maxSockets: Infinity,
maxFreeSockets: 256,
scheduling: 'lifo',
maxTotalSockets: Infinity,
totalSocketCount: 1,
maxCachedSessions: 100,
_sessionCache: [Object],
[Symbol(kCapture)]: false
},
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/kasada/invoke',
_ended: true,
res: IncomingMessage {
_readableState: [ReadableState],
_events: [Object: null prototype],
_eventsCount: 3,
_maxListeners: undefined,
socket: null,
httpVersionMajor: 1,
httpVersionMinor: 1,
httpVersion: '1.1',
complete: true,
rawHeaders: [Array],
rawTrailers: [],
joinDuplicateHeaders: undefined,
aborted: false,
upgrade: false,
url: '',
method: null,
statusCode: 400,
statusMessage: 'Bad Request',
client: [TLSSocket],
_consuming: false,
_dumped: false,
req: [Circular *1],
responseUrl: 'https://api.capsolver.com/kasada/invoke',
redirects: [],
[Symbol(kCapture)]: false,
[Symbol(kHeaders)]: [Object],
[Symbol(kHeadersCount)]: 20,
[Symbol(kTrailers)]: null,
[Symbol(kTrailersCount)]: 0
},
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: 'api.capsolver.com',
protocol: 'https:',
_redirectable: Writable {
_writableState: [WritableState],
_events: [Object: null prototype],
_eventsCount: 2,
_maxListeners: undefined,
_options: [Object],
_ended: true,
_ending: true,
_redirectCount: 0,
_redirects: [],
_requestBodyLength: 347,
_requestBodyBuffers: [],
_onNativeResponse: [Function (anonymous)],
_currentRequest: [Circular *1],
_currentUrl: 'https://api.capsolver.com/kasada/invoke',
[Symbol(kCapture)]: false
},
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype] {
accept: [Array],
'content-type': [Array],
'user-agent': [Array],
'content-length': [Array],
host: [Array]
},
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
response: {
status: 400,
statusText: 'Bad Request',
headers: {
date: 'Thu, 05 Oct 2023 11:50:23 GMT',
'content-type': 'application/json; charset=utf-8',
'content-length': '133',
connection: 'keep-alive',
'cf-cache-status': 'DYNAMIC',
'report-to': '{"endpoints":[{"url":"https:\/\/a.nel.cloudflare.com\/report\/v3?s=91IR2lQTzXadqrOM5M7cntQqMaHVsNo2imlrzODEF%2FPAo3dH5DvPqpN3dR2BrIhq%2BX%2BBzXp0AhRO58e0k3g5Wvg%2FTsBT%2Bzig%2FXKYe8JvOZ8bDeEFb5CzeIBf71LxQd6bZNL%2FcGqg765eosMoDX1%2F"}],"group":"cf-nel","max_age":604800}',
nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
server: 'cloudflare',
'cf-ray': '8115725c1ecc56f8-IAD',
'alt-svc': 'h3=":443"; ma=86400'
},
config: {
adapter: [Function: httpAdapter],
transformRequest: [Object],
transformResponse: [Object],
timeout: 0,
xsrfCookieName: 'XSRF-TOKEN',
xsrfHeaderName: 'X-XSRF-TOKEN',
maxContentLength: -1,
validateStatus: [Function: validateStatus],
headers: [Object],
method: 'post',
url: 'https://api.capsolver.com/kasada/invoke',
data: '{"clientKey":"RemovedHereOnlySoNoOneSeesIt","appId":"B278567A-C94E-457E-B419-F1D6A5D1AA6D","task":{"type":"AntiKasadaTask","pageURL":"https://gql.twitch.tv/","proxy":"http://zvwdyvoz:[email protected]:7492","cd":true,"onlyCD":false,"userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/109.0"}}'
},
request: <ref *1> ClientRequest {
_events: [Object: null prototype],
_eventsCount: 7,
_maxListeners: undefined,
outputData: [],
outputSize: 0,
writable: true,
destroyed: true,
_last: false,
chunkedEncoding: false,
shouldKeepAlive: true,
maxRequestsOnConnectionReached: false,
_defaultKeepAlive: true,
useChunkedEncodingByDefault: true,
sendDate: false,
_removedConnection: false,
_removedContLen: false,
_removedTE: false,
strictContentLength: false,
_contentLength: 347,
_hasBody: true,
_trailer: '',
finished: true,
_headerSent: true,
_closed: true,
socket: [TLSSocket],
_header: 'POST /kasada/invoke HTTP/1.1\r\n' +
'Accept: application/json, text/plain, /\r\n' +
'Content-Type: text/json\r\n' +
'User-Agent: axios/0.17.1\r\n' +
'Content-Length: 347\r\n' +
'Host: api.capsolver.com\r\n' +
'Connection: keep-alive\r\n' +
'\r\n',
_keepAliveTimeout: 0,
_onPendingData: [Function: nop],
agent: [Agent],
socketPath: undefined,
method: 'POST',
maxHeaderSize: undefined,
insecureHTTPParser: undefined,
joinDuplicateHeaders: undefined,
path: '/kasada/invoke',
_ended: true,
res: [IncomingMessage],
aborted: false,
timeoutCb: null,
upgradeOrConnect: false,
parser: null,
maxHeadersCount: null,
reusedSocket: true,
host: 'api.capsolver.com',
protocol: 'https:',
_redirectable: [Writable],
[Symbol(kCapture)]: false,
[Symbol(kBytesWritten)]: 0,
[Symbol(kNeedDrain)]: false,
[Symbol(corked)]: 0,
[Symbol(kOutHeaders)]: [Object: null prototype],
[Symbol(errored)]: null,
[Symbol(kHighWaterMark)]: 16384,
[Symbol(kRejectNonStandardBodyWrites)]: false,
[Symbol(kUniqueHeaders)]: null
},
data: {
errorCode: 'ERROR_INVALID_TASK_DATA',
errorDescription: 'Not found AntiKasadaTask access. Please contact our support.',
errorId: 1
}
}
}
Hello there !
First of all, good job for the bot.
A have a question :
The results who are in tokens.txt are Oauths right ?
If it's the case, are they usable with some other bots ? Because i'm not able to make them works ...
what site do you use for this ? to get the key
Looks like account creation its not working anymore
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.