Raised This Month: $32 Target: $400
 8% 

Proxy snort 1.8 (Updated Jan 24th, 2024)


Post New Thread Reply   
 
Thread Tools Display Modes
galebhasis
Junior Member
Join Date: Jul 2021
Old 07-17-2021 , 17:14   Re: Proxy snort 1.3 (Updated 12/25/2020)
Reply With Quote #41

Quote:
Originally Posted by DJEarthQuake View Post
Try CVAR proxy_debug 0. I've updated it. Thank you for heads up!
OMG u rock dude this plugin is saving our server!
galebhasis is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 07-17-2021 , 17:20   Re: Proxy snort 1.4 (Updated 07/17/2021)
Reply With Quote #42

Glad you found script useful. Proxy_debug 0 will make it near silent. Download 1.4. The new copy blocks VPN. 1.3 and lower only did proxy. Each time the socket closed it was sending that colorful text message, now only on proxy_debug 5. It will run much smoother now.
__________________

Last edited by DJEarthQuake; 07-18-2021 at 09:53. Reason: Proxy_debug 5 is reminiscent of metamod's CSBLd.
DJEarthQuake is offline
DeNeDe
AlliedModders Donor
Join Date: Oct 2007
Old 08-22-2021 , 15:00   Re: Proxy snort 1.5 (Updated 08/05/2021)
Reply With Quote #43

So i've used this today.. Everything installed properly. i've entered my server with my normal ip, looked at the logs and i saw how it checked the ip and said no proxies used..good
Then i entered the server again while my vpn was connected and ... it said no proxies detected
I've checked my vpn ip on the service site, in the dashboard and indeed it says Proxy.
DeNeDe is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-23-2021 , 05:15   Re: Proxy snort 1.5 (Updated 08/05/2021)
Reply With Quote #44

It has been corrected. Thank you. That is also why the SteamIDs were not showing on Dashboard any longer.
__________________
DJEarthQuake is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 08-23-2021 , 08:35   Re: Proxy snort 1.5 (Updated 08/23/2021)
Reply With Quote #45

I'm interested in reviewing this, but I'd like someone to confirm that it works before I start checking the code.
__________________
HamletEagle is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-23-2021 , 10:32   Re: Proxy snort 1.5 (Updated 08/23/2021)
Reply With Quote #46

Code:
ProxySnort 1.5 by SPiNX:Starting to open socket!
08/23/2021 - 16:48:47: Invalid CVAR pointer
08/23/2021 - 16:48:47: [AMXX] Displaying debug trace (plugin "test.amxx", version "1.5")
08/23/2021 - 16:48:47: [AMXX] Run time error 10: native error (native "get_pcvar_num")
08/23/2021 - 16:48:47: [AMXX] [0] test.sma::@write_web (line 229)
ProxySnort 1.5 by SPiNX:reading the socket
08/23/2021 - 16:48:47: Invalid CVAR pointer
08/23/2021 - 16:48:47: [AMXX] Displaying debug trace (plugin "test.amxx", version "1.5")
08/23/2021 - 16:48:47: [AMXX] Run time error 10: native error (native "get_pcvar_num")
08/23/2021 - 16:48:47: [AMXX] [0] test.sma::@read_web (line 414)
Fix:
PHP Code:
if(get_pcvar_num(g_clientemp_version))

->>

if(
g_clientemp_version && get_pcvar_num(g_clientemp_version)) 
Or you can check if cvar exists.

And it also doesn't show the risk:
Code:
ProxySnort task input time = 5.000000
Checking connected user if not a bot
Sniffing a public IP address...192.40.57.227, Adi
ProxySnort 1.5 by SPiNX:Starting to open socket!
ProxySnort 1.5 by SPiNX:Is socket writable?
ProxySnort 1.5 by SPiNX:Yes! Writing to the socket of Adi
ProxySnort 1.5 by SPiNX:reading the socket
ProxySnort 1.5 by SPiNX:reading the socket
Proxy sniff...192.40.57.227|STEAM_0:0:195136759
08/23/2021 - 17:01:25: [test.amxx] Adi, STEAM_0:0:195136759 uses a proxy!
No proxy found on Adi, STEAM_0:0:195136759
ProxySnort 1.5 SPiNX | Adi uses Performive LLC for an ISP.
ProxySnort 1.5 by SPiNX | Adi's risk is 0.
Dropped Adi from server
Reason: Kicked :"Anonymizing is NOT allowed!"
GET Request:
Code:
{
    "status": "ok",
    "192.40.57.227": {
        "asn": "AS46562",
        "provider": "Performive LLC",
        "continent": "Europe",
        "country": "Netherlands",
        "isocode": "NL",
        "region": "North Holland",
        "regioncode": "NH",
        "city": "Amsterdam",
        "latitude": 52.3716,
        "longitude": 4.8883,
        "proxy": "yes",
        "type": "Compromised Server",
        "risk": 100,
        "attack history": {
            "Total": 22,
            "Login Attempt": 22
        }
    }
}
Fix:

On line 363

PHP Code:
copy(riskcharsmax(risk), proxy_socket_buffer[containi(proxy_socket_buffer"risk") + 5])

->>

copy(riskcharsmax(risk), proxy_socket_buffer[containi(proxy_socket_buffer"risk") + 7]) 
In rest, it seems to work as intended.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
DeNeDe
AlliedModders Donor
Join Date: Oct 2007
Old 08-23-2021 , 10:40   Re: Proxy snort 1.5 (Updated 08/23/2021)
Reply With Quote #47

More issues would be that it might lag the server doing all those checks in the background? Won't be better to use the geoip module integration instead?
i've seen geoip has now databases for vpn/proxies detection too..also for ASN(s)

Last edited by DeNeDe; 08-23-2021 at 10:44.
DeNeDe is offline
Shadows Adi
AlliedModders Donor
Join Date: Aug 2019
Location: Romania
Old 08-23-2021 , 11:40   Re: Proxy snort 1.5 (Updated 08/23/2021)
Reply With Quote #48

Quote:
Originally Posted by DeNeDe View Post
More issues would be that it might lag the server doing all those checks in the background? Won't be better to use the geoip module integration instead?
i've seen geoip has now databases for vpn/proxies detection too..also for ASN(s)
GeoIP Module doesn't support this.
__________________


Accepting Paid Requests, contact PM.

MVP Of The Round View project on GITHUB / AlliedModders
CSGO REMAKE ~ CSGO MOD [STABLE + SOURCE CODE]
Shadows Adi is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 08-23-2021 , 22:33   Re: Proxy snort 1.5 (Updated 08/23/2021)
Reply With Quote #49

Thanks @Shadows Adi. Native find_plugin_byfile was needed later down the line when companion plugin, clientemp, is tested and disabled.


Run-time error happens occasionally. I had to use copyc and end it on the end of buffer bracket.
__________________

Last edited by DJEarthQuake; 12-22-2021 at 20:54. Reason: Another adjustment post test since run-time repopulated 1 out of 20 risk copies of proxy/vpn users.
DJEarthQuake is offline
krisztian2
Junior Member
Join Date: Feb 2019
Old 11-24-2021 , 13:24   Re: Proxy snort 1.5 (Updated 09/25/2021)
Reply With Quote #50

Dear DJEarthQuake!

This plugin is not work for me.
But in amxx plugins list the plugin status is running.
I created an account on proxycheck and I set API key in this plugin cvar.
krisztian2 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode