MaimMim Man in the middle minetest interceptor
- prototype - between client and server, allow to capture all exchanges and potentially change them - created to capture server maps in laby - first test get only MapBlock, support version serialization version 28 - prepartion for 29 with zstd but untested. # Conflicts: # fetch_dependencies.sh
This commit is contained in:
26
java/org/artisanlogiciel/games/maze/MainMim.java
Normal file
26
java/org/artisanlogiciel/games/maze/MainMim.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package org.artisanlogiciel.games.maze;
|
||||
|
||||
import org.artisanlogiciel.games.minetest.net.MiM;
|
||||
|
||||
import java.net.InetSocketAddress;
|
||||
|
||||
public class MainMim {
|
||||
|
||||
void minetestMime(String serverName, int port) {
|
||||
MiM mim = new MiM(30002, new InetSocketAddress(serverName, port));
|
||||
mim.launch();
|
||||
}
|
||||
|
||||
public static void main(String pArgs[])
|
||||
{
|
||||
if ( pArgs.length > 1)
|
||||
{
|
||||
new MainMim().minetestMime(pArgs[0], Integer.parseInt(pArgs[1]));
|
||||
}
|
||||
else
|
||||
{
|
||||
System.err.println("[ERROR] please set minetest server hostname and port as arguments");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user