Author Topic: Bans  (Read 8800 times)

0 Members and 1 Guest are viewing this topic.

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Bans
« 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.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Bans
« Reply #1 on: January 25, 2008, 08:22:58 AM »
What method did you use to ban them?
Experiencing God's grace one day at a time.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Bans
« Reply #2 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.
« Last Edit: January 25, 2008, 09:35:28 AM by zakap »

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Bans
« Reply #3 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...

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Bans
« Reply #4 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.

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Bans
« Reply #5 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).
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Bans
« Reply #6 on: January 25, 2008, 01:12:10 PM »
Yes, I split it. No point in having one thread talk about a billion different things. :)
Experiencing God's grace one day at a time.

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Bans
« Reply #7 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...?

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bans
« Reply #8 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.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Bans
« Reply #9 on: January 26, 2008, 08:38:27 AM »
believe it or not.. we aren't GMod tech support  ;D ;D ;D

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Bans
« Reply #10 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
« Last Edit: January 26, 2008, 09:48:13 AM by JamminR »

Offline spbogie

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 456
  • Karma: 41
Re: Bans
« Reply #11 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.
I have not failed. I've just found 10,000 ways that won't work. - Thomas A. Edison
I reject your reality and substitute my own. - Adam Savage

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Bans
« Reply #12 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?
« Last Edit: January 26, 2008, 10:23:28 AM by Render Case »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Bans
« Reply #13 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.
« Last Edit: January 26, 2008, 10:25:17 AM by JamminR »
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline Render Case

  • Newbie
  • *
  • Posts: 14
  • Karma: -1
Re: Bans
« Reply #14 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.