Sei sulla pagina 1di 7

[quote='Elayna' pid='477' dateline='1409302564']

Hello All.
Seeing from the server bytes code which was show on this forum. So i when search
ing on COC classes folder. Please note coc was not just created from Unity they
use few other engines also and mixed them up together. I will try to share it so
on
So this was what i found.
// Byte code:
// 0: iconst_1
// 1: istore_1
// 2: iconst_0
// 3: istore_2
// 4: aload_0
// 5: getstatic 223
com/supercell/titan/au:c
Lcom/supercell/t
itan/au;
// 8: putfield 46 com/supercell/titan/as:h
Lcom/supercell/titan/au;
// 11: aload_0
// 12: invokestatic 225 com/supercell/titan/as:d
()Lorg/apache/ht
tp/impl/client/DefaultHttpClient;
// 15: putfield 227
com/supercell/titan/as:j
Lorg/apache/http
/client/HttpClient;
// 18: aload_0
// 19: getfield 227
com/supercell/titan/as:j
Lorg/apache/http
/client/HttpClient;
// 22: invokeinterface 233 1 0
// 27: sipush 15000
// 30: invokestatic 239 org/apache/http/params/HttpConnectionParams:setC
onnectionTimeout
(Lorg/apache/http/params/HttpParams;I)V
// 33: aload_0
// 34: getfield 208
com/supercell/titan/as:e
Lcom/supercell/t
itan/at;
// 37: getstatic 206
com/supercell/titan/at:a
Lcom/supercell/t
itan/at;
// 40: if_acmpne +405 -> 445
// 43: new 241
org/apache/http/client/methods/HttpGet
// 46: dup
// 47: aload_0
// 48: getfield 38
com/supercell/titan/as:b
Ljava/lang/Strin
g;
// 51: invokespecial 244 org/apache/http/client/methods/HttpGet:<init>
(Ljava/lang/String;)V
// 54: astore_3
// 55: aload_0
// 56: getfield 227
com/supercell/titan/as:j
Lorg/apache/http
/client/HttpClient;
// 59: aload_3
// 60: invokeinterface 248 2 0
// 65: invokeinterface 254 1 0
// 70: invokeinterface 260 1 0
// 75: astore 9
// 77: aload_0
// 78: getfield 52
com/supercell/titan/as:k
Ljava/lang/Strin
g;
// 81: invokevirtual 266 java/lang/String:isEmpty
()Z
// 84: ifeq +51 -> 135
// 87: aload_0
// 88: aload 9

// 90: invokestatic 268 com/supercell/titan/as:a


(Ljava/io/InputS
tream;)[B
// 93: putfield 216
com/supercell/titan/as:i
[B
// 96: iload_1
// 97: istore_2
// 98: iload_2
// 99: ifeq +336 -> 435
// 102: aload_0
// 103: getstatic 270
com/supercell/titan/au:d
Lcom/supercell/t
itan/au;
// 106: putfield 46
com/supercell/titan/as:h
Lcom/supercell/t
itan/au;
// 109: new 272 android/os/Message
// 112: dup
// 113: invokespecial 273 android/os/Message:<init>
()V
// 116: astore 5
// 118: aload 5
// 120: aload_0
// 121: putfield 277
android/os/Message:obj Ljava/lang/Object;
// 124: aload_0
// 125: getfield 48
com/supercell/titan/as:f
Landroid/os/Hand
ler;
// 128: aload 5
// 130: invokevirtual 281 android/os/Handler:sendMessage (Landroid/os/Mes
sage;)Z
// 133: pop
// 134: return
// 135: ldc_w 283
// 138: ldc_w 285
// 141: invokestatic 288 com/supercell/titan/GameApp:getInstance ()Lcom/s
upercell/titan/GameApp;
// 144: invokevirtual 292 com/supercell/titan/GameApp:getCacheDir ()Ljava/
io/File;
// 147: invokestatic 298 java/io/File:createTempFile
(Ljava/lang/Stri
ng;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
// 150: astore 10
// 152: new 300 java/io/FileOutputStream
// 155: dup
// 156: aload 10
// 158: invokespecial 301 java/io/FileOutputStream:<init> (Ljava/io/File;)
V
// 161: astore 11
// 163: sipush 1024
// 166: newarray byte
// 168: astore 13
// 170: aload 9
// 172: aload 13
// 174: iconst_0
// 175: sipush 1024
// 178: invokevirtual 93 java/io/InputStream:read
([BII)I
// 181: istore 14
// 183: iload 14
// 185: bipush 255
// 187: if_icmpeq +41 -> 228
// 190: aload 11
// 192: aload 13
// 194: iconst_0
// 195: iload 14
// 197: invokevirtual 302 java/io/FileOutputStream:write ([BII)V
// 200: goto -30 -> 170

// 203: astore 12
// 205: aload 11
// 207: ifnull +8 -> 215
// 210: aload 11
// 212: invokevirtual 303 java/io/FileOutputStream:close ()V
// 215: aload 12
// 217: athrow
// 218: astore 8
// 220: aload 8
// 222: invokestatic 200 com/supercell/titan/GameApp:debuggerException
(Ljava/lang/Exception;)V
// 225: goto -127 -> 98
// 228: aload 11
// 230: invokevirtual 303 java/io/FileOutputStream:close ()V
// 233: aload_0
// 234: getfield 50
com/supercell/titan/as:d
Ljava/lang/Strin
g;
// 237: invokevirtual 266 java/lang/String:isEmpty
()Z
// 240: istore 18
// 242: iload 18
// 244: ifne +165 -> 409
// 247: aload 10
// 249: invokestatic 305 com/supercell/titan/as:a
(Ljava/io/File;)
[B
// 252: astore 22
// 254: aload 22
// 256: ifnull +140 -> 396
// 259: new 307 java/lang/StringBuilder
// 262: dup
// 263: invokespecial 308 java/lang/StringBuilder:<init> ()V
// 266: astore 23
// 268: aload 22
// 270: arraylength
// 271: istore 24
// 273: iconst_0
// 274: istore 25
// 276: iload 25
// 278: iload 24
// 280: if_icmpge +49 -> 329
// 283: aload 22
// 285: iload 25
// 287: baload
// 288: istore 28
// 290: iconst_1
// 291: anewarray 4
java/lang/Object
// 294: astore 29
// 296: aload 29
// 298: iconst_0
// 299: iload 28
// 301: sipush 255
// 304: iand
// 305: invokestatic 314 java/lang/Integer:valueOf
(I)Ljava/lang/In
teger;
// 308: aastore
// 309: aload 23
// 311: ldc_w 316
// 314: aload 29
// 316: invokestatic 320 java/lang/String:format (Ljava/lang/String;[Ljav
a/lang/Object;)Ljava/lang/String;
// 319: invokevirtual 324 java/lang/StringBuilder:append (Ljava/lang/Stri

ng;)Ljava/lang/StringBuilder;
// 322: pop
// 323: iinc 25 1
// 326: goto -50 -> 276
// 329: aload 23
// 331: invokevirtual 327 java/lang/StringBuilder:toString
()Ljava/
lang/String;
// 334: aload_0
// 335: getfield 50
com/supercell/titan/as:d
Ljava/lang/Strin
g;
// 338: invokevirtual 331 java/lang/String:equalsIgnoreCase
(Ljava/l
ang/String;)Z
// 341: istore 26
// 343: iload 26
// 345: ifeq +46 -> 391
// 348: iload_1
// 349: istore 19
// 351: iload 19
// 353: ifeq +22 -> 375
// 356: aload 10
// 358: new 294 java/io/File
// 361: dup
// 362: aload_0
// 363: getfield 52
com/supercell/titan/as:k
Ljava/lang/Strin
g;
// 366: invokespecial 332 java/io/File:<init>
(Ljava/lang/String;)V
// 369: invokevirtual 336 java/io/File:renameTo (Ljava/io/File;)Z
// 372: ifne +294 -> 666
// 375: iload_1
// 376: ifeq +9 -> 385
// 379: aload 10
// 381: invokevirtual 339 java/io/File:delete
()Z
// 384: pop
// 385: iload 19
// 387: istore_2
// 388: goto -290 -> 98
// 391: aload_0
// 392: getfield 52
com/supercell/titan/as:k
Ljava/lang/Strin
g;
// 395: pop
// 396: iconst_0
// 397: istore 19
// 399: goto -48 -> 351
// 402: astore 21
// 404: aload 21
// 406: invokestatic 200 com/supercell/titan/GameApp:debuggerException
(Ljava/lang/Exception;)V
// 409: iload_1
// 410: istore 19
// 412: goto -61 -> 351
// 415: astore 7
// 417: aload 7
// 419: invokestatic 200 com/supercell/titan/GameApp:debuggerException
(Ljava/lang/Exception;)V
// 422: goto -324 -> 98
// 425: astore 4
// 427: aload 4
// 429: invokestatic 200 com/supercell/titan/GameApp:debuggerException
(Ljava/lang/Exception;)V
// 432: goto -334 -> 98

// 435: aload_0
// 436: getstatic 341
com/supercell/titan/au:e
Lcom/supercell/t
itan/au;
// 439: putfield 46
com/supercell/titan/as:h
Lcom/supercell/t
itan/au;
// 442: goto -333 -> 109
// 445: aload_0
// 446: getfield 208
com/supercell/titan/as:e
Lcom/supercell/t
itan/at;
// 449: getstatic 213
com/supercell/titan/at:b
Lcom/supercell/t
itan/at;
// 452: if_acmpne +139 -> 591
// 455: new 343 org/apache/http/client/methods/HttpPost
// 458: dup
// 459: aload_0
// 460: getfield 38
com/supercell/titan/as:b
Ljava/lang/Strin
g;
// 463: invokespecial 344 org/apache/http/client/methods/HttpPost:<init>
(Ljava/lang/String;)V
// 466: astore 31
// 468: aload 31
// 470: new 346 org/apache/http/entity/ByteArrayEntity
// 473: dup
// 474: aload_0
// 475: getfield 210
com/supercell/titan/as:g
[B
// 478: invokespecial 349 org/apache/http/entity/ByteArrayEntity:<init>
([B)V
// 481: invokevirtual 353 org/apache/http/client/methods/HttpPost:setEntit
y
(Lorg/apache/http/HttpEntity;)V
// 484: aload 31
// 486: ldc_w 355
// 489: ldc_w 357
// 492: invokevirtual 360 org/apache/http/client/methods/HttpPost:setHeade
r
(Ljava/lang/String;Ljava/lang/String;)V
// 495: aload 31
// 497: ldc_w 362
// 500: aload_0
// 501: getfield 40
com/supercell/titan/as:c
Ljava/lang/Strin
g;
// 504: invokevirtual 360 org/apache/http/client/methods/HttpPost:setHeade
r
(Ljava/lang/String;Ljava/lang/String;)V
// 507: aload_0
// 508: aload_0
// 509: getfield 227
com/supercell/titan/as:j
Lorg/apache/http
/client/HttpClient;
// 512: aload 31
// 514: invokeinterface 248 2 0
// 519: invokeinterface 254 1 0
// 524: invokeinterface 260 1 0
// 529: invokestatic 268 com/supercell/titan/as:a
(Ljava/io/InputS
tream;)[B
// 532: putfield 216
com/supercell/titan/as:i
[B
// 535: iload_1
// 536: istore_2
// 537: iload_2
// 538: ifeq +43 -> 581
// 541: aload_0
// 542: getstatic 270
com/supercell/titan/au:d
Lcom/supercell/t
itan/au;
// 545: putfield 46
com/supercell/titan/as:h
Lcom/supercell/t

itan/au;
// 548: goto -439 -> 109
// 551: astore 34
// 553: aload 34
// 555: invokestatic 200
(Ljava/lang/Exception;)V
// 558: goto -21 -> 537
// 561: astore 33
// 563: aload 33
// 565: invokestatic 200
(Ljava/lang/Exception;)V
// 568: goto -31 -> 537
// 571: astore 32
// 573: aload 32
// 575: invokestatic 200
(Ljava/lang/Exception;)V
// 578: goto -41 -> 537
// 581: aload_0
// 582: getstatic 341
itan/au;
// 585: putfield 46
itan/au;
// 588: goto -479 -> 109
// 591: aload_0
// 592: getstatic 341
itan/au;
// 595: putfield 46
itan/au;
// 598: goto -489 -> 109
// 601: astore 17
// 603: iload_1
// 604: istore_2
// 605: aload 17
// 607: astore 4
// 609: goto -182 -> 427
// 612: astore 4
// 614: iload 19
// 616: istore_2
// 617: goto -190 -> 427
// 620: astore 16
// 622: iload_1
// 623: istore_2
// 624: aload 16
// 626: astore 7
// 628: goto -211 -> 417
// 631: astore 7
// 633: iload 19
// 635: istore_2
// 636: goto -219 -> 417
// 639: astore 15
// 641: iload_1
// 642: istore_2
// 643: aload 15
// 645: astore 8
// 647: goto -427 -> 220
// 650: astore 8
// 652: iload 19
// 654: istore_2
// 655: goto -435 -> 220
// 658: astore 12

com/supercell/titan/GameApp:debuggerException

com/supercell/titan/GameApp:debuggerException

com/supercell/titan/GameApp:debuggerException

com/supercell/titan/au:e

Lcom/supercell/t

com/supercell/titan/as:h

Lcom/supercell/t

com/supercell/titan/au:e

Lcom/supercell/t

com/supercell/titan/as:h

Lcom/supercell/t

// 660: aconst_null
// 661: astore 11
// 663: goto -458 -> 205
// 666: iconst_0
// 667: istore_1
// 668: goto -293 -> 375
//
// Exception table:
// from to
target
// 163
200
203
// 55
96
218
// 135
152
218
// 210
218
218
// 247
343
218
// 391
396
218
// 247
343
402
// 391
396
402
// 55
96
415
// 135
152
415
// 210
218
415
// 247
343
415
// 391
396
415
// 55
96
425
// 135
152
425
// 210
218
425
// 507
535
551
// 507
535
561
// 507
535
571
// 228
242
601
// 404
409
601
// 356
385
612
// 228
242
620
// 404
409
620
// 356
385
631
// 228
242
639
// 404
409
639
// 356
385
650
// 152
163
658
}
}
Hope this help :D
[/quote]

type
finally
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
java/lang/Exception
java/lang/Exception
java/io/IOException
java/io/IOException
java/io/IOException
java/io/IOException
java/io/IOException
java/lang/Exception
java/lang/Exception
java/lang/Exception
org/apache/http/client/ClientProtocolException
java/io/IOException
java/lang/Exception
java/lang/Exception
java/lang/Exception
java/lang/Exception
java/io/IOException
java/io/IOException
java/io/IOException
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
org/apache/http/client/ClientProtocolException
finally

Potrebbero piacerti anche