Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: Render Case on January 25, 2008, 04:17:11 AM

Title: Bans
Post by: Render Case on January 25, 2008, 04:17:11 AM
so basically you used svn?
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
New, very scary problem.
I came on this morning to check for bans from overnight to post on my forum.
I had 20 or so bans, mostly permanent.

Data/ulib/bans is an empty text file.
Title: Re: Bans
Post by: Megiddo on January 25, 2008, 08:22:58 AM
What method did you use to ban them?
Title: Re: Bans
Post by: MrPresident on January 25, 2008, 09:30:55 AM
data/ulib/bans.txt is a file that ULX uses to store temporary bans so that they are not lost across sessions. Your permanent bans will be in garrysmod/cfg/banned_user.cfg and garrysmod/cfg/banned_ip.cfg

banned_user is for users banned by steam id.
banned_ip is for users banned by ip address.



There are plenty of threads talking about this, i started one of them some time back. But since it isn't a common question, I'll go into it here...

ULX is not in charge of loading bans.. however.. it does save bans.

NOW THIS PART IS VERY VERY VERY VERY IMPORTANT...
GMod does not append files... so when ULX saves a ban.. if you have not yet loaded your bans from a previous session the new ban will overwrite alllll of your previous bans, essentially making a new file.

The way to fix this.. open up your startup config.. server.cfg or whatever your server uses.. it would be in garrysmod/cfg...
add the following lines to this file.

exec "banned_user.cfg"
exec "banned_ip.cfg"

Now when you start/restart your server your current ban list will be loaded into memory and so that whenever ULX creates a new ban it will write all of the bans (including the old ones) to the file.
Title: Re: Bans
Post by: Render Case on January 25, 2008, 12:08:44 PM
Ok, I put the two lines in.

By the way, this wasn't supposed to be a topic, it was supposed to be a reply to Zakap's post in my !menu thread.

...I was certain I hit reply...
Title: Re: Bans
Post by: MrPresident on January 25, 2008, 12:51:39 PM
Megiddo may have split it to keep it from getting too offtopic, because he knew this would turn in to a discussion.. one that other people could benefeit from if they took the time to read the forums.
Title: Re: Bans
Post by: spbogie on January 25, 2008, 01:11:49 PM
Ok, I've just commited an update which should eliminate any possibility of this happening because of ULib/ULX. As of revision 138 all calls to "exec" have been replaced with ULib.execFile, so they will no longer be blocked without the module installed, and the banned_user.cfg file is executed before every call to writeid (just in case).
Title: Re: Bans
Post by: Megiddo on January 25, 2008, 01:12:10 PM
Yes, I split it. No point in having one thread talk about a billion different things. :)
Title: Re: Bans
Post by: Render Case on January 25, 2008, 08:58:36 PM
Yes, I split it. No point in having one thread talk about a billion different things. :)
Alright, thanks for clarification.

I'm fairly sure someone here knows how to get their server working with the new screwy update? I used hldsupdatetoole.exe -command update -game garrysmod -dir ., but it didn't do anything in terms of the STEAM error thing.

Please don't split it again, lol. I don't want to have to keep making threads, so I made one where I could dump problems in as they arose. Unless that's a problem with you...?
Title: Re: Bans
Post by: JamminR on January 26, 2008, 08:34:45 AM
tf2 updated, and possibly, if you use it, hl2mp2. You'll need to update those too.
I updated CSS while I was at it on our server. I don't remember if there were any updates or not for CSS.

Also, we do like to keep our forum nice and tidy. That is why we split the topic.  Your question regarding bans did (somewhat) have to do with ULX, even though technically it wasn't a ULX issue.
It's also why we often move things to off-topic. Many people post non-ULX and non-ULib related questions under this area.
Title: Re: Bans
Post by: MrPresident on January 26, 2008, 08:38:27 AM
believe it or not.. we aren't GMod tech support  ;D ;D ;D
Title: Re: Bans
Post by: Render Case on January 26, 2008, 09:21:32 AM
thanks for the reply to that, I'll try those two.

also, I apologize for blaming ULX for dropping the bans. I just looked in the logs. This is before I modded the lua to remove rp_rcon and whatnot.

Quote
[03:20:24]<censored more><censored for security>
[03:20:25](ADMIN) (Console) added user Zach Zomg to group "admin" with immunity
[03:20:25](ADMIN) (Console) added user Zach Zomg to group "admin" with immunity
[03:20:34](ADMIN) MachineGun Kelly unghosted MachineGun Kelly
[03:20:34](ADMIN) MachineGun Kelly granted god mode to MachineGun Kelly
[03:20:42](ADMIN) Zach Zomg granted god mode to Zach Zomg
[03:20:42]Zach Zomg: !god Zach
[03:20:50](ADMIN) Zach Zomg granted god mode to Zach Zomg
[03:21:22]Zach Zomg<STEAM_0:1:12153257> spawned model models/props_borealis/mooring_cleat01.mdl
[03:25:25]Zach Zomg<STEAM_0:1:12153257> spawned NPC npc_citizen
[03:31:44]Zach Zomg: /job
[03:31:57]Zach Zomg: /job hi
[03:32:01]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:32:32]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:32:58]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:33:05]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:33:15]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:33:24]MachineGun Kelly<STEAM_0:0:5411032> spawned ragdoll models/police.mdl
[03:34:00](TEAM) MachineGun Kelly: !menu
[03:34:18](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:7233314
[03:34:21](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:14790320
[03:34:24](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:11605597
[03:34:28](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:14107114
[03:34:31](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:15047031
[03:34:34](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:15291833
[03:34:37](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:15954140
[03:34:40](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:17423067
[03:34:44](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:8764180
[03:34:49](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:0:9146794
[03:34:52](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:10757362
[03:34:54](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:11779956
[03:34:56](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:13493446
[03:35:00](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:13517518
[03:35:02](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:14635366
[03:35:04](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:15018597
[03:35:07](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:16311791
[03:35:10](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:3524848
[03:35:12](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:4556804
[03:35:15](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:4941734
[03:35:17](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:5012935
[03:35:20](ADMIN) MachineGun Kelly unbanned steamid STEAM_0:1:5624950
[03:35:24](ADMIN) MachineGun Kelly brought Zach Zomg to him/her

A little bit more after that. The rest is history.

Edit (spbogie): censored exploit string for security
Edit (JamminR): censored even more for security - though some may already know, lets not even show the ones who don't where to start
Title: Re: Bans
Post by: spbogie on January 26, 2008, 10:00:03 AM
Well, at least now you have a list of all the ids you need to reban (and 2 new ones ;)). Jokeing aside, unfortounatly, the exploit does not rely solely on the rp_rcon command. This is a major security hole in DarkRP. Even worse, every RP community uses their own modified version of the script, so there is really no way to creat a fix that works for everyone.

I've modified your post to remove the exploit string. We don't want to be broadcasting how to do this. I'm PMing you a possible fix.
Title: Re: Bans
Post by: Render Case on January 26, 2008, 10:15:56 AM
I've already fixed it. <censor>.
...Why are you censoring how to fix it? It can help other people...

Anyway, from a few posts up, I installed / updated the content to those games and I still get the validation rejected thing, along with everyone else.

Is it some weird bug that requires the steam dedicated server as opposed to the hlds server?
Title: Re: Bans
Post by: JamminR on January 26, 2008, 10:22:29 AM
Bender,
We understand you know how to fix it, and I appreciate your post. We, including you, all need to be careful about mentioning the fix.
Though wanting to help is not a bad thing, helping en masse may empower those who don't know the exploit on where to start looking.
As you can see, I've modified your post to not mention what/where.

If you want to try to contact the DarkRP (and any other gamemode that uses the code) authors and let them know, that would be a better recommendation than just posting the fix out in the open. If you have people who you trust and know to host servers, and would use your shared knowledge to fix thier own servers, you could share with them too.
Title: Re: Bans
Post by: Render Case on January 26, 2008, 10:25:22 AM
Okay, view my edited post (other than the "Why did you edit it") please - The bans have been resolved, maybe to keep the forum clean can you try and pm me some suggestions for te server? I'd get it off facepunch but I got banned for memes until Monday.

Also, I was fine the first time, but please stop calling me Bender.
Title: Re: Bans
Post by: Megiddo on January 26, 2008, 11:03:59 AM
Okay, view my edited post (other than the "Why did you edit it") please - The bans have been resolved, maybe to keep the forum clean can you try and pm me some suggestions for te server? I'd get it off facepunch but I got banned for memes until Monday.

Also, I was fine the first time, but please stop calling me Bender.

Render Case, I'm sure JamminR isn't calling you "Bender" to insult you, it's probably a sheer accident. You sound as if you think we're picking on you, please realize we're just looking out for the community's best interests. Just take a deep breath and calm down.

We've already given you suggestions on how to get your fix out to others, see if you can't follow up on what we gave you.
Title: Re: Bans
Post by: Render Case on January 26, 2008, 11:11:31 AM
Render Case, I'm sure JamminR isn't calling you "Bender" to insult you, it's probably a sheer accident. You sound as if you think we're picking on you, please realize we're just looking out for the community's best interests. Just take a deep breath and calm down.

We've already given you suggestions on how to get your fix out to others, see if you can't follow up on what we gave you.
I wasn't saying he was insulting me at all. I was just asking for my name to be read. Wasn't really angry.

I'll look around for the fix, thanks.
Title: Re: Bans
Post by: JamminR on January 26, 2008, 12:00:37 PM
 I do apologize. With my theme settings and colors, the underline of the link of your name did look like a B. R

Not sure why you're having the steam join issue. We had this on UHQ and 2 related community servers last night.
I updated UHQ's Garrysmod,TF2,hl2mp2, and CSS folders. Restarted our hlds server. Restarted Steam locally. Some odd update occured when I started Garrysmod, even though no official 'news' showed what happened. I could join UHQ fine.

If all updates fail you might try starting your server with -nosecure
Title: Re: Bans
Post by: Avien on January 26, 2008, 02:01:25 PM
The update was for tf2, but it also updates the gmod engine.
Title: Re: Bans
Post by: Render Case on January 26, 2008, 02:19:23 PM
Alright, all of this is resolved. Topic is over.