Jump to content

Recommended Posts

Posted

Hello MxC Members.. Let's Start... ::)

 

start off there is the @echo off/on

and there is echo

and pause

 

so here is an example

 

@echo off

echo Hello This is a test

pause

 

type this in notepad and save as test.bat

launch it

it will look like this

 

Hello This is a test

Press any key to continue...

 

Again open notepad and write:

 

@echo on

echo Hello This is a test

pause

 

and save it on the desktop as test2.bat

launch it , it will look like this

>

C:\Documents and Settings\User\Desktop>echo Hello This is a test

Hello This is a test

C:\Documents and Settings\User\Desktop>pause

Press any key to continue

 

So for the explanation

@echo off/on:

if you put @echo on it will show the directory as you just saw

if you put @echo off it will just show the words with no directories

so its best to use @echo off

 

echo:

If you want to type a simple phrase just type in echo and something in this case echo Hello This is a test

which will show Hello This is a test

 

pause

pause will pause the batch file,if you press a key the batch will continue in this case it will exit because there is no more left

so try this

 

@echo off

echo Hello This is a test

pause

echo I am testing pause

pause

 

 

This will show

Hello This is a test

Press Any Key To Continue...

(when you press a key it will show)

I am testing a pause

Press Any key to continue..

 

so that convers the pause command

 

Now some more commands

there is msg *

and there is cls

 

open notepad and write:

 

@echo off

echo Hello This is a test

pause

cls

echo I am testing pause

msg * The End

pause

 

and save as test3.bat

 

This will show

 

Hello This is a test

Press Any Key To Continue...

(when you press a key it will show)

cls

(the page will clear)

I am testing a pause

(a pop-up will show saying The End)

Press Any key to continue..

 

So .. cls will just clear the screen

and msg * will bring up a pop-up:D

 

other commands are REM and goto and start

so create a folder name it Test

put any picture inside and name it testpic

open notepad and type

 

@echo off

echo Testing start and rem

rem title Test

start testpic.jpg (or any other extension)

pause

 

and save it inside the new folder as test4.bat

 

launch it , it will show:

 

Testing start and rem

Press Any Key To Continue

(and the picture will launch)

 

so start will launch any file

and rem is a remark.. which wont show in the bat file when running

 

now the goto and set and if

 

type this inside notepad

 

@echo off

echo This is a test

echo If you want to do math type 1 and press enter

echo If you want to see a picture type 2 and press enter

set /p option=

if '%option%'=='1' goto :math

if '%option%'=='2' start testpic.jpg (or any extension)

 

:math

echo 2+2

pause

 

and save it inside the new folder

 

this will show

 

This is a test

If you want to do math type 1 and press enter

if you want to see a picture type 2 and press enter

(here you can type 1 or 2 and press enter)

(if you press 2 and Enter the picture will load)

(if you press 1 and enter this will show up):

2+2

Press any key to continue...

 

so goto will go to a Label or a Part of the file

when you put :Math

a new label will be named Math and when you put goto :math

the batch will go to :math

 

set

the set option will set something :D.. here its going to set :choice

the set is , in some options followed by if

so if I type 1 in this example

the "choice" will be 1 .. and it will go to :math because we put

if '%choice%'=='1' goto :math

so if we put 1 the choice will be 1 therefore it will goto :math

 

anyway those are the basics..

 

am going to talk about call,exit,and SHIFT?

 

go into notepad and type this

 

@echo off

echo yay me i know the basics of batch

call call.bat

pause

exit

 

and save in a new folder:)

 

then open note pad and type this again

 

@echo off

echo I Love Fooball

pause

 

and save in the same folder that you save the last one... and name it call.bat

 

launch the first one

this will show

 

yay me i know the basics of batch

I Love Football

Press Any Key To Continue....

(when you press a key the below will appear)

Press Any Key To Continue...

and when you press a key it will exit

 

ok.. so now you know what exit does.. it exits the file Imao

and call ,calls in another batch file!!..

so now for SHIFT which is a little hard so try to understand

 

SHIFT [/n]

 

If Command Extensions are enabled the SHIFT command supports the /n switch which tells the command to start shifting at the nth argument, where n euh.. can be between zero and eight.

just like this 1 below

 

SHIFT /2

 

would shift %3 to %2, %4 to %3, etc. and leave %0 and %1 ..euh.. how can i say it.. .:S.. unaffected yea thats the word .

 

Examples

 

the below has got to be saved as .bat.. so just name it test:)

 

@ECHO OFF

ECHO - %1

SHIFT

ECHO - %1

 

After creating the above example test.bat file, if you were to type the below command at the MS-DOS prompt, it would print "- ONE" and then "- TWO"; this command is commonly used to work through each of the command extensions or remove command extensions.

(SHIFT , i mean the explanation... i got it from a website and edited it)

 

launch windows applications:

type in notepad:

 

@echo off

echo I am testing notepad!

start /MIN notepad

pause

 

This will show

 

i am testing notepad

(and notepad will start minimized.. if you put /MAX instead of /MIN it will launch maximized)

Press Any Key To Continue

 

Now lets learn how to put a timeout inside a batch..

 

goto notepad and type:

 

@echo off

echo i am trying timeout

set wait=0

:pause1

set /a wait=%wait%+1

if %wait% leq 1000 goto pause1

echo IT WORKED!\

pause

 

dont understand the command.. just copy paste it.. or memorize it .. if i tell you the explanation it will take years!!..

 

so this will show :

 

i am trying timeout

(couple of seconds and.. )

Press Any Key To Continue...

 

Now ill teach you how to change the TIME

 

goto notepad and type:

 

@echo off

echo Gee!.. i wonder what time it is!!

TIME 5:50

echo Oh so its 5:50

pause

 

this will show:

 

Gee!.. i wonder what time its is!!

Oh so its 5:50

 

The TIME will just change The TIME:PImao

 

Now the Color

 

go into notepad and type this

 

 

@echo off

echo trying the colors

pause

color 04

echo testing

pause

color f

echo trying

pause

color 4f

echo trying

pause

 

04=background black and font red

f the font will be white

4f = background red and f = white

 

Here are the list(that can be found by cmd>color help)

0=black

1=blue

2=green

3=aqua

4=red

5=purple

6=yellow

7=white

8=gray

9=light blue

a=light green

b=light aqua

c=light red

d=light purple

e=light yellow

f=bright white

 

So this will show Imao

i wont tell try it!!.:P

 

now the title

 

type this in notepad

 

@echo off

tile Test

echo trying the title

pause

 

this will show the title Test When you launch it!!

 

lets try Shutdown/Restart

 

type this in Notepad

@echo off

START C:\Windows\RUNDLL.EXE user.exe,exitwindowsexec

exit

 

The above will restart

 

@echo off

Shut down the computer

 

C:\Windows\RUNDLL32.EXE user,exitwindows

exit

 

The Above will Shutdown

 

Well Thats It..

By ĢåmëǾvε®

 

 

 

 

 

  • 3 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • [b]NEWVPS — 20% OFF New VPS Orders[/b] Promo code: [b]NEWVPS[/b] • Get 20% off all new VPS orders • Offer valid until [b]July 16[/b] (inclusive) Enter the promo code [b]NEWVPS[/b] during checkout to receive your discount.
    • Update: Advanced Rate Limiting Rate limiting is now applied to: Login attempts Account registration Password recovery Email confirmation resends WhatsApp verification Checkout access The system maintains independent counters by IP address and user identity, helping prevent traditional brute-force attacks as well as distributed credential-stuffing attempts using multiple proxies. Brute-Force and Credential-Stuffing Protection Protection is not limited to the visitor's IP address. The system also tracks attempts associated with the account, username, or email address, reducing the effectiveness of attacks performed through rotating IP addresses, proxies, or VPN services. Global HTTP Security Headers Security headers are applied across the entire website: X-Frame-Options X-Content-Type-Options Referrer-Policy HTTP Strict Transport Security These headers help protect the website against clickjacking, MIME-type confusion, insecure referrer exposure, and HTTP downgrade attempts. Secure Error Handling Internal exceptions are recorded in protected security logs while visitors receive sanitized error messages. This prevents the accidental exposure of: Internal file paths Database information SQL errors Server configuration Application stack traces Private Storage Exposure Monitoring The system automatically checks whether the private storage directory is publicly accessible in production. If exposure is detected, a security warning is recorded for the administrator without interrupting the website. This directory may contain licensing information, rate-limit records, and security logs and must never be publicly accessible. OAuth Request Protection Google and Facebook authentication flows use cryptographically random state values stored in the user's session. Returned state values are validated using constant-time comparison, helping prevent OAuth request forgery and unauthorized account-linking attacks. Telegram Authentication Validation Telegram login information is protected through: HMAC signature validation Constant-time hash comparison Authentication timestamp verification Expired-login rejection Secure Verification Tokens Email, password recovery, and WhatsApp verification systems include: Cryptographically secure random tokens Hashed WhatsApp verification codes Automatic expiration Limited verification attempts Resend cooldowns One-time token invalidation Account Activation Protection When email or WhatsApp verification is required, the game account remains restricted until all required verification steps are completed. Unverified users cannot bypass the confirmation process through standard or social login. Secure Upload Processing Administrative image uploads include: Real MIME-type inspection Image-content validation File-size limits Extension allowlists Server-generated random filenames Rejection of invalid or disguised files Original user-provided filenames are never used as the final stored filename. Path Traversal Protection Theme and template identifiers are restricted to validated slugs and must exist in the internal list of allowed themes. This prevents directory traversal and unauthorized local-file access through manipulated template names. Atomic Ticket Transfer Protection Ticket transfers use transactional and durable delivery processing. The balance is conditionally debited, the delivery is recorded before communication with the game database, and failed deliveries remain pending for safe reprocessing. This helps prevent: Free-item delivery Inconsistent balances Duplicate delivery Partial transaction failures Lost transfer records Concurrent Balance Protection Administrative balance adjustments use database transactions and row-level locking. This prevents simultaneous balance operations from overwriting each other or creating inconsistent account balances. Secure Redirect Handling Redirect values are sanitized against header injection, and external redirects are restricted to HTTPS destinations. Password Security Improvements The website uses modern password hashing for player-panel accounts and bcrypt with a configurable cost for supported game-server account systems. Compatibility is included for game-server implementations requiring the $2a$ bcrypt prefix. Duplicate Payment Prevention Built-in protections include: Idempotency control Transaction reference validation Payment status verification Unique external payment references Database transactions and rollback Durable payment history Completed-order verification These protections prevent: Double credits Repeated processing Duplicate payment callbacks Incomplete financial operations Signed Payment Callback Protection Payment callbacks are protected through: HMAC-SHA256 authentication Constant-time signature comparison Signed callback timestamps Callback freshness validation Shared callback secrets This helps prevent forged payment notifications, callback manipulation, and replay attacks. SQL Injection Protection The database layer uses: PDO Prepared statements Parameter binding Controlled internal allowlists for dynamic identifiers User-controlled values are not directly concatenated into SQL queries. XSS Protection Output and form data are protected through: HTML escaping Attribute escaping Input filtering HttpOnly session cookies MIME-sniffing protection Frame embedding restrictions These measures reduce the risk of Cross-Site Scripting, malicious HTML injection, session theft, and clickjacking. CSRF Protection Sensitive forms and administrative operations use session-based CSRF tokens. Requests without a valid token are rejected, helping prevent unauthorized actions performed through malicious external websites. Secure Session Protection The session system includes: HttpOnly cookies Secure cookie support SameSite restrictions Session ID regeneration Authentication state validation Session timeout controls These protections reduce the risks of session fixation, session theft, and unauthorized account reuse. reCAPTCHA Protection Google reCAPTCHA may be enabled on sensitive public forms to reduce: Automated account registrations Spam submissions Bot login attempts Automated password recovery abuse Confirmation Resend Limits Email and WhatsApp confirmation resends are protected through: Cooldown periods Rate limiting Expiring verification codes Attempt counters This prevents verification-message flooding and excessive external API usage. Licensing and Anti-Cloning Protection The website includes centralized licensing controls with: License-key validation Domain binding Signed license responses Cached license validation Temporary offline grace period Circuit-breaker protection Unauthorized-domain rejection These measures help prevent unauthorized installation, cloning, and redistribution of the system.
    • Tool that allows you to download the Lineage 2 game client directly from the official publisher CDNs. It fetches the CDN's file list and downloads every patch file, decompresses it (LZMA / Zip) and writes the finished client to disk — and can resume or repair an existing installation instead of starting over. It runs several client downloads at once through a batch queue, so you can prepare multiple regions or versions in a single session.   Supported: NCSoft CDNs (TW / KR / JP / NA) and  4game CDNs(RU / EU)   Download: https://drive.google.com/file/d/11SDcNASqO2GKOBT79LFu7mqvSRSJZvBS
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..