Password Protected Bukkit Server

Discussion in 'Bukkit Tools' started by marti.2001, Jul 18, 2012.

Thread Status:
Not open for further replies.
  1. Offline

    marti.2001

    Hi everyone!:)
    I've made a batch file that asks for a password when you start the server.
    Copy the code below, right-click your run.bat, startserver.bat or whatever is it, right-click it, click Edit and replace the code with that you have copied. Then replace "***Password***" in the file with your password and "***Craftbukkit Name***" with the name of your craftbukkit.jar Place it without the .jar in the end! (My craftbukkit is "craftbukkit-1.2.5-R4.0.jar", I should remove the .jar and replace "***Craftbukkit Name***" with "craftbukkit-1.2.5-R4.0".

    Code:
    Code:
    @echo off
    set password=***PASSWORD***
    set craftbukkit=***CRAFTBUKKIT NAME***
    :start
    color e
    cls
    echo You need to type the password to start the server!
    echo.
    set /p userpass=
    if %password%==%userpass% goto startserver
    cls
    color c
    echo Incorrect Password!
    ping localhost -n 6 >nul
    goto start
    :startserver
    cls
    color a
    echo Password Accepted!
    echo.
    echo Starting the server...
    ping localhost -n 6 >nul
    color 7
    cls
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar %craftbukkit%.jar
     
  2. Offline

    Omnitv

    I personally dont see a point of this. but this is just me.
    Who knows if you are running your server in a public place like a school or a library yeah this could be useful.
    But you can bypass this by just editing the server.bat or use the bukkit GUI.
    As I said this is just me.
     
    BMX_ATVMAN14 likes this.
  3. Offline

    jacklin213

    Code:
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx1024M -Xms1024M -jar %craftbukkit%.jar
    
    this aint gonna work ever time will it?
     
  4. Offline

    marti.2001

    Yes, the original code will work if you change it after you use my code.:)
    But you shouldn't delete a part of my code, like this, it won't work, use the original code. :)
     
  5. Offline

    Sayshal

    Right click & Edit. Password found, program failed.
     
  6. Offline

    marti.2001

    what do you mean
     
  7. Offline

    Sayshal

    If for whatever stupid reason the Government of Russia sneaks into my Canadian home and wants to use my MineCraft server to detonate Nuclear bombs in America, they could just right click on this batch file, press 'Edit', and find the password.
     
    ShootToMaim likes this.
  8. Offline

    Omnitv

     
  9. Offline

    marti.2001

    Yes, but people like a little brother don't know how to get the password
     
  10. Offline

    Sayshal

    Fair enough. Answer me this. Why would you need to lock a MineCraft server?
     
  11. Offline

    marti.2001

    Example: Somebody has a little brother, who thinks that is funny to start and stop your server. This will prevent him to confuse your players (They log in, then the server is stopped. Server started again. Stopped again...)
     
  12. Offline

    Sayshal

    Why is it wrong for your "little brother" to play with your server? If it's hosted at home, surely it can't be that mega-awesome-huge-popular.
     
    ShootToMaim likes this.
  13. Offline

    marti.2001

    The players will be angry, will you be angry if a server is started, then you find diamonds and the server is closed with the X Your diamonds are lost because the world isn't saved!
     
  14. Offline

    Sayshal

    You haven't convinced me at all. I find this useless. Lock your computer if you're not using it.
     
  15. Offline

    Omnitv

    Also if it is your computer that has a password on it, then your "Little brother" wont be able to access it.
    Either way you should know what your little bother is doing if you are the eldest son.
     
  16. Offline

    marti.2001

    ok but if the computer is yours and your brother's and he uses only internet and he can't use user accounts (some children can't) it will protect your server
     
  17. Offline

    Omnitv

    You didn't quite think this though.
    All operating systems have function to have different accounts for a computer such as guest, admin, mom, dad, ect.
    this code can be easily edited by some one smart enough, or can be done by using the GUI, so you will need to look for a more secure application/tool if you want to have a secure Bukkit server.
    They can simply right click it and edit it and the code is therefor useless. I am not convinced that this is a "Password Protected Bukkit server" as it can be easily compromised or bypassed.
     
  18. Offline

    marti.2001

    Little brothers dont know how to get the password and what is a GUI.
     
  19. Offline

    Omnitv

  20. Offline

    Sayshal

    Then call it an Anti-Little-Brother Batch File, it's not safe at all.
     
  21. Offline

    jacklin213

    ^ this is why u need to convert the batch files to .exe files BUT DONT USE ANY SOFTWARE they tend to run suspious tasks without u knowing it
     
  22. Offline

    Sayshal

    Still very easy to crack... In fact, if you're little brother or Russian terrorist friend simply made their OWN batchfile to start the Jar... Then what? :O. Fail idea.
     
    CarlosArias604 likes this.
  23. Offline

    jacklin213

Thread Status:
Not open for further replies.

Share This Page