Register for your free account! | Forgot your password?

You last visited: Today at 11:11

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Release] Admin SQL Check !

Discussion on [Release] Admin SQL Check ! within the Shaiya PServer Development forum part of the Shaiya Private Server category.

Reply
 
Old   #1
 
Shaiya Xtreme's Avatar
 
elite*gold: 261
Join Date: Sep 2009
Posts: 288
Received Thanks: 236
Talking [Release] Admin SQL Check !

Code:
USE PS_UserData;

SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS OFF 
GO
/****** Object:  Table [dbo].[usp_AdminCheck]   Script Date: 12/17/2010 by Killsteal 22:00:00 ******/
CREATE PROCEDURE [dbo].[usp_AdminCheck]@Check int AS
DECLARE 
@UUID 	int,
@UID 	varchar(18),
@Status smallint,
@Admin smallint,
@TodayTime datetime
SET @TodayTime =  getdate()
If   (@Check = 1)
begin
print CONVERT(VARCHAR, @TodayTime, 109) + ' - START CHECK ADMIN HACKERS'


declare cur_event cursor for
SELECT     UserID
FROM         Users_Master
WHERE     (Admin > 0) AND (NOT (UserID = 'GM-NAME')) AND (NOT (UserID = 'GM-NAME')) AND (Status = 16 OR
                            Status = 32 OR
                            Status = 48 OR
                            Status = 64 OR
                            Status = 80) AND (AdminLevel = 255)
declare @i int
open cur_event
Fetch next from cur_event into @UID
set @i = 0 
while(@@fetch_status = 0  )
BEGIN
--BLOCK ADMIN HACKERS UserID
print CONVERT(VARCHAR, @TodayTime, 109) + ' BLOCK HACKER - ' + @UID
UPDATE Users_Master SET Status = 2 WHERE UserID = @UID
fetch next from cur_event into @UID
Set @i = @i + 1
END
close cur_Event
deallocate cur_Event
print CONVERT(VARCHAR, @TodayTime, 109) + ' - END CHECK ADMIN HACKERS'
end
else
begin 
print 'skip Check Admin Hackers'
End
GO
SET QUOTED_IDENTIFIER OFF 
GO
SET ANSI_NULLS ON 
GO
Shaiya Xtreme is offline  
Thanks
9 Users
Old 12/17/2010, 22:18   #2
 
Shaiya Xtreme's Avatar
 
elite*gold: 261
Join Date: Sep 2009
Posts: 288
Received Thanks: 236
P.S to Check use;

exec usp_AdminCheck 1
Shaiya Xtreme is offline  
Thanks
1 User
Old 01/07/2011, 23:55   #3
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
# added to my list of guides
Bаne is offline  
Old 01/10/2011, 01:01   #4
 
shinru2004's Avatar
 
elite*gold: 260
Join Date: Oct 2009
Posts: 258
Received Thanks: 267
what exactly does this do? lol
shinru2004 is offline  
Old 01/10/2011, 01:03   #5
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
Quote:
print 'skip Check Admin Hackers'
it shows people who have hacked to become a admin.

-Bane
Bаne is offline  
Old 01/10/2011, 01:09   #6
 
shinru2004's Avatar
 
elite*gold: 260
Join Date: Oct 2009
Posts: 258
Received Thanks: 267
ahh nice, sounds like fun...
shinru2004 is offline  
Old 01/10/2011, 01:11   #7
 
Bаne's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 2,334
Received Thanks: 1,777
i suppose. but it is always good to check.
Bаne is offline  
Old 05/11/2011, 13:38   #8
 
[GM]Recover's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 279
Received Thanks: 164
every time i use it bans all my gms accounts
[GM]Recover is offline  
Old 05/11/2011, 17:27   #9
 
castor4878's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 717
Received Thanks: 3,366
Quote:
Originally Posted by Shaiyatoplist View Post
every time i use it bans all my gms accounts
not a surprise ... don't you read the notice / explanation ? what ?!? not a single line of explanation, can't believe it.

the script selects ID of all accounts marked as admin whose "name is not 'GM-NAME'" and (!) "name is not 'GM-NAME'".

so, since your name is likely not 'GM-NAME', your accounts are locked.

AFAI can understand that script, it checks the UserID against proc hard coded allowed values, you have to replace the 'GM-NAME' with your own GM-toon name.

or, in other words, it assumes that some hackers success to inject or alter data *but* they fail to inject a valid GM (or GS) name ...
castor4878 is offline  
Old 05/13/2011, 00:20   #10
 
[GM]Recover's Avatar
 
elite*gold: 0
Join Date: Jan 2011
Posts: 279
Received Thanks: 164
Quote:
Originally Posted by castor4878 View Post
not a surprise ... don't you read the notice / explanation ? what ?!? not a single line of explanation, can't believe it.

the script selects ID of all accounts marked as admin whose "name is not 'GM-NAME'" and (!) "name is not 'GM-NAME'".

so, since your name is likely not 'GM-NAME', your accounts are locked.

AFAI can understand that script, it checks the UserID against proc hard coded allowed values, you have to replace the 'GM-NAME' with your own GM-toon name.

or, in other words, it assumes that some hackers success to inject or alter data *but* they fail to inject a valid GM (or GS) name ...

oh ok then thanks very much
[GM]Recover is offline  
Reply


Similar Threads Similar Threads
[RELEASE] Acme Admin Tool
04/08/2015 - EO PServer Guides & Releases - 73 Replies
this is for all pservers that have gms thats pretty much limited to do just smaller stuffs.. with this tool they can: ban to botjail unban from botjail change names of users,pets,legions award pps ban users unban users
[RELEASE]Web Admin/User Panel v1.0
06/24/2011 - Dekaron Private Server - 10 Replies
Hello Guys,All credits going to Niky.I dont saw this tool posted in epvpers so i decided to help the community. the release function : GM/DEV/OPR Login ( detected by Character with // on the name ) Edit Accounts ( select by Account Name or Character Name ) Edit Character ( select by Character Name ) Give / Take Coins to Account ( select by Character Name ) Send Weapon to Character ( select by Character Name ) ( order by Lv till Lv / Class --> See all Weapons / Select the + )
[Release] CP Admin (My way)
06/13/2009 - CO2 PServer Guides & Releases - 8 Replies
This is the code to make CP Admin work to trade your DBs and DB Scrolls for CPs, report any bugs any errors and stuff here and i'll try to fix them. enjoy. So go to 'Handler', 'Npc Talk.cs' and add the following code: // Coded by : BlooDie case 2071: // CP ADMIN { if (LinkBack == 0) { Text("HELLO", CSocket);
[Release] /Admin Command
12/11/2008 - CO2 PServer Guides & Releases - 4 Replies
Sup guys. Small release coded in about 2 minutes, not tested ( as usual ). The reason im not testing is because im to lazy installing appserv, lawl. Well, here you are. This is what it does: If an player types /admin, it will list up all admins that are online , if there isnt any admin online, it says that. Search for /save or something like that where the playercommands are, and add this somewhere. if (Message == "/admin") { ...



All times are GMT +1. The time now is 11:13.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.