Skip to content

Instantly share code, notes, and snippets.

View TkTech's full-sized avatar
Converting coffee into code

Tyler Kennedy TkTech

Converting coffee into code
View GitHub Profile
#!/usr/bin/env python
# encoding: utf-8
#
# client_test.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
import getopt, sys
# encoding: utf-8
#
# mobspawn.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
from pymc.core.packets import Packets
from pymc.client.client import Client
#
# defines.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
from pymc.core.enum import Enum
# encoding: utf-8
#
# enum.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
class Enum(object):
# encoding: utf-8
#
# packets.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
from pymc.core.defines import PacketType
# encoding: utf-8
#
# handshake.py
# pymc
#
# Created by Tyler Kennedy on 2010-12-20.
# Copyright 2010 Tyler Kennedy. All rights reserved.
#
from pymc.core.packets import Packets
from pymc.client.client import Client
- Attributes: [{'SHA1-Digest': '32AV8DH/ybt1xEd1N0kWyIW2iRw=', 'Name': 'ji.class'}]
- Version: [49.0]
- Created with: [J2SE 5.0]
- Constant count: [173]
- Dumping all strings as an example:
- [92] [ is missing a mapping! This is a bug!]
- [93] [()I]
- [94] [()Ljava/lang/Class;]
- [95] [()Ljava/lang/Object;]
- [96] [()Ljava/lang/String;]
from joe.jar.jarfile import JarFile
if __name__ == "__main__":
jar = JarFile('demo/minecraft.jar', 'r')
for k,v in jar.attributes():
print k,v
<?php
/* Copyright (c) 2010 Tyler Kennedy, Matvei Stefarov
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
tyler@dedi1-server:~/pymy$ ./pymy
[1290720172][client] Latest version reported as [1290701545000] by minecraft.net
[1290720172][client] There is a new version of the client available. Downloading...
[1290720174][client] Client downloaded, temporarily stored in /tmp/tmpYmCOUp.jar
[1290720174][client] Jar file has [592] children and is [1101006kb].
[1290720174][client] Extracting jar contents to [/tmp/tmpfxFwHy/client_jar]
[1290720174][client] Decompiling...
[1290720174][client] Scanning...
[1290720174][client] [13] of [592] detected.
[1290720174][client] Cleaning up temporary client files...