determinate determinate

Author Topic: Block Proxy 1.0 LUA 5.1x [Strict][API 2]  (Read 1353 times)

0 Members and 1 Guest are viewing this topic.

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« on: August 14, 2010, 06:54:20 pm »
Code: [Select]
--[[

Block Proxy 1.0 LUA 5.1x [Strict][API 2]

By Mutor 08/14/10

An meager attempt to block proxy users.
This script generates a config file with the same
filename as script file but with .dat extension.
Should you edit the config, just restart the script.

   -Option for  action on detection [None/Disconnect/Kick/Redirect]
   -Option to exclude by proxy users by nick
   -Option for custom reason for action
   -Option to ban after 'x' detections

]]
« Last Edit: August 19, 2010, 04:41:01 am by Mutor »
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline For_Ever_MeXxX

  • Junior Member
  • **
  • Posts: 22
  • Karma: +0/-0
  • Gamato™
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #1 on: August 15, 2010, 01:11:00 am »
Code: [Select]
-- "Botname" ["" = hub bot]
["Bot"] = #Bitch,
-- Admin's nick for status / error messages ["" = OpChat]
["OpNick"] = ""
-- "Botname" ["" = hub bot],
["Ports"] = "#Bitch"
-- Check if users are using these known proxy ports
["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480},
-- Check I.P. regardless of profile settings
["DoIpCheck"] = "true",
}


That is the .dat File, but look there is:

   ["Bot"] = #Bitch,
   ["Ports"] = "#Bitch"

is that right?
For_Ever_MeXxX ;)

Offline Aptem

  • Junior Member
  • **
  • Posts: 16
  • Karma: +0/-0
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #2 on: August 15, 2010, 02:48:04 am »
Block Proxy 1.0 L5.1.lua:75: bad argument #1 to 'Kick' (table expected, got nil)

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #3 on: August 15, 2010, 05:01:11 am »
is that right?
No, of course not.
Block Proxy 1.0 L5.1.lua:75: bad argument #1 to 'Kick' (table expected, got nil)
Both items fixed, download revised script.
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline Tsd

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #4 on: August 17, 2010, 08:20:32 am »
[09:20] Block Proxy 1.0 L5.1.lua loaded.
[09:20] Syntax binary string: unexpected end in precompiled chunk   ???
PtokaX 0.4.1.1 Windows Server 2003
dchub://tsdhub.no-ip.info
dchub://tsdhub.feardc.net

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #5 on: August 18, 2010, 02:49:47 am »
Another bug found and fixed, added options. Script updated.

Code: [Select]
Cfg = {
-- "Botname" ["" = hub bot]
["Bot"] = "",
-- Admin's nick for status / error messages ["" = OpChat]
["OpNick"] = "Mutor",
-- Check if users are using these known proxy ports
["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480},
-- Penalty for Proxy connection [0 = None / 1 = Disconnect / 2= Kick {tempban) / 3 = Redirect]
["Penalty"] = 3,
-- Redirect address. Used if Penalty = 3 ["" = default main redirect address from hub]
["RedirAdd"] = "",
-- Message to send to user / reason for penalty ["" = default]
["Reason"] = "",
-- Check I.P. regardless of profile settings [true/false]
["DoIpCheck"] = true,
}
« Last Edit: August 18, 2010, 04:03:33 am by Mutor »
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #6 on: August 19, 2010, 12:58:24 am »
Added option to exclude by nick name. Ban on 'x' detections.
Script updated. Delete old configuration file and restart script to recreate.

Code: [Select]
Cfg = {
-- "Botname" ["" = hub bot]
["Bot"] = "",
-- Admin's nick for status / error messages ["" = OpChat]
["OpNick"] = "Mutor",
-- Check if users are using these known proxy ports
["Ports"] = {8080,80,81,1080,6588,8000,3128,553,554,4480},
-- Penalty for Proxy connection [0 = None / 1 = Disconnect / 2= Kick {tempban) / 3 = Redirect]
["Penalty"] = 2,
-- Redirect address. Used if Penalty = 3 ["" = default main redirect address from hub]
["RedirAdd"] = "",
-- Message to send to user / reason for penalty ["" = default]
["Reason"] = "",
-- Check I.P. regardless of profile settings [true/false]
["DoIpCheck"] = true,
-- Excluded nicks as literal strings
["Excluded"] = {"Mutor","OtherNick"},
-- Ban user on this many detections [if Penalty > 0]
["Penalty"] = 3,
}
« Last Edit: August 19, 2010, 01:39:12 am by Mutor »
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline sphinx_spb

  • Member
  • ***
  • Posts: 49
  • Karma: +8/-2
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #7 on: August 20, 2010, 04:25:46 pm »
Hey Mutor. I would like to say it's really meager attempt. Because you define the port from ConnectToMeArrival. But users are using proxies mainly for spamming, not downloading, so hub will never receive connect request from them. If they connect in passive mode, there is no such requests too. But anyway, thank you for your efforts.

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Re: Block Proxy 1.0 LUA 5.1x [Strict][API 2]
« Reply #8 on: August 21, 2010, 12:54:41 am »
Thank you for your input sphinx.
This is not intended to be a deflood tool.
Unless you decompiled it you don't know
what else I'm doing, or plan to do.
« Last Edit: August 21, 2010, 02:27:12 am by Mutor »
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

Offline Mutor

  • Global Moderator
  • Forum God
  • *****
  • Posts: 3 854
  • Karma: +395/-18
  • To err is human, to arr is pirate...
    • PxDev
Block Proxy 1.1 LUA 5.1x [Strict][API 2]
« Reply #9 on: August 21, 2010, 06:19:24 pm »
Code: [Select]
--[[

Block Proxy 1.1 LUA 5.1x [Strict][API 2]

By Mutor 08/16/10

An less meager attempt to block proxy users then previous version.
This script generates a config file with the same
filename as script file but with .dat extension.
Should you edit the config, just restart the script.

-Option for  action on detection [None/Disconnect/Kick/Redirect]
-Option to exclude by proxy users by nick
-Option for custom reason for action
-Option to ban after 'x' detections

+Changes from 1.0 18/17/10
    +Added two (2) online checks, thus the socket lib required

Dependencies:
PxLuaSocket 2.0.2, download here:
http://www.czdc.org/PtokaX/Libs-0.4.0.0RC6/PXLuaSocket-2.0.2.7z
Extract to PtokaX\scripts\libs

]]
Respectfully,

Mutor

=-=-=-=-=-=-=-==-=-=-=
[ Ptokax Admins Hub ] Ptokax Help Hub
[ Mutor's Ptokax Archive Website ] Scripting Forum
[ Dynamic Downloads ] API 2
[ Microsoft IIS serving PxWeb 1.0d ] API 2
[ WebReg 1.1.2.0 ] Web Based Hub Reg

 

determinate determinate