Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DisableEncryption error #1

Open
cschulteksa opened this issue Apr 3, 2020 · 1 comment
Open

DisableEncryption error #1

cschulteksa opened this issue Apr 3, 2020 · 1 comment

Comments

@cschulteksa
Copy link

I wanted to try out the disable encryption mod with a vanilla Bedrock dedicated server, but I am seeing an error once the client connects:

~/bedrock-server$ ./start_modloader.sh
02:16:06 Info  [ModLoader] Loading mods from directory: mods
02:16:06 Info  [ModLoader] Loading library: mods/libCoreMod.so
02:16:06 Error [Hook] Error while preparing hook: Disassemble Error: 3
02:16:06 Info  [ModLoader] Loading library: mods/libDisableEncryption.so
02:16:06 Info  [ModLoader] Loaded 2 mods
NO LOG FILE! - setting up server logging...
[2020-04-03 02:16:06 INFO] Starting Server
[2020-04-03 02:16:06 INFO] Version 1.14.32.1 modded (ModLoader Preview 2, mods: DisableEncryption, CoreMod)
[2020-04-03 02:16:06 INFO] Session ID e46cb4e4-efcd-4cc6-83f8-1c75f73a860b
[2020-04-03 02:16:06 INFO] Level Name: Bedrock level5
[2020-04-03 02:16:06 INFO] Game mode: 0 Survival
[2020-04-03 02:16:06 INFO] Difficulty: 1 EASY
[2020-04-03 02:16:06 INFO] opening worlds/Bedrock level5/db
[2020-04-03 02:16:09 INFO] IPv4 supported, port: 19132
[2020-04-03 02:16:09 INFO] IPv6 supported, port: 19133
[2020-04-03 02:16:09 INFO] IPv4 supported, port: 53320
[2020-04-03 02:16:09 INFO] IPv6 supported, port: 34518
[2020-04-03 02:16:11 INFO] Server started.
munmap_chunk(): invalid pointer
[2020-04-03 02:16:17 INFO] Package: com.mojang.minecraft.dedicatedserver
Version: 1.14.32.1 modded (ModLoader Preview 2, mods: DisableEncryption, CoreMod)
OS: Linux
Server start: 2020-04-03 02:16:06 UTC
Dmp timestamp: 2020-04-03 02:16:17 UTC
Upload Date: 2020-04-03 02:16:17 UTC
Session ID: e46cb4e4-efcd-4cc6-83f8-1c75f73a860b
Commit hash:
Build id: development
CrashReporter Key: f5ecb7cc-a7ce-3757-9aa6-94da6f0b423c

Crash
[2020-04-03 02:16:17 INFO]      at gsignal (UnknownFile:?)
		at abort (UnknownFile:?)
		at cfree (UnknownFile:?)
		at __gnu_cxx::new_allocator<char>::deallocate[char*, unsigned long] (UnknownFile:?)
		at std::allocator_traits<std::allocator<char> >::deallocate[std::allocator<char>&, char*, unsigned long] (UnknownFile:?)
		at std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_destroy[unsigned long] (UnknownFile:?)
		at std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::_M_dispose[] (UnknownFile:?)
		at std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string[] (UnknownFile:?)
		at ServerNetworkHandler::handle[NetworkIdentifier const&, LoginPacket const&] (UnknownFile:?)
		at void _TInstanceHook__ZN20ServerNetworkHandler6handleERK17NetworkIdentifierRK11LoginPacket::original<NetworkIdentifier const&, LoginPacket const&>[ServerNetworkHandler*, NetworkIdentifier const&, LoginPacket const&] (UnknownFile:?)
		at _TInstanceHook__ZN20ServerNetworkHandler6handleERK17NetworkIdentifierRK11LoginPacket::_hook[NetworkIdentifier const&, LoginPacket const&] (UnknownFile:?)
		at PacketHandlerDispatcherInstance<LoginPacket, false>::handle[NetworkIdentifier const&, NetEventCallback&, std::shared_ptr<Packet>&] const (UnknownFile:?)
		at Packet::handle[NetworkIdentifier const&, NetEventCallback&, std::shared_ptr<Packet>&] (UnknownFile:?)
		at NetworkHandler::_sortAndPacketizeEvents[NetworkHandler::Connection&, std::chrono::time_point<std::chrono::_V2::system_clock, std::chrono::duration<long, std::ratio<1l, 1000000000l> > >] (UnknownFile:?)
		at NetworkHandler::runEvents[bool] (UnknownFile:?)
		at Minecraft::update[] (UnknownFile:?)
		at ServerInstance::_update[] (UnknownFile:?)
		at clone (UnknownFile:?)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
	<key>id</key>
	<string>d7a25d91-da19-4a97-9358-c5cd4814c3ae</string>
	<key>delay</key>
	<integer>6000</integer>
	<key>status</key>
	<integer>-80</integer>
  </dict>
</plist>
@Frago9876543210
Copy link
Owner

I suggest you use that tool instead:
https://gist.github.com/Frago9876543210/2e5de55f1bb7e42594b73f5665391bf4

You need install frida.re and put script into folder with PM. After launch BDS and that script with some arguments rw MovePlayerPacket

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants