View Single Post
spumer
Senior Member
Join Date: Aug 2011
Old 05-10-2017 , 04:47   Re: [Linux] [PoC] DDoS Protection - Kernel redirection!
Reply With Quote #6

Setup SourceQueryCacheMono

Install mono
Ubuntu


Build SQC
PHP Code:
cd SourceQueryCacheMono
xbuild 
/p:Configuration=Release QueryCache.sln 
Now we have QueryCache.exe in QueryCache/bin/Release subfolder

Check SQC
PHP Code:
cd QueryCache/bin/Release

# start listening on 27915 and proxy requests to 216.52.148.47:27015
mono QueryCache.exe 27915 216.52.148.47 27015 
Now we can test SQC with some requester.

test_a2sinfo.py


Final steps
1. Setup SQC to your servers (setup should be done on same host)
2. Enable Kernel module

If you use different ports, you should manually change theirs in poc.c before compilation.

In attachment you can found compiled QueryCache.exe. All credits and source code can be found here: https://github.com/blastehh/SourceQueryCacheMono
Attached Files
File Type: gz QueryCache.exe.gz (3.5 KB, 799 views)
__________________

Last edited by spumer; 05-10-2017 at 04:48.
spumer is offline