Skip to content

Instantly share code, notes, and snippets.

@Dark32
Created July 11, 2013 12:20
Show Gist options
  • Save Dark32/5974972 to your computer and use it in GitHub Desktop.
Save Dark32/5974972 to your computer and use it in GitHub Desktop.
rem @set appd=%appdata%
@set APPDATA=%~dp0/..
rem echo %appdata%
@set curl="curl.exe"
@set java="java"
@set [email protected]
@set pass=youpass
@%curl% -d "user=%mail%&password=%pass%&version=2" srv.cravs.org/minecraft/v1/auth.php >sess.ls
@Set file=sess.ls
@For /F "usebackq tokens=* delims=" %%i In ("%file%") Do Set var=%%i
@Echo %var%>sess.ls
@set /p sess=<sess.ls
@set sess= %sess:~-33,-1%
@set sess= %sess::=%
@echo session get: %sess%
@%java% -Xms512m -Xmx1024m -cp "%APPDATA%\.cravs\bin\*" -Djava.library.path="%APPDATA%\.cravs\bin\natives" net.minecraft.client.Minecraft %nick% %sess%
@pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment