Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 16.03.2006, 23:59   #1
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default [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 .

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 .

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.
xerogen is offline  
Old 17.03.2006, 00:30   #2
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

Firewall for the win?
Kenster is offline  
Old 17.03.2006, 01:46   #3
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

Quote:
Originally Posted by Kenster
Firewall for the win?
i agree... 2108+2009=bad
testdude is offline  
Old 17.03.2006, 05:17   #4
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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".
HF is offline  
Old 17.03.2006, 09:30   #5
xerogen
Архивный участник
 
Join Date: Nov 2005
Posts: 107
Default

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

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.
xerogen is offline  
Old 17.03.2006, 09:39   #6
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

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 . "

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.
HF is offline  
Old 17.03.2006, 10:30   #7
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

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"
archy is offline  
Old 17.03.2006, 19:53   #8
Belazor
Архивный участник
 
Join Date: Mar 2006
Posts: 26
Default

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]
Belazor is offline  
Old 17.03.2006, 22:11   #9
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

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]
archy is offline  
Old 17.03.2006, 22:26   #10
Belazor
Архивный участник
 
Join Date: Mar 2006
Posts: 26
Default

[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?
Belazor is offline  
Old 18.03.2006, 12:23   #11
Shawnmb
Архивный участник
 
Join Date: Feb 2005
Posts: 307
Default

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.
Shawnmb is offline  
Old 02.01.2007, 11:30   #12
AsterisKSM
Архивный участник
 
Join Date: Jun 2006
Posts: 163
Default

well... than tell us what to do.... make a guide or something... for C1-C4 Modded and C4 Retail... .
AsterisKSM is offline  
Old 02.01.2007, 11:31   #13
AsterisKSM
Архивный участник
 
Join Date: Jun 2006
Posts: 163
Default

someone can help us? with anti hacking etc...?
AsterisKSM is offline  
Old 02.01.2007, 17:16   #14
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

Quote:
Originally Posted by Shawnmb View Post
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.
~Marquis~ is offline  
Old 02.01.2007, 17:35   #15
[DeV/NuLL]
Архивный участник
 
Join Date: Aug 2005
Posts: 23
Default

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.
[DeV/NuLL] is offline  
Old 02.01.2007, 18:42   #16
testdude
Архивный участник
 
Join Date: Nov 2005
Posts: 504
Default

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
testdude is offline  
Old 02.01.2007, 19:50   #17
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

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.
m4rk is offline  
Old 04.01.2007, 21:11   #18
~Marquis~
Архивный участник
 
Join Date: Dec 2006
Posts: 252
Default

Quote:
Originally Posted by m4rk View Post
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.
~Marquis~ is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 18:17.