Advanced Bukkit Launcher and Backup (RUN.BAT replacement)

Discussion in 'Bukkit Tools' started by peterjbruins, Apr 30, 2013.

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

    peterjbruins

    This RUN.BAT replacement allows you to easily configure and launch your server, a fast and simple way!
    It also includes a very fast backup script, that backs up your world and plugins folder every hour.

    To install, simply copy the contents of the ZIP to your server's folder, and double-click run.exe to start both the launcher and backup script.
    Do not rename any files!

    Bugs:
    - Custom world not working yet for backup (rename your world's folder to 'world')
    - ...nothing found yet
    This is tested on Windows 7.


    Please test and comment!
     

    Attached Files:

  2. Offline

    mbaxter ʇıʞʞnq ɐ sɐɥ ı

  3. Offline

    peterjbruins

    I don't understand that...
    Both files are made using Batch script (Notepad++) and they're converted to EXE.

    I just checked the Batch version (not converted yet) and this is the result:
    https://www.virustotal.com/en/file/...f3c079f7e246b918bb17b2c7/analysis/1367397033/

    (Edit)
    That test above could just be the normal run.bat, so it isn't very credible...
    Here is the code so you can test it yourself:
    Code:
    @echo off
    title Advanced CraftBukkit Launcher by peterjbruins
    color f0
    if not exist craftbukkit.jar goto nobukkit
    set mode=
    set mem=
    if exist backup.bat start /min backup.bat
    if not exist mode.cbl goto setup
    if not exist mem.cbl goto memsetup
    set /p mode=<mode.cbl
    set /p mem=<mem.cbl
    :start
    cls
    echo Starting the server..
    echo.
    java -Xms%mem%M -Xmx%mem%M -jar craftbukkit.jar -o %mode%
    echo.
    echo.
    echo Server stopped.
    echo Server will restart after 5 seconds, to cancel press CTRL+C.
    timeout /t 5 >nul
    goto start
    :setup
    :modesetup
    set mode=
    cls
    echo Online mode false/true?
    echo.
    set /p mode=
    if %mode%==false echo false >mode.cbl & goto memsetup
    if %mode%==true echo true >mode.cbl & goto memsetup
    goto modesetup
    :memsetup
    if exist mem.cbl goto start
    set mem=
    cls
    echo How much memory may this server use (in megabytes)?
    echo.
    set /p mem=
    cmd /c exit %mem%
    if %errorlevel%==0 goto memsetup
    echo %mem% >mem.cbl
    goto start
    :nobukkit
    cls
    echo craftbukkit.jar was not found!
    echo Please rename you CraftBukkit JAR to 'craftbukkit.jar' (if you have one), else download it!
    echo.
    echo Press any key to exit..
    pause >nul
    exit
     
  4. Offline

    Bertware

    .bat to .exe converter, free one? That converter might be malware on its own, everything you create with it will be malware probably.
     
  5. Offline

    peterjbruins

    I used http://download.cnet.com/Bat-To-Exe-Converter/3000-2069_4-10555897.html to convert the Batch files.
    I think something in the code for run.bat is wrong, because backup.exe isn't 'infected'.

    It might just be a line in my batch script that could be a virus, i think it is this line, because i didn't use such a command for backup.bat.
    Code:
    cmd /c exit %mem%
    (It is neccesary to check the memory setting if it only contains numbers)


    (Edit)
    No, i'm wrong, because run.bat was checked and nothing was found.
    I think bat to exe converter is indeed the problem...
     
Thread Status:
Not open for further replies.

Share This Page