Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] SQL Telnet Crash Fix (https://postpacific.loc-online.com/showthread.php?t=3676)

xerogen 16.03.2006 23:59

[Share] SQL Telnet Crash Fix
 
Basically awhile back i had a problem with a certian someone logging into the servers CacheD from Telnet and a port, and running an SQL command to shut down the SQL (basically turn off sql why servers running).

srh helped me with the problem but i thought id post it in full and clear best i can for anyone else having this problem :). If someone has posted this before im sorry just please delete mine, i have searched around when i had problem and couldnt find anything though.

K basically as explained u can shut down SQL from telnetting a port on cacheD. (which i dont think u can block by firewall O.o *never worked for me*)

they use a command like:
*SELECT uid FROM user_account WITH (NOLOCK) WHERE account=''shutdown--'*

Which basically makes it go kaput :p.

The fix:
Open Enterprise Manager
Open (LOCAL)(WINDOWS NT)
GOTO Security
LOGINS
RIGHT CLICK IN RIGHT WINDOW
New Login
Give it a name.
GIVE IT SQL SERVER AUTH
GIVE IT A PASSWORD (Different from SA Login *or ur default one*)
Click server Roles Tab
Give it ONLY BULK INSERT ADMIN (Tick the box)
In Database Access tab put a Tick in lin2db & lin2world
when u click on them, in the box at the bottam make sure it has public and DBOwner, BOTH OF them.
Hit ok and close down enterprise.

When u start up CacheD again, put the new username and password in.
This will stop cock goblins shutting down ur SQL :)

If you cant put a new username and password on cacheD because of your old one. Simply change ur Current password
(SA User) *or w/e u use* then it will ask for a new user and pass on authd/cacheD/l2server/l2npc

Only use the NEWLY created login with no rights on the CacheD.

This will fix everything :)

I basically noted that down very quickly in notepad for here. It basically makes it so your CacheD cant do any SQL commands.

I posted this to help people who dont know about it already, so all u intelligent know it all leave it be :p.

Also thanks for all the help on the forums alot of people have givin me and all the great shares, i always wanted to give somet backbut seems everyone beats me to the punch ;p. So this is all i got for now :).

Hope it helps.

Kenster 17.03.2006 00:30

Firewall for the win?

testdude 17.03.2006 01:46

Quote:

Originally Posted by Kenster
Firewall for the win?

i agree... 2108+2009=bad

HF 17.03.2006 05:17

xerogen.
Your information - one of basic/main rules on all. Never to use the rights of the Administrator/SA for start of processes.
If at the majority, admin of servers LineageII of a server present here are started with use Administrator/SA the rights, I shall not be surprised why you constantly "crack/hack".

xerogen 17.03.2006 09:30

Quote: "
I posted this to help people who dont know about it already, so all u intelligent know it all leave it be :p. "

I know most people know how to do this, and i know people still dont close down 2009 on CacheD so i just posted it for other peoples help. Who arent that well off and dont know all about SQL and logging into CacheD from other accounts.

If you knew so well what to do, why reply? If it was at an atempt to make me look stupid i think you shown yourself up and proving you really dont read to the last line.

HF 17.03.2006 09:39

Quote:

Originally Posted by xerogen
Quote: "
I posted this to help people who dont know about it already, so all u intelligent know it all leave it be :p. "

I know most people know how to do this, and i know people still dont close down 2009 on CacheD so i just posted it for other peoples help. Who arent that well off and dont know all about SQL and logging into CacheD from other accounts.

If you knew so well what to do, why reply? If it was at an atempt to make me look stupid i think you shown yourself up and proving you really dont read to the last line.

No. All was clear. Not clearly another. Why many do not know banal things. And they should explain. Other question why the majority does not wish to use search. Here at a forum, it is possible to collect the quite good knowledge base on all questions.
Here that I had in view of. Anything more.
Excuse, if has offended your feelings.
:)

archy 17.03.2006 10:30

Correct description: "You dont need firewalls at all, just use this script so i can get free builder on your server and ruin it.... share"

Belazor 17.03.2006 19:53

Quote:

Originally Posted by archy
Correct description: "You dont need firewalls at all, just use this script so i can get free builder on your server and ruin it.... share"

[Norwegian]Hva faen er det du snakker om? Det er da ikke noe skript med i denne tråden o.o
Og siden jeg er GM på serveren hans (lovlig måte faktisk XD) vet jeg at ingen får noe ulovlig builder på servern.

Mulig du bare kødda men i så fall forsto jeg ikke spøken ;)[/Norwegian]

archy 17.03.2006 22:11

Quote:

Originally Posted by Belazor
Quote:

Originally Posted by archy
Correct description: "You dont need firewalls at all, just use this script so i can get free builder on your server and ruin it.... share"

[Norwegian]Hva faen er det du snakker om? Det er da ikke noe skript med i denne tråden o.o
Og siden jeg er GM på serveren hans (lovlig måte faktisk XD) vet jeg at ingen får noe ulovlig builder på servern.

Mulig du bare kødda men i så fall forsto jeg ikke spøken ;)[/Norwegian]

[danish] Nej, ikke noget script, blot en fremgangsmåde - hvilket er alt et script er.. en fremgangsmåde for kommandoer :)
Desuden, ikke at benytte firewall er MEGET dumt.. tro mig :P
[/danish]

Belazor 17.03.2006 22:26

[Norwegian]Rett i det, du har ;) Han er ikke den skarpeste kniven i skuffen, for å si det sånn ;)
Det faktum at til og med en MSSQL string som det der kan brukes til å skru av serveren beviser bare at MSSQL er hestemøkk tvers igjennom :P
Hva firewall angår, vi har bare Windows Firewall AFAIK.

Kult å se en annen europeer her på forumet, er som du skjønner ganske ny i L2 dev world men håper da å lære å kode AI i NASC siden det ligner på PHP, noe som er mer min greie =D
Du kunne ikke tenke deg å bli med i Megatronpt's dev team? Er du så god som tittelen din tilsier, trenger vi deg ;) Og dessuten er det allerede yttret ønsker om å ha deg der - så lenge du oppfører deg ;) hehe
[/Norwegian] So how bout it?

Shawnmb 18.03.2006 12:23

That issue was mostly in-game with SQL injection, frankly if your interactive ports are unprotected I'll state that so much more can be done than just shutting down SQL. Basic security rules apply here, if you secured your setup properly you won't have these issues.

AsterisKSM 02.01.2007 11:30

well... than tell us what to do.... make a guide or something... for C1-C4 Modded and C4 Retail... .

AsterisKSM 02.01.2007 11:31

someone can help us? with anti hacking etc...?

~Marquis~ 02.01.2007 17:16

Quote:

Originally Posted by Shawnmb (Post 36516)
That issue was mostly in-game with SQL injection, frankly if your interactive ports are unprotected I'll state that so much more can be done than just shutting down SQL. Basic security rules apply here, if you secured your setup properly you won't have these issues.

How would you secure your setup?
Haven't seen any thread about this btw, think it'd help ppl in protecting their own server from "hackers". I know most of the basis, but i can forget one of 'em, or i can ignore the new ways of protecting a server decently.
I really think a sticky about the different ways of protecting a server is needed.

[DeV/NuLL] 02.01.2007 17:35

Why the fuck is this post resurrected?

You can secure your server using basic Firewall rules, preventing unauthorized connections. If you dont know about this type of basic network management, then I think you are not ready to run a L2 Server, or some other shit.

testdude 02.01.2007 18:42

lol half the poeple that post here arent ready to run an l2 server.. they should go host l2j where everything is done for them...

firewall + sql permissions + common sense = secure

m4rk 02.01.2007 19:50

I tend to agree:
Server side:
-Use the lastest .dll protection available (for c4 retail ampeD by Cypher)
-Secure your website if you have any running on the machine where you run the server.
-Set correct SQL permissions (there's a post about that somewhere).
-Set your firewall correctly, only open auth and l2server port (2106 and 7777) and nothing more.

That's the basic for security. How to do it? The internet has most of the answers.

~Marquis~ 04.01.2007 21:11

Quote:

Originally Posted by m4rk (Post 75358)
I tend to agree:
Server side:
-Use the lastest .dll protection available (for c4 retail ampeD by Cypher)
-Secure your website if you have any running on the machine where you run the server.
-Set correct SQL permissions (there's a post about that somewhere).
-Set your firewall correctly, only open auth and l2server port (2106 and 7777) and nothing more.

That's the basic for security. How to do it? The internet has most of the answers.

Thanks, i already had it done but i wish it could help others.


All times are GMT. The time now is 15:26.