Pages: [1] 2 3 ... 14
Print
Author Topic: HLShield 2.10 - SV_ParseVoiceData (hlds_vcrash) and hlds_fuck exploit proof  (Read 28650 times)
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« on: March 04, 2010, 08:36:19 PM »

WARNING: this is Linux version only. For Windows, check Shocker's AntiCSDoS.

This is experimental version, which can be used with cbooster/dproto and blocking SV_ParseVoiceData exploit.

Installing procedure (run this commands in hlds_run's directory):

Code:
wget http://hlshield.fastfrag.ro/hlshield2-install.sh
sh hlshield2-install.sh

If you already installed hlshield2, just run sh hlshield2-install.sh one more time, hlshield will be updated automatically.

Differences between 2.2 and 2.3 version:
  • logging addeed - in hlshield.log (ensure that hlds have rights to write in the directory where hlds_run is located)
  • drop from server the user used by SV_ParseVoiceData exploit

Differences between 2.3 and 2.4 version:
  • stop hlds_fuck attacks

Differences between 2.4 and 2.5 version:
  • avoid false detected hlds_fuck attacks

Differences between 2.5 and 2.6 version:
  • new feature added: firewalling attaker ip (using iptables)

Differences between 2.6 and 2.7 version:
  • two more logging modes: verbose and debug

Differences between 2.7 and 2.9 version:
  • hlds_fuck is detected now in very early stage (this meaning that this will not be compatibile with dproto, but because dproto fix already hlds_fuck, is not very important)
  • better detection of hlds_fuck

Differences between 2.9 and 2.10 version:
  • hlds_fuck checking only for protocol 48, I hope 47 engines will not crash Smiley

If you using AMD processor, put in hlds_run a line like this:

Code:
export HLSHIELD_ARCH=amd

If you want to disable logging feature, put following line in hlds_run:

Code:
export HLSHIELD_LOG=no

For increasing verbosity you can put export HLSHIELD_LOG=2 (this will dump key in logs for rejected attacks) or even export HLSHIELD_LOG=3 (this will dump EVERY client authentication, useful for catch new kind of attacks).


Another variable enviroments:

Code:
 Variable             Default value         Explanation
  HLSHIELD_REPLY       Get lost, looser!     Send a funny message to csdos attacker
  HLSHIELD_PARANOID    0                     Checking very strict userinfo string. Is not recommended, can reject real players
  HLSHIELD_FIREWALL    0                     If put 1 or 2, hlshield will send firewall command to hlfirewall daemon.



HLSHIELD_FIREWALL details:

If HLSHIELD_FIREWALL is set, hlshield will send the ip attacker to hlfirewall, then hlfirewall will run iptables command.
  • LEVEL 1 - iptables -A INPUT -p udp -s xxx.xxx.xxx.xxx -j DROP
  • LEVEL 2 - iptables -A INPUT -s xxx.xxx.xxx.xxx -j DROP

Be very careful, LEVEL 2 will block ANY access of attacker to the server, so if you will try to attack your server, you will loose remotely control of your own server.

NOTE: to start HLFirewall, just run hlfirewall.pl (as root), installed by hlshield2-install.sh. It is important to run it as root, otherwise HLFirewall will not be able to run iptables command (because iptables need administrator privilege). Of course, hlfirewall.pl can be modified to use sudo for this.

NOTE: even you run multiple cstrike servers on your machine, you need run ONLY ONE instance of HLFirewall.


Known bugs:
- there is no support for 64 bit hlds (actually i'm not sure if is needed 64 bit version)

Removed features:
- rejecting players with ` and ~ in name, this can be done easily with an amxmodx plugin.
- ban players who reconnecting too fast

If somebody found any bug in this version of HLShield, let me know.


* hlshield.png (65.94 KB, 600x339 - viewed 1781 times.)
« Last Edit: August 07, 2011, 08:29:37 PM by Pacificatoru' » Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
liverpool
Newbie
*
Posts: 3


View Profile
« Reply #1 on: March 05, 2010, 03:35:16 AM »

Pacificatoru'
Please add HLShield, protection against new exploits hlds_fuck.
Logged
liverpool
Newbie
*
Posts: 3


View Profile
« Reply #2 on: March 06, 2010, 05:00:58 AM »

Pacificatoru'
Thank you for HLShield 2.4 and for protection against the exploit "hlds_fuck"
Logged
Dreap
Guest
« Reply #3 on: March 06, 2010, 10:10:47 PM »

Code:
# sh hlshield2-install.sh

--------------------------------------------------
Check HLShield forum for more informations
http://hobby.sarichioi.com/
--------------------------------------------------
Checking version...
  >> available: 2.4
  >> installed: none
Fetching latest HLShield... done
Unpacking... /bin/sed: -e expression #1, char 3: unterminated `s' command
done
Cleaning up... done

Doesn't load HL Shield. Im using dproto 0.4.1
Server starts by using hlds_i686
I have metamod and amxmodx installed aswell.

Can I install it manually step by step or something to see error?
Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #4 on: March 06, 2010, 10:22:49 PM »

You right, i uploaded wrong version of hlshield2-install.sh, by mistake. Remove it, and try again:
Code:
rm hlshield2*
wget http://hobby.sarichioi.com/cstrike/hlshield2-install.sh
sh hlshield2-install.sh

Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Dreap
Guest
« Reply #5 on: March 06, 2010, 10:38:22 PM »

Reinstalled server, tried to install & load HL Shield again. Still same result.
Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #6 on: March 06, 2010, 10:47:44 PM »

Are you sure you deleted hlshield2-install.sh before reinstall it?
Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Dreap
Guest
« Reply #7 on: March 06, 2010, 11:23:54 PM »

Are you sure you deleted hlshield2-install.sh before reinstall it?

I reinstalled entire server. So yes, I did.
Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #8 on: March 06, 2010, 11:28:01 PM »

Strange. It is exactly the same error (/bin/sed: -e expression #1, char 3: unterminated `s' command) ?
Attach there hlshield2-install.sh command.
Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Dreap
Guest
« Reply #9 on: March 06, 2010, 11:46:57 PM »

Code:
# sh hlshield2-install.sh

--------------------------------------------------
Check HLShield forum for more informations
http://hobby.sarichioi.com/
--------------------------------------------------
Checking version...
  >> available: 2.4
  >> installed: none
Fetching latest HLShield... done
Unpacking... done
Cleaning up... done

It just doesn't load HL Shield when I start the server.
Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #10 on: March 07, 2010, 12:06:54 AM »

I can't guess what is problem, I need to see logs and attach here hlds_run file.
Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Dreap
Guest
« Reply #11 on: March 07, 2010, 12:18:34 AM »

Added logfile, replaced server IP inside with xx.xx.xx.xx
Added hlds_run.

* cstrike.log (2.31 KB - downloaded 297 times.)
* hlds_run (9.71 KB - downloaded 305 times.)
Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #12 on: March 07, 2010, 12:24:58 AM »

As I see, you do not using hlds_run for starting the server, i'm right? It is important to use hlds_run, or at least to set this enviroment variable, before run hlds_i686:
Code:
export LD_PRELOAD=./hlshield.so


Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Dreap
Guest
« Reply #13 on: March 07, 2010, 12:34:36 AM »

okay, I managed to run it with hlds_run.

Im getting following error.

Code:
Auto detecting CPU
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
Using Pentium II Optimised binary.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object './hlshield.so' from LD_PRELOAD cannot be preloaded: ignored.

* cstrike.log (3.28 KB - downloaded 179 times.)
« Last Edit: March 07, 2010, 12:52:29 AM by Dreap » Logged
Pacificatoru'
Administrator
Hero Member
*****
Posts: 1156


FastFrag.ro


View Profile WWW
« Reply #14 on: March 07, 2010, 01:08:59 AM »

These warnings are normal, if you check carefully in log you will se that HLshield was started.
Logged

Ce e mare, face zgomot, scoate fum şi taie morcovii în trei?
Răspuns: este vorba de dispozitivul miniaturizat românesc, silenţios şi nepoluant, de taiat morcovii în patru.
Pages: [1] 2 3 ... 14
Print
Jump to: