Comments (12)
There are some issues with modded servers.
I believe some mods still introduce new packets, even though they should all use the plugin message system. This would mean we'd have to introduce new packet definitions for each and every mod not using the plugin message system. I think @ammaraskar would agree, that it is beyond the scope of pyCraft to support mods not using the standardized packet definitions (plugin message 0x17).
from pycraft.
This would mean we'd have to introduce new packet definitions for each and every mod not using the plugin message system
Not necessarily, if there's a packet we don't support we just skip it.
However, I really don't feel like back porting the code for whatever packets 1.7 used, I'd rather keep 1.8 as the base for the rewrite.
from pycraft.
We would still be unable to parse the non-notchian packets though.
I agree that backporting to 1.7 seems a bit silly. Mods will eventually update to 1.8, and from then on we can support each version simply by adding git tags.
from pycraft.
We would still be unable to parse the non-notchian packets though.
They still have to send the packet header meaning we know exactly how many bytes to skip reading, which is already handled here: https://github.com/ammaraskar/pyCraft/blob/master/minecraft/networking/connection.py#L234-L241
from pycraft.
I made 1.7 support for this changing some code in packets.py and looking on wiki.vg. I will publish this when finished.
from pycraft.
Thanks Mati, your efforts were exactly what I needed. Trying to verify hotpatch for the 0-day using the exploit for a 1.7.10 server; took your efforts and adapted to protocol 5, with the exploit as an optional command after start: https://github.com/ProgrammerDan/pyCraft/tree/1.7.10-exploit
from pycraft.
I tried to make expilot working with 1.7 but i missed something on blockplace packet, so it disconnect from server. I dont have much time to look at it :C
from pycraft.
Having the same problem, getting frame width exceptions. Something with the
NBT packet data, I think. Digging deeper atm.
On Sat, Apr 18, 2015 at 5:09 AM, Mati0703 [email protected] wrote:
I tried to make expilot working with 1.7 but i missed something on
blockplace packet, so it disconnect from server. I dont have much time to
look at it :C—
Reply to this email directly or view it on GitHub
#33 (comment).
from pycraft.
@Mati0703 Check the prior linked branch. It's working now. Trick was dealing with NBT in 1.7.10 -- it must be GZIP (in this context, have to use gzip lib, not zlib), and you have to prepend the NBT with a SHORT indicating size of gzip'd data. I've confirmed on a spigot 1.7.10 unpatched server; it brings it down. Might need to send a few exploit packets, but the failure is progressive -- at first seems to just be a lag spike, but after a few minutes, server blows up with stack trace failures and dies. Haven't tried vanilla 1.7.10, but I'd image the same result. Should be easy to adapt from here to earlier versions as you'll just have to tweak individual packets in the reactors, and the exploit should still work as written.
from pycraft.
@ProgrammerDan Thanks! You solved this! Now i can check if my 1.7.2 patched server can handle this :)
from pycraft.
Simply patched in 1.7.2 server by adding to NTBTagList this:
if ( (j+1) > 2097152) {
System.out.println("PyCraft Hack detected!");
throw new RuntimeException("Tried to read NBT tag that was too big; tried to allocate: " + (j+1) + "bytes where max allowed: 2097152");
}
in void load(DataInput datainput, int i) :)
from pycraft.
Thanks for the work on porting pyCraft over to 1.7.x guys!
from pycraft.
Related Issues (20)
- Server protocol version error HOT 3
- Unexpected end of message.
- How to click? HOT 1
- How to open a container? HOT 1
- Custom packets broken
- How to reconnect to the server? HOT 1
- attempting to write None field (workaround included)
- 1.19 support? HOT 24
- Unable to dig block HOT 3
- 1.18.2 support HOT 1
- disconnect.timeout HOT 1
- Logging in, getting 403 invalid credentials. HOT 2
- We need pyCraft3 HOT 5
- a1.2.6 supported?
- Rooted Roku HOT 4
- Baritone Bot integration? HOT 1
- 1.18.2 support?
- Microsoft authentication failure HOT 2
- Can't import Minecraft from PyCraft?
- 1.19 and 1.20 support ? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pycraft.