Author Topic: socks5  (Read 9311 times)

0 Members and 1 Guest are viewing this topic.

Offline Creative

  • Fulll Member
  • ****
  • Posts: 73
  • Karma: +8/-3
socks5
« on: 15 January, 2007, 12:36:03 »
This is the script for socks5....... it works fine....... wen users use socks5, it shows all socks5 users........ but it doesnt gets refresh........ i mean the data remains same....... after restarting this script, it resets n thn again it shows new socks5 users...... so plz some1 edit this so tht it will refresh automatically....
Code: [Select]
tTable = {}
function MyINFOArrival(user,data)
    if user.sMode == "5" or user.sMode == "S" then
tTable[user.sName] = user.sIP
    end
end

function doList(user)
sList = ""
for sName in pairs(tTable) do
sList = sList.."\r\n\t"..sName.." (IP: "..tTable[sName]..")"

end
SendToAll("\r\n\t"..string.rep(" = ", 17).."NYPD"..string.rep(" = ", 17).."\r\n\t"..sList)
end


function ChatArrival( user , data )
if (user.iShareSize/1024/1024/1024) > 5 then
if string.sub(data, 1,1) == "<" then
data=string.sub(data,1,string.len(data)-1)
s,e,cmd = string.find(data,"%b<>%s+(%S+)")
if (cmd == "+socks5") then
SendToAll("<"..user.sName.."> +socks5")
doList(user)
return 1
end
end
else
SendToAll("<"..user.sName.."> +socks5")
SendToAll("ur share should be greater than 5 gb to use this command")
return 1
end
end

PtokaX forum

socks5
« on: 15 January, 2007, 12:36:03 »

Offline Yahoo

  • Triple Ace
  • **
  • Posts: 225
  • Karma: +32/-14
  • People Say "I Dont Know English"
    • Yahoo
Re: socks5
« Reply #1 on: 09 March, 2007, 11:17:54 »
hi guys, i think no scripter want to work on this script. it was posted long back but no one has replied to it yet.... can someone work on it plzz.
"BoRN FIGhTEr"

Offline Yahoo

  • Triple Ace
  • **
  • Posts: 225
  • Karma: +32/-14
  • People Say "I Dont Know English"
    • Yahoo
Re: socks5
« Reply #2 on: 09 March, 2007, 12:49:58 »
the script is not working
"BoRN FIGhTEr"

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: socks5
« Reply #3 on: 10 March, 2007, 00:25:11 »
Code: Lua
  1. local tbl,tbl2={["S"],["5"]},{}; for _,user in ipairs(frmHub:GetOnlineUsers()) do if tbl[user.sMode] then table.insert(tbl2, user.sNick) end; curUser:SendData(Bot,("-"):rep(33)..table.concat(tbl2,"\r\n")..("-"):rep(33))

or wtf
Everything could have been anything else and it would have just as much meaning.

Offline Yahoo

  • Triple Ace
  • **
  • Posts: 225
  • Karma: +32/-14
  • People Say "I Dont Know English"
    • Yahoo
Re: socks5
« Reply #4 on: 10 March, 2007, 05:53:18 »
the script is working great. but the person who is hosting the socks5 does go from the socks5 list even if he stop the hosting of the socks5 server (until he reconnect)
"BoRN FIGhTEr"

Offline speedX

  • Lord
  • ***
  • Posts: 437
  • Karma: +59/-19
Re: socks5
« Reply #5 on: 13 March, 2007, 15:57:38 »
Hey American Idiot,
I would like if the command is seen by all and not the output, is it possible? plzz
I tried this thing but thn the command comes after the output, I would like tht the command comes b4 the output only...please
Thanking You,

speedX

Offline speedX

  • Lord
  • ***
  • Posts: 437
  • Karma: +59/-19
Re: socks5
« Reply #6 on: 14 March, 2007, 12:01:55 »
I tried this thing but thn the command comes after the output, I would like tht the command comes b4 the output only...please
Thanking You,

speedX

Offline speedX

  • Lord
  • ***
  • Posts: 437
  • Karma: +59/-19
Re: socks5
« Reply #7 on: 15 March, 2007, 05:58:24 »
no use :(
The output still comes b4 the command.
Thanking You,

speedX

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: socks5
« Reply #8 on: 15 March, 2007, 23:49:47 »
Put a loop before the SendToNick() line. local c=os.clock(); repeat c=os.clock()-c until c==1 or something like that.
Everything could have been anything else and it would have just as much meaning.

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: socks5
« Reply #9 on: 16 March, 2007, 00:13:54 »
coroutine yielding/resuming OnTimer() would be the best, although this looks like a PX flaw to me.
Everything could have been anything else and it would have just as much meaning.

Offline achiever

  • Lord
  • ***
  • Posts: 260
  • Karma: +25/-22
Re: socks5
« Reply #10 on: 20 March, 2007, 17:54:24 »
hi

is it possile to make the changes in script such that, if there r no users using socks then, it should report that no socks user connected and not show the blank reply as in the present script?

thks for th gr8 script

achiever
thks,
achiever.

Offline achiever

  • Lord
  • ***
  • Posts: 260
  • Karma: +25/-22
Re: socks5
« Reply #11 on: 21 March, 2007, 17:42:05 »
thank you American Idiot
thks,
achiever.

Toast

  • Guest
Re: socks5
« Reply #12 on: 26 December, 2007, 10:53:22 »
Smarter idea for Socks 5 is if someone is up to the challage to make a lua script that checks open proxy sites for ip adresses then blocks em this can be done it has been done in clientside scripting but i think it could be better in serverside then clientside

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: socks5
« Reply #13 on: 26 December, 2007, 13:12:23 »
Can you provide us the clientside script?
Everything could have been anything else and it would have just as much meaning.

Toast

  • Guest
Re: socks5
« Reply #14 on: 26 December, 2007, 21:13:40 »
Ask FlipFlop for it i dont wanna give it away without his permision

Offline bastya_elvtars

  • Forum God
  • ****
  • Posts: 3 730
  • Karma: +173/-7
  • The rock n' roll doctor
    • The FreshStuff3 Site
Re: socks5
« Reply #15 on: 27 December, 2007, 19:42:14 »
Sorry, did not mean to intrude into the 'secret script world'.
Everything could have been anything else and it would have just as much meaning.

Toast

  • Guest
Re: socks5
« Reply #16 on: 27 December, 2007, 20:06:54 »
shit that sounded corny hhahaha secret scriping world devicing plans of doom for the world of DC :P

Offline ArtificialInsanety

  • Junior Member
  • **
  • Posts: 23
  • Karma: +7/-1
Re: socks5
« Reply #17 on: 10 February, 2008, 12:18:05 »
Can this script be modified so it blocks socks5 ?.. or kicks them automatically?


PtokaX forum

Re: socks5
« Reply #17 on: 10 February, 2008, 12:18:05 »