Git Product home page Git Product logo

kinancity's People

Contributors

123flo321 avatar astu04 avatar dennyloko avatar dependabot[bot] avatar drallieiv avatar dshoreman avatar javisabalete avatar mygod avatar realawkwardpig avatar sloppydrive avatar snooter avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

kinancity's Issues

New Feature : Rate Limiting Delay

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.

JsonParsingException with 2captcha when checking balance

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)

kinan_error

Forever waiting for proxy

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.

Proxy username with hyphen fails pre-check.

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]

Utility should stop when 2captcha balance starts reporting $0

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

Configuration missing

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

Proxy username with @ symbol fails check.

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

keep getting IP throotle

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?

Date of Birth and Country are hardcoded

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.

[ENHANCEMENT] Docker

Hi,

Would be very nice if you could add a docker version (such as existing with pikaptcha).

Thanks

Problems with PTC-Account already exists

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.

Created user is uderage

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.

Error creating accounts

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?

support for CC and DOB

there are hardened values for CC and DOB.
It would be good to be able to specifify these values alebo in accounts.csv format

Age verification call or CSRF extraction failed

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

Imagetyperz invalid captcha id

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.

Using HTTP proxies with Auth

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.

Socks5 support

Tried making accounts using socks5 proxies. The proxies are good, used them in PT in the past format there was socks5://IP:port

Should we change the retry mechanism ?

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 ?

Given 2captcha key null is invalid

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...

Maximum Age not adhered to

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.

Kinan sends default user-agent

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:

  • Install Fiddler root certificate in Java SSL store.
  • Run Kinan with Fiddler as proxy.
  • View headers in Fiddler.

Shoutout to Jake McKnight

Make account creation 5 accounts per 15 minutes

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.

Without username check email error is thrown instead of duplicated username

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.

Infinite captcha submission loop

[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.

https://pastebin.com/WT1vLY6W

ImageTypers Timeout not handled properly

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.

Outputting Accounts

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

Include email address in activation log

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.

BUG: Mail Server failed activation

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.

HTTP 403 (banned IP) incorrectly identified as HTTP 503 (throttled)

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.

mail server - Could not find or load main class

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.