Fake bot
 

News:

29 December 2022 - PtokaX 0.5.3.0 (20th anniversary edition) released...
11 April 2017 - PtokaX 0.5.2.2 released...
8 April 2015 Anti child and anti pedo pr0n scripts are not allowed anymore on this board!
28 September 2015 - PtokaX 0.5.2.1 for Windows 10 IoT released...
3 September 2015 - PtokaX 0.5.2.1 released...
16 August 2015 - PtokaX 0.5.2.0 released...
1 August 2015 - Crowdfunding for ADC protocol support in PtokaX ended. Clearly nobody want ADC support...
30 June 2015 - PtokaX 0.5.1.0 released...
30 April 2015 Crowdfunding for ADC protocol support in PtokaX
26 April 2015 New support hub!
20 February 2015 - PtokaX 0.5.0.3 released...
13 April 2014 - PtokaX 0.5.0.2 released...
23 March 2014 - PtokaX testing version 0.5.0.1 build 454 is available.
04 March 2014 - PtokaX.org sites were temporary down because of DDOS attacks and issues with hosting service provider.

Main Menu

Fake bot

Started by Ajax, 29 May, 2005, 18:06:11

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Ajax

helpme please
errors.
fixed please

sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
   frmHub:RegBot(sBot)
end

function NewUserConnected(user)
   if (checkFake(user)) then
      user:SendPM(sBot, "You are using Fake Share.")
      SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
      user:Ban()
   end
end

function checkFake(user)
   local s, e, shared = strfind(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
end
:evil:

Dessamator

use nl's gui converter !
Ignorance is Bliss.

TiMeTrAVelleR

--Lua 5--

sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
frmHub:RegBot(sBot)
end

function NewUserConnected(user)
if (checkFake(user)) then
user:SendPM(sBot, "You are using Fake Share.")
SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
user:Ban()
end
end

function checkFake(user)
local s, e, shared = string.find(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
end

bastya_elvtars

QuoteOriginally posted by Dessamator
use nl's gui converter !

Better not encourage ppl on doing this. It's a great tool, but sometimes can lead to trouble...
Everything could have been anything else and it would have just as much meaning.

plop

#4
optimized and fixed.
the checkfake didn't work timetravler.
sBot = "Fake Share"

badShare = { "10000000000","5368709120","10737418240","13630010000","16106127360",
"21474836480","26843545600","27000000000","32212254720","7970010000",
"37580963840","37970010000","6599201000000","65992010000000","36772010000000",
"3677201000000","42949672960","48318382080","214266156265","53687091200",
"59055800320","1747201000000","16772010000000","147720100000000","10240000000000",
"64424509440","65719010000","69793218560","75161927680","80530636800","85899345920",
"91268055040","96636764160","102005473280","102400000000","107374182400","118648471552",
"128849018880","140301549174","161061273600","174720100000","183287729356","214748364800",
"268435456000","322122547200","375809638400","107524506255.36","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"87671019929.6","88884348190.72","90001039687.68","92449171046.4","95627446845.44","91053306675.2",
"96926674452.48","96851512524.8","97817880166.4","98784247808","99997576069.12","105226698752",
"110004849868.8","119367878574.08","120001386250.24","111110803947.52","123319248486.4","103841571799.04",
"124231929036.8","125455994716.16","97817880166.4","125831804354.56","199715979264","199995152138.24",
"181236882472.96","99943888977.92","221652524728.32","276263033896.96","112989852139.52","158537980313.6",
"65712999629","26993869455","140295106724" }

function Main()
	frmHub:RegBot(sBot)
	tBadShare = {}
	for index, val in ipairs(badShare) do
		tBadShare[val] = 1
	end
end

function NewUserConnected(user)
	if (checkFake(user)) then
		user:SendPM(sBot, "You are using a Fake Share.")
		SendToAll(sBot, "The user "..user.sName.." has been banned for Fake Share.")
		user:Ban()
	end
end

function checkFake(user)
	local s, e, shared = string.find(user.sMyInfoString, "$ALL S+ .-$ $.+.$.-$(%d+)")
	if shared and tBadShare[shared] then
		return 1
	end
end

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

Dessamator

QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by Dessamator
use nl's gui converter !

Better not encourage ppl on doing this. It's a great tool, but sometimes can lead to trouble...
hmm, indeed, but for that simple script, it would have worked, and what do u suggest instead of that, plop's converter?
Ignorance is Bliss.

bastya_elvtars

QuoteOriginally posted by Dessamator
and what do u suggest instead of that, plop's converter?

BMCW, that is Bimanual Conversion Way, i.e. HANDS. :D
Everything could have been anything else and it would have just as much meaning.

Dessamator

QuoteOriginally posted by bastya_elvtars
QuoteOriginally posted by Dessamator
and what do u suggest instead of that, plop's converter?

BMCW, that is Bimanual Conversion Way, i.e. HANDS. :D
looool, ok then just setup the how to with that info, and ill refer them to it ,  :D
Ignorance is Bliss.

SMF spam blocked by CleanTalk