https://linen.dev logo
Join Discord
Powered by
# general
  • m

    Merith

    04/26/2023, 6:36 AM
    I found an issue where it isnt moving the files to the bin folder so... running straight from temp in local changes
  • p

    Phorcys

    04/26/2023, 6:36 AM
    don't get me wrong -- it works, but maybe you could also get a "real" server 🙈
  • m

    Merith

    04/26/2023, 6:36 AM
    also... uh so I pass it the argument
    --user-data-dir ./.code-server/data
    but it says it is saving to
    ~/.code-server/data
  • m

    Merith

    04/26/2023, 6:37 AM

    https://cdn.discordapp.com/attachments/971231372373033030/1100671873471229972/image.pngâ–¾

  • p

    Phorcys

    04/26/2023, 6:37 AM
    https://github.com/Merith-TK/mc-code-server/blob/1d4e6f58244260e10651693cc77390d1cd761ce3/src/main/java/tk/merith/codeserver/CodeServer.java#L48
  • m

    Merith

    04/26/2023, 6:37 AM
    yeah thato code isnt updated yet
  • m

    Merith

    04/26/2023, 6:38 AM
    Oh that part
  • m

    Merith

    04/26/2023, 6:38 AM
    that part works, because everything else gets created properly, even that folder
  • m

    Merith

    04/26/2023, 6:38 AM
    Copy code
    java
    processBuilder.command(codeServerTempDir.resolve("code-server-" + version + "-linux-" + arch + "/bin/code-server").toString(), "--config", codeServerDir.resolve("config.yaml").toString(), "--user-data-dir", "./.code-server/data", "--extensions-dir", "./.code-server/extensions", "--disable-update-check", "--disable-telemetry");
  • p

    Phorcys

    04/26/2023, 6:38 AM
    so -- this is only to abuse mc servers to get some kind of shell access, correct?
  • m

    Merith

    04/26/2023, 6:39 AM
    Primarily better file access
  • p

    Phorcys

    04/26/2023, 6:39 AM
    last time I did that I got my account terminated but yeah sure
  • m

    Merith

    04/26/2023, 6:39 AM
    nah if i wanted shell access I would polish the
    backdoor-mod
    I made
  • m

    Merith

    04/26/2023, 6:40 AM
  • p

    Phorcys

    04/26/2023, 6:40 AM
    maybe code-server is interpreting the data dir as an absolute path
  • p

    Phorcys

    04/26/2023, 6:40 AM
    what I'm saying is that it's still in ~/.code-server right?
  • p

    Phorcys

    04/26/2023, 6:40 AM
    or is it in the plugins dir
  • m

    Merith

    04/26/2023, 6:41 AM
    its not making that folder...
  • m

    Merith

    04/26/2023, 6:41 AM
    in ~
  • m

    Merith

    04/26/2023, 6:41 AM
    hmm
  • p

    Phorcys

    04/26/2023, 6:41 AM
    yeah so
  • m

    Merith

    04/26/2023, 6:41 AM
    the data folder is empty... so maybe how its being printed is broked lol
  • p

    Phorcys

    04/26/2023, 6:42 AM
    if you say "get ``./.code-server``" but ``./.code-server`` is also ``~/.code-server`` then maybe code-server sanitizes that
  • p

    Phorcys

    04/26/2023, 6:42 AM
    i don't know honestly
  • m

    Merith

    04/26/2023, 6:42 AM
    nah, its running in the server directory, (in an minecraft mod workspace in intellij, .
    /run
    )
  • m

    Merith

    04/26/2023, 6:43 AM
    It no work on windows for obvious reasons

    https://cdn.discordapp.com/attachments/971231372373033030/1100673390852964412/image.pngâ–¾

  • m

    Merith

    04/26/2023, 6:44 AM
    Made a push to update the code with what I got locally
  • p

    Phorcys

    04/26/2023, 7:01 AM
    why doesn't it?
  • p

    Phorcys

    04/26/2023, 7:02 AM
    also instead of using ``./.code-server`` you might aswell give it the full path
  • m

    Merith

    04/26/2023, 7:06 AM
    1) who is gonna run a minecraft server on WINDOWS and need this mod 2) there are no readily availiable releases of CodeServer for windows, the official instructions say to compile from source
1...858687...96Latest