drallieiv / kinancity Goto Github PK
View Code? Open in Web Editor NEWYet another PTC account generator
License: Apache License 2.0
Yet another PTC account generator
License: Apache License 2.0
Email verification is rate limited to 6 accounts per minute. Please add a feature to the email server to only attempt to verify a maximum of 6 links every minute.
Implementing a third captcha provider, to cover all the major of market.
They site contain a code examples and ready built for java also. Check them out please.
INFO [Kinan City] -- Start Kinan City CLI --
INFO [Kinan City] ProxyManager setup with 7 proxies
INFO [Kinan City] Create a single account
Exception in thread "Kinan City" javax.json.stream.JsonParsingException: Unexpected char 60 at (line no=1, column no=1, offset=0)
at org.glassfish.json.JsonTokenizer.unexpectedChar(JsonTokenizer.java:532)
at org.glassfish.json.JsonTokenizer.nextToken(JsonTokenizer.java:415)
at org.glassfish.json.JsonParserImpl$NoneContext.getNextEvent(JsonParserImpl.java:222)
at org.glassfish.json.JsonParserImpl$StateIterator.next(JsonParserImpl.java:172)
at org.glassfish.json.JsonParserImpl.next(JsonParserImpl.java:149)
at org.glassfish.json.JsonReaderImpl.readObject(JsonReaderImpl.java:101)
at com.kinancity.core.captcha.twoCaptcha.TwoCaptchaProvider.getBalance(TwoCaptchaProvider.java:266)
at com.kinancity.core.Configuration.init(Configuration.java:98)
at com.kinancity.core.Configuration.checkConfiguration(Configuration.java:155)
at com.kinancity.core.KinanCityCli.main(KinanCityCli.java:40)
06-21 01:25:37 [Misty] PTC softban, put that IP on hold.
06-21 01:25:37 [Misty] Will retry
06-21 01:26:07 [Misty] Still no proxy slots available. Keep waiting
... (always the same message)
06-21 11:09:07 [Misty] Still no proxy slots available. Keep waiting
This error also happens when AccountWebServiceValidation fails. Don't know why or how but it enters a state where it waits forever for an available proxy.
If I terminate the App and restart the process it resumes it's operation no problem so I guess it wasn't really an IP ban or that it wasn't necessary to wait all those hours.
Version: https://github.com/drallieiv/KinanCity/tree/v1.2.1-rc5 (latest release)
Bug: Loading proxies with hyphen in the username fails pre-check (changing the login id on the proxy is unfortunately not an option)
user-name:[email protected]:3128 # note the hyphen
Reproduce:
# This works and fails as expected when testing the proxy
$ java -jar KinanCity-core-1.2.0-SNAPSHOT.jar -px 'loginid:[email protected]' -m '[email protected]' -f 'a**b' -c 1 -s 1 -p 'p4ssw0rD!'
INFO [Kinan City] Validating given proxies
WARN [Kinan City] Proxy test for my.proxy.tld:8080 failed, remove proxy
# This fails when validating the format of the proxy
$ java -jar KinanCity-core-1.2.0-SNAPSHOT.jar -px 'login-id:[email protected]' -m '[email protected]' -f 'a**b' -c 1 -s 1 -p 'p4ssw0rD!'
WARN [Kinan City] Cannot load URI [login-id:[email protected]] as a HTTP Proxy
ERROR [Kinan City] Invalid proxy login-id:[email protected]
Saw this yesterday when balance ran out. It just does this infinitely although that doesn't really harm anything. It really should exit gracefully
07-03 23:43:10 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:10 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
07-03 23:43:11 [2captcha] KO response when sending IN 2captcha : {"status":0,"request":"ERROR_ZERO_BALANCE"}
07-03 23:43:11 [2captcha] Request new Captcha
Using the latest release and these arguments in .bat
-m ... -u ... -p ... -ck ...
config.properties is existing and in the same folder.
06-07 17:26:21 [Kinan City] -- Start Kinan City CLI --
06-07 17:26:21 [Kinan City] Cannot load URI [] as a HTTP Proxy
06-07 17:26:21 [Kinan City] Invalid proxy
06-07 17:26:21 [Kinan City] ProxyManager setup with 0 proxies :
06-07 17:26:21 [Kinan City] Create a single account
06-07 17:26:22 [Kinan City] Catpcha Key is valid. Current 2 captcha balance is 10.00556
06-07 17:26:22 [OfficerJenny(BottleNeck)] Starting Bottleneck with a space of 15s between all resources access
06-07 17:26:22 [NurseJoy(Recycler)] Benched proxy recycler started.
06-07 17:26:22 [Kinan City] No valid proxy given
06-07 17:26:22 [Kinan City] Account creation failed, missing configuration
Version: https://github.com/drallieiv/KinanCity/releases/tag/v1.3.1-rc2 (latest)
I think this is the same issue as #21.
If a username has an "@" symbol in it (e.g. an email address), the proxy can't be loaded.
Example:
java -jar KinanCity-core-1.3.1-SNAPSHOT.jar -px '[email protected]:[email protected]:80' -m '[email protected]' -f 'a**b' -c 1 -s 1 -p 'p4ssw0rD!'
INFO [Kinan City] -- Start Kinan City CLI --
WARN [Kinan City] Cannot load URI [[email protected]:[email protected]:80] as a HTTP Proxy
ERROR [Kinan City] Invalid proxy [email protected]:[email protected]:80
everything is working but i keep getting that "Email Error, this could be IP throttle, consider as Account Rate Limited".
i've read the documentation but can't find a solution (-nl didn't help), what can i do?
If the creation fail because the limit was reached, is it not rescheduled.
It should be send back to the queue to be created again later or by another avaiable proxy / IP.
Current DateOfBirth is hard coded to 1985-01-16
and county to US
Date of birth should be based on current date - random value to make an adult (is that 13, 18, or 21 ?)
Country should be able to be changed to whatever the user wants.
Note : country seems to affect a few things with PTC such as Child account creation : In the US there is a check with a nation wide database of postal adresses, which does not exist in other European countries such as France.
Feature Request
Please make an option to confirm email changes with links in the format https://club.pokemon.com/us/poke=mon-trainer-club/email-change-approval/
When running without a proxy (direct) the following error occurs:
ERROR [Tracey] Fatal Error : Access Denied
Add documentation about captcha provider on additional parameters page
https://github.com/drallieiv/KinanCity/tree/develop/KinanCity-core#additional-parameters-
Hi,
Would be very nice if you could add a docker version (such as existing with pikaptcha).
Thanks
There is a problem with your email address. Please verify that it is spelled correctly. If it is not, please correct it and try again. If you already have a Pokémon Trainer Club account with this email address, please use the Forgot Password Tool to find your account.
I have this message always.
I created a couple of account with a dropmail.me e-mail address cause they support the + e-mail trick, but all of them turned out to be underage accounts.
Some logs, comments, and documentation refer to 2captcha while they apply to all captcha implementations.
They should be agnostic if they do not apply to a specific implementation
Sometimes i get this error in kinancity-mail
ERROR KcMessageHandler: Account activation for email [email protected] : failed
If I insert the link manually into the browser, says the website "Your account has already been activated"
Username should be 4-15 characters
KinanCity currently sends the request to PTC even if the username will fail.
Error message might mention django
It would be great for management and automation purposes to be able to input a proxy file instead of the current config.properties formating.
The proxies.txt file format could be:
ip:port
user:pass@ip:port
One per line
This morning I started getting the error: django.utils.functional.proxy with each account creation request in the console window for KinanCity-core-1.3.1-SNAPSHOT.jar. Any ideas what this may be?
there are hardened values for CC and DOB.
It would be good to be able to specifify these values alebo in accounts.csv format
I creating accounts with the latest release, the following configuration and no proxy:
java -jar KinanCity-core-1.3.1-SNAPSHOT.jar -m [email protected] -f usernames*** -p MyPassword -c 50 -s 930
And i always get this error:
WARN [Lana] Technical Error : Age verification call or CSRF extraction failed
INFO [Lana] Will retry
I can confirm accounts from my IP so I do not think my IP is banned
While generating ~100 accounts, I eventually run into this error.
[imageTypers] Unknown I0mageTypers Error : ERROR: INVALID_CAPTCHA_ID
When it is encountered, it seems to loop and continuously output same error until forced-stopped.
Right now KinanCity checks its proxies every time it runs.
In order to speed it up for the next "round", maybe it could remove the proxies that
failed the test from the config file.
Can you add a parameter to set the wait time between creating accounts?
When I try to use proxies with the format (for example): login:[email protected]:3128, the proxy check fails. I've tried http/https/socks5.
Error message:
06-24 17:52:27 [Clemont] HttpConnectionException, proxy [http://login:[email protected]:3128] might be bad, move it out of rotation : Technical error getting CSRF Token : Unexpected status line: <html><head><title>407 Proxy Authentication Required</title></head>
It seems to work with curl thought.
2captcha allows reporting bad captchas to save on cost
here is the API documentation : https://2captcha.com/2captcha-api#complain
Tried making accounts using socks5 proxies. The proxies are good, used them in PT in the past format there was socks5://IP:port
When HttpConnectionException happens, proxy gets benched but the slot is not cleared.
Currently, the technical error retries, move the account at the end of the queue.
Which means it will be retried after all initial tries have been tried at least once.
Should we change that so they are rescheduled at the front of the queue ?
Hello, in the wiki (https://github.com/drallieiv/KinanCity/blob/develop/KinanCity-core/README.md) it's written for Kinan that ck is optional. But if I don't enter it, I got an error :
I've try with value empty into the config, and without the config file.
My command line :
@echo off
java -jar KinanCity-core-1.2.0-SNAPSHOT.jar -m [email protected] -f XXX**** -p YYY -c 5 -s 1
echo "KinanCity execution stopped"
pause
My log :
INFO [Kinan City] -- Start Kinan City CLI --
WARN [Kinan City] Skipping loading configuration file, you may copy config.example.properties as config.properties and edit your configuration
INFO [Kinan City] Use a Sequence Account Generator
ERROR [Kinan City] Configuration Init Failed
com.kinancity.core.errors.ConfigurationException: com.kinancity.api.errors.TwoCaptchaConfigurationException: Given 2captcha key null is invalid
at com.kinancity.core.Configuration.init(Configuration.java:87)
at com.kinancity.core.Configuration.checkConfiguration(Configuration.java:117)
at com.kinancity.core.KinanCityCli.main(KinanCityCli.java:40)
Caused by: com.kinancity.api.errors.TwoCaptchaConfigurationException: Given 2captcha key null is invalid
at com.kinancity.api.captcha.TwoCaptchaService.getBalance(TwoCaptchaService.java:127)
at com.kinancity.api.captcha.TwoCaptchaService.<init>(TwoCaptchaService.java:101)
at com.kinancity.core.Configuration.init(Configuration.java:85)
... 2 common frames omitted
ERROR [Kinan City] Account creation failed, missing configuration
"KinanCity execution stopped"
Appuyez sur une touche pour continuer...
http://puu.sh/vL96f/e5a5b8cc5c.png
Is this a known issue? im on the latest java version using windows, proxy are 100% available
The function 'randomAdultDateOfBirth' in /ptc-api/src/main/java/com/kinancity/api/model/AccountData.java has a maximum age range of 18, 80
public static String randomAdultDateOfBirth() {
return randomDateOfBirth(18, 80);
}
However, in my logs I am seeing ages larger than that.
For example, 97-98 years old:
07-03 19:23:20 [Brock] Create account : AccountData [username=REDACTED, email=REDACTED, password=REDACTED, dob=1920-09-25, country=US]
07-03 19:56:30 [Kiawe] Create account : AccountData [username=REDACTED, email=REDACTED, password=REDACTED, dob=1919-09-06, country=US]
This could be easily flagged by Niantic if desired.
Would be great if it supported manual captcha solving, like MonoGen or Pikaptcha.
2017-04-13 21:25:06,878 DEBUG KcMessageHandler: Received email from bounce+c1xxxa.6xxx6-poxxxxcl+nxxxxa=[email protected] to [email protected]
2017-04-13 21:25:07,024 ERROR KcMessageHandler: No activation link found
Kinan does not make an attempt to set the user-agent to send to pokemon.com, therefor, you end up with "okhttp/version".
https://thunderfox.nl/sharex/Vj6kWo9Wrg.png
This is very easily a sign on PTC's end, especially with the combined Kinan traffic.
Steps to reproduce:
Shoutout to Jake McKnight
i'm having problem setting up proxies.
how should i do it?
Prior research was done by PalletTown author to identify that account creation was limited to 5 accounts per 15 minutes.
Currently Kinan city is doing 5 per 10 minutes and I believe this is causing burned 2captcha.
I would recommend increasing time to 5 accounts per 15 minutes unless it is certain that PT author's prior research is wrong, but I don't think it is wrong from what I've experienced.
When a username is already taken, the error page (dump) shows 2 errors :
That username already exists. Please try one of the following: ...
and
There is a problem with your email address. Please verify that it is spelled correctly. If it is not, please correct it and try again.
Current
Error says : Email Error, this could be IP throttle, consider as Account Rate Limited
And retries 3 times total
Expected
Should say that the username is taken and NOT retry.
[2captcha] Number of responses [19] do not match number of requests [40]
Noticed this occur twice recently in an infinite loop. Last night was after 3-4 hours of success and then it did this for hours until I woke up. It seems to be using 2captcha $ when this is occurring and burns through account $. It repeated this forever until I stopped it. Program was using 40 threads. KinanCity really needs to stop if this occurs.
Currently a timeout with image typers call triggers
10-16 03:32:37 [imageTypers] Requested new Captcha, id : 123****387
10-16 03:32:57 [imageTypers] ImageTypers Error : timeout
java.net.SocketTimeoutException: timeout
at okio.Okio$4.newTimeoutException(Okio.java:227)
at okio.AsyncTimeout.exit(AsyncTimeout.java:284)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:240)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:325)
at okio.RealBufferedSource.indexOf(RealBufferedSource.java:314)
at okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:210)
at okhttp3.internal.http1.Http1Codec.readResponseHeaders(Http1Codec.java:189)
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:67)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:120)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:92)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:67)
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:179)
at okhttp3.RealCall.execute(RealCall.java:63)
at com.kinancity.core.captcha.imageTypers.ImageTypersProvider.run(ImageTypersProvider.java:117)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.SocketTimeoutException: Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.socketRead(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at java.net.SocketInputStream.read(Unknown Source)
at okio.Okio$2.read(Okio.java:138)
at okio.AsyncTimeout$2.read(AsyncTimeout.java:236)
... 21 common frames omitted
Exception should be handled properly.
Activation links call seem to be rate limited now.
Currently it outputs accounts into a .csv which is fine, however the format is quite frustrating, as you have to manually delete the email from each account line. Maybe having a flag which you could choose how you would like them outputted, for example
"-acout rm" would be ptc,username,password
"-acout standard" would be username:password
Thanks for providing such an awesome tool.
It would be great if the mail server could include the email address the mail was sent to as well as the activation link. It's not really very useful just to see the activation link in the log, you don't know which account that activation link is for.
Now that email verification is rate limited, it would be great if you could add a feature where the mail server can read an optional config of proxies to get around the rate limit issue.
Ok I am getting the issue that mail server does not Auto Verify emails
2017-05-18 06:56:27,604 DEBUG KcMessageHandler: Received email from
2017-05-18 06:56:27,609 INFO KcMessageHandler: Activation link found for email : [https://club.pokemon.com/us/pokemon-trainer-club/activated/]
2017-05-18 06:56:28,125 ERROR LinkActivator: Unexpected Error
2017-05-18 06:56:28,126 ERROR KcMessageHandler: Account activation for email : failed
As drallieiv said on Discord I did a curl command on the link and I get the error
Your request could not be completed. Please try again. If the problem persists, please contact Customer Support.
I did the curl command on a number of servers all by the same provider all coming back the same.
I then went to the link manually and it stated that the account was already activated.
When the Pokemon Company ban your IP, you get an HTTP 403 error when trying to click the activation links, but KinanCity-mail is incorrectly identifying the HTTP 403 status code as an HTTP 503 status code and the logs say that you are throttled, and waiting 60 seconds, but the links won't ever be able to be verified when your IP is banned.
It would be great if the HTTP 403 status code could be correctly identified by KinanCity-mail and a more suitable error message logged informing the user that their IP has been banned.
Whenever I try to run the mail server v1.0.0, this is the error I get: "Could not find or load main class com.kinancity.core.KinanCityClient". I have rarely run a Java module so I could be doing something wrong. I am using mailserver 1.0.0 because that is the latest version I see in releases. Am I missing something obvious? Some very basic instruction added to readme.md would help users such as myself greatly. Thanks for your time!
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.