I have to say i made it with malicious idea (don't tell me that anyone could think of this app without thinking about malicious ideas) but it could be even usefull for remote help. I am working on RP Server and i am programming Floppy Disks to sell in electronics shop or black market on that Server.
So well, what could be verdict? Can i release it or is it considered as malicious?
And i would also like to ask if anyone could help me with List Clients… I just tried to do something like this
rednet.broadcast("rat:getList")
local id,message = rednet.receive()
if message == "online" then
if fs.exists("online") == false then
newFile = fs.open("online","w")
newFile.close()
end
file = fs.open("online", "a")
stringId = id
print(stringId)
file.write(stringId)
file.close()
local file = fs.open("online", "r")
if file then
local i = 0
while file.readLine() do
i = i + 1
end
file.close()
end
end
Explanation: It sends command rat:getList to computers (all connected) and if they reply back with online:{idofPC} then it writes them to file or just list them + count them. (That's what i tried to do)
This is client side (Receiving command)
elseif string.find(message, "rat:getList") then
rednet.send(id, "online")