PtokaX forum

Archive => Archived 4.0 boards => Request for Lua 4 scripts => Topic started by: Kulefanger on 16 November, 2003, 20:41:19

Title: Help with fake share bot
Post by: Kulefanger on 16 November, 2003, 20:41:19
I am new with the lua script and i was wondering if someone colud help with making a script to help me with
fake sharers.

I also need someone to look at a script for Vip chat so post here if you have anny idea of this I'm terible with these things!!  :(
Title:
Post by: dvxjunkie on 16 November, 2003, 21:29:16
first try this client with patched faker detection (http://www.fukt.bth.se/~k/dcpp/#latestbinary)



then get this one to see the fakers that one misses (http://www.blackdc.net/)

also you can run this little stand alone bot that blocks users with exactly 186 gig share size (common fake size in a commonly used fake dc client)

--Made by tezlo - 23.02.2003
--Edited and Optimized by piglja - 11.03.03
badShare = {"199715979264"}
function checkFake(CurUser)
local s, e, shared = strfind(CurUser.sMyInfoString, "$ALL %S+ .-$ $.+.$.-$(%d+)")
return foreachi(badShare, function(id, value) if value == %shared then return id end end)
end
function NewUserConnected(CurUser)
if checkFake(CurUser) then
CurUser:Disconnect()
end
end
Title:
Post by: RiPOFF on 18 November, 2003, 23:21:38
-- Made by someone I don't remember who...
-- Edited and Optimized by piglja - 11.03.03
-- Added Fake Share Value = 18554000000 & 11111111111 By RiPOFF

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","397760100000","429496729600","536870912000",
"657190100000","1024000000000","183287729357","102392020337","13625783747","174719269601",
"65712999629","26993869455","140295106724","18554000000","199715979264","80000000000","11111111111" }

function checkFake(user)
local s, e, shared = strfind(user.sMyInfoString, "$ALL %S+ .-$ $.+.$.-$(%d+)")
return foreachi(badShare, function(id, value) if value == %shared then return id end end)
end

function NewUserConnected(user)
   if checkFake(user) then user:SendData("<.:In?a???-?ecurity:.> You seem to be using a fakeshare client!")
   user:Disconnect()
    end
end

function OpConnected(user)
   if checkFake(user) then user:SendData("<.:In?a???-?ecurity:.> You seem to be using a fakeshare client! this could be a mistake, if so contact the Hub Owner.")
   user:Disconnect()
    end
end