Commit graph

208 commits

Author SHA1 Message Date
yushijinhun 9eb3b0d738
Use Type.getMethodDescriptor 2019-01-23 18:47:29 +08:00
yushijinhun 244f7b1796
Use dynamic invocation to bypass launchwrapper/modlauncher 2019-01-22 20:57:31 +08:00
yushijinhun 925cc55266
Add missing license headers 2019-01-20 20:58:44 +08:00
yushijinhun 6252c0502d
Refactor agentmain 2019-01-20 18:35:38 +08:00
yushijinhun 8bd0f3b803
MC52974_1710Workaround supports forge 2019-01-20 17:33:34 +08:00
yushijinhun bee0998925
Support retransform 2019-01-20 16:17:43 +08:00
yushijinhun f2a447d58d
Workaround for MC-52974(1.7.10) (#35) 2019-01-20 13:35:50 +08:00
yushijinhun 090c7df79a
[nanohttpd]crop 2019-01-19 21:38:17 +08:00
yushijinhun 9dfd1bcacb
Use a new workaround for MC-52974
Instead of injecting signatures in the local http server, it modifies authlib
2019-01-19 20:58:11 +08:00
yushijinhun 6569238649
Only turn on MC-52974 workaround for affected versions 2019-01-19 20:53:58 +08:00
yushijinhun 980617e923
Add a simple workaround for MC-52974 2019-01-19 20:52:23 +08:00
yushijinhun 79873f126c
Add support for launchwrapper, fix #33
Thanks to @NekoCaffeine
2019-01-19 19:51:01 +08:00
yushijinhun 59d1197e06
Add license headers 2019-01-12 18:58:35 +08:00
yushijinhun 146c029779
Upgrade to asm 7.0 2018-12-31 14:43:20 +08:00
yushijinhun 27e775114c
Remove duplicate ldc transform log 2018-12-31 13:26:58 +08:00
yushijinhun 029782551d
Add prop: httpd.disable 2018-12-31 13:26:11 +08:00
yushijinhun c297c4debc
Remove unnecessary connection.connect()/disconnect() 2018-12-31 13:26:11 +08:00
yushijinhun 1148e0c6bc
polish 2018-12-31 13:26:11 +08:00
yushijinhun cbc1e8c664
Javadoc for URLFilter&URLProcessor&URLRedirector 2018-12-31 11:24:33 +08:00
yushijinhun eeda91c329
Support @mojang suffix 2018-12-31 11:24:33 +08:00
yushijinhun 9cfb6325a3
Support reverse proxy 2018-12-31 11:24:33 +08:00
yushijinhun bdd5f4bfcb
[nanohttpd]support chunked encoding&100-continue 2018-12-31 00:51:50 +08:00
yushijinhun f31e9f53dd
[nanohttpd]split into multi files 2018-12-30 21:16:27 +08:00
yushijinhun 352fb14667
[nanohttpd]crop 2018-12-30 21:14:17 +08:00
yushijinhun ffc96d0a05
[nanohttpd]code format 2018-12-30 17:02:17 +08:00
yushijinhun 6dccd97269
Import nanohttpd 2.3.1 source 2018-12-30 16:31:08 +08:00
yushijinhun 3572ff8eb5
Add YggdrasilClient 2018-12-30 15:04:28 +08:00
yushijinhun 5531c8a06e
Support Citizens2 2018-12-30 15:04:28 +08:00
yushijinhun 15f766ab29
Refactor URL replacing 2018-12-30 15:04:28 +08:00
yushijinhun ffd2a94b3d
Support multi signature keys 2018-12-30 15:04:27 +08:00
yushijinhun def9d9614e
[json-simple]Use LinkedHashMap in JSONObject 2018-12-30 15:04:13 +08:00
yushijinhun b59400f3dd
Shut up compile warnings 2018-12-30 14:38:27 +08:00
yushijinhun eb830c9c9f
Fix duplicate authlib log 2018-12-30 00:08:40 +08:00
yushijinhun 42ed5a9b1e
Apply AuthlibLogInterceptor only if necessary 2018-12-29 21:42:53 +08:00
yushijinhun 57e145d7da
Replace 'transform.skipped' logger with 'printUntransformed' property 2018-12-29 20:49:50 +08:00
yushijinhun d6cf905a38
Support intercepting logs from authlib 2018-11-25 00:05:47 +08:00
yushijinhun 1d73a05413
Move dump class feature into DumpClassListener 2018-11-24 14:39:27 +08:00
yushijinhun 1f5605c973
Add ClassLoadingListener interface 2018-11-24 14:32:22 +08:00
yushijinhun 36f3ef61eb
Support ALI(Api Location Indication) (#18) 2018-10-05 21:08:48 +08:00
yushijinhun 58d0b0e7a1
Merge branch 'protocol-omit' into ali 2018-10-05 19:29:11 +08:00
yushijinhun 390220b973
Detect client/server side (#16) 2018-10-05 19:14:08 +08:00
yushijinhun 1594f453f3
Prepend https:// when protocol is not specified (#17) 2018-10-05 18:44:57 +08:00
yushijinhun 0b81d69ff8
Move url slash appending out of YggdrasilConfiguration 2018-10-05 18:38:15 +08:00
yushijinhun 8dadd210fc
Warn if using HTTP 2018-10-05 18:36:16 +08:00
yushijinhun eebacfa567
Still print stacktrace when debug is on 2018-10-04 17:07:33 +08:00
yushijinhun e002f5f167
Do not print stacktrace on known exceptions 2018-10-04 16:27:44 +08:00
yushijinhun 84960bae35
Whitelist some packages 2018-09-30 20:50:22 +08:00
yushijinhun af35eb3ac4
Add feature.legacy_skin_api option 2018-09-23 23:13:40 +08:00
yushijinhun 29003c73cb
Add logging option transform.skipped 2018-09-23 22:59:48 +08:00
yushijinhun 8c615b618b
Refactor transform 2018-09-23 22:59:48 +08:00
yushijinhun 1a1f9fc8fc
Remove log msg 'Fetching metadata' 2018-09-23 22:02:35 +08:00
yushijinhun 6b9ead4491
Remove msg 'Launched from premain' 2018-09-23 20:47:30 +08:00
yushijinhun c2bc0704a1
Change ldc transform logging level to fine 2018-09-23 20:46:22 +08:00
yushijinhun 6fd5616ba6
Add log for dumping class 2018-09-23 20:44:38 +08:00
yushijinhun d793848c79
Rename transformers 2018-09-23 20:44:12 +08:00
yushijinhun 6ab2057a59
Rename DeprecatedApiTransformUnit->LocalYggdrasilApiTransformUnit 2018-09-23 20:34:06 +08:00
yushijinhun 6a25aaeffa
Friendly log messages 2018-09-23 20:34:01 +08:00
yushijinhun d86d99c547
Print logs to stdout instead of stderr 2018-09-23 20:14:32 +08:00
yushijinhun 07df33deca
Rename DeprecatedApiHttpd->LocalYggdrasilHttpd 2018-09-23 20:11:21 +08:00
yushijinhun 45b4bfba0d
Allow to turn on debug mode for specified loggers 2018-07-08 15:21:46 +08:00
yushijinhun 177a647878
add logger: launch, config 2018-07-08 15:03:09 +08:00
yushijinhun 760c90a37b
Add authlibinjector.dumpClass option 2018-07-08 14:55:19 +08:00
yushijinhun e4cc4dd8aa
Use java.util.logging 2018-07-08 14:50:00 +08:00
yushijinhun 6fe53b6993
Add 'Json' suffix to method names in JsonUtils 2018-07-08 13:43:27 +08:00
yushijinhun f2b95f147c
Update urls in test 2018-07-08 13:39:27 +08:00
yushijinhun e4d23117ed
Remove org.to2mbn. prefix of options 2018-07-08 13:39:25 +08:00
yushijinhun 25f3f069d7
Change package name to moe.yushi.authlibinjector 2018-07-08 13:34:16 +08:00
yushijinhun def37b0d0d
print version when bootstrap 2018-06-29 21:13:34 +08:00
yushijinhun be38c9ba98
implement #12 2018-05-26 23:02:58 +08:00
yushijinhun 229901b405
[json-simple]clean up Yylex 2018-04-15 10:04:59 +08:00
yushijinhun da81ef6f60
更换到json-simple类库 2018-04-15 09:57:55 +08:00
yushijinhun 5c816c2e90
[json-simple]code clean up 2018-04-15 09:28:46 +08:00
yushijinhun 48a6919c6a
[json-simple]reduce code 2018-04-15 09:27:45 +08:00
yushijinhun b160f15420
[json-simple]change key type of JSONObject to String 2018-04-15 09:17:07 +08:00
yushijinhun b31a31c644
[json-simple]add generics 2018-04-15 09:06:20 +08:00
yushijinhun 92c7ee06be
[json-simple]remove ItemList 2018-04-15 08:59:05 +08:00
yushijinhun 6d3135b11d
[json-simple]clean up code 2018-04-14 23:35:12 +08:00
yushijinhun 1ed74901b8
[json-simple]convert line endings to \n 2018-04-14 23:32:22 +08:00
yushijinhun d146d09ecf
[json-simple]relocate to org.to2mbn.authlibinjector.internal.org.json.simple 2018-04-14 23:26:27 +08:00
yushijinhun 74aa5a149e
Import code from json-simple
repo: https://github.com/fangyidong/json-simple.git
commit: a8b94b79b697df64b23428c27d65d6a187e9ebf9
2018-04-14 23:21:15 +08:00
yushijinhun 75f2c80608
REMOVE org.json 2018-04-09 17:32:56 +08:00
yushijinhun 11c952d055
移除JSONString 2018-04-05 10:27:04 +08:00
yushijinhun 849c785249
移除YggdrasilConfiguration.signaturePublickey 2018-04-05 10:27:04 +08:00
yushijinhun 5d64fc9030
分离日志记录 2018-04-05 10:27:03 +08:00
yushijinhun 77105062de
将到skins.minecraft.net的请求导向本地, fix #7 2018-03-31 22:16:12 +08:00
yushijinhun 42aefc9f4a
更新包白名单 2018-03-31 22:14:56 +08:00
yushijinhun 85228f3899
将nanohttpd添加为依赖 2018-03-31 18:49:41 +08:00
yushijinhun c7866c1dc5
use base64 to encode prefetched data
this prevents commandline injection
2018-02-18 09:24:03 +08:00
yushijinhun 83dcd8380f
support retransform 2018-02-17 21:39:33 +08:00
yushijinhun cdae2408bc
refactor YggdrasilConfiguration.toString() 2018-02-13 12:59:25 +08:00
yushijinhun a671ee8339
support prefetched metadata & refactor 2018-02-13 12:36:30 +08:00
yushijinhun cd5b42140c
refactor remote config & update readme 2018-02-13 11:57:44 +08:00
yushijinhun d71cad2085
remove local config & tweaker 2018-02-13 11:54:07 +08:00
yushijinhun 8aa3f20a60
support replacing http://skins.minecraft.net/MinecraftSkins/%s.png
see #7 for details
2018-02-13 11:33:23 +08:00
yushijinhun 1731f0b0cb
fixes 2018-02-13 01:22:51 +08:00
yushijinhun dff095e2cd
add license for org.json 2018-02-12 23:34:10 +08:00
yushijinhun feab9141c3
fix ctx classloader 2018-02-12 23:15:04 +08:00
yushijinhun 50159626ae
add licenses to build output 2018-02-12 21:46:47 +08:00
yushijinhun 0fbff175ff
update asm to 6.0 2018-01-25 19:49:32 +08:00
yushijinhun 5705c009aa
ignore packages: org.jcp, paulscode, com.ibm, joptsimple 2018-01-25 19:39:56 +08:00
yushijinhun f7a715d12c
print processed classes when debug is on 2018-01-25 19:39:11 +08:00
yushijinhun 2c5986130f
add RemoteConfiguration 2018-01-25 18:38:07 +08:00
yushijinhun 12466bbbed
add HttpRequester 2018-01-25 17:56:22 +08:00
yushijinhun eec4a40eec
refactor config lookup 2018-01-25 17:51:12 +08:00
yushijinhun 0594dac932
Fix compile warnings & Add git info to build output 2018-01-25 16:59:13 +08:00
yushijinhun a1a4a3dbc2
fixes 2017-12-31 17:21:07 +08:00
yushijinhun 3185f73f6b
实现远程自动配置 2017-08-21 22:30:11 +08:00
yushijinhun b3376d61ce
migrate code from to2mbn/authlib-agent 2017-08-13 17:43:13 +08:00