Just wondering if it were possible to do a script that would force a command on a user (Operator & Above access only).
What I had in mind is that if you type /r in ApexDC++ it will give you the amount the user has uploaded and downloaded with that client and their ratio. Essentially it is that info that I would like to be able to extract. Preferably the result not to be posted in main chat but not a problem if that is all that can be done. (I note that /r posts in main chat)
I am aware that people can reset or hack those stats on their own computer.
AFAIK the hub has no way in telling how much the user has uploaded. Hence "Direct Connect" - Clients meet via hub but downloading is settled by the clients only, and the hub has nothing to do with that part
I was aware that the protocol does not keep track of this. However all of the users on my hub have a DC Client that keeps its own stats on upload and download and they can be displayed in main chat with a shortcut of "/r". If either a script could grab info from a file on the user's hdd or could force the "/r" command on the user then those stats could be accessed. I have no idea wither either of these things are possible.
I suspect it can't be done because if it could then I suspect there would be some security issues with being able to either grab info from a file on the user's hdd or by forcing a command.
Good, you answered it yourself :)
I don,t know much about ptokax. But i have observed few things and would like to share with everyone.
as even i wish if somehow such script can be developed.
When i tried to dowload a file from user in my hub i found a log in my ptokax
Quote[19:02] ?StIfFLEr?? (172.16.11.62) > $ConnectToMe Back4mHell 172.16.11.62:26278S|
[19:02] ?StIfFLEr?? (172.16.11.62) > $Search 172.16.11.62:27216 F?T?0?9?TTH:B2K5I7BC3RYCKWX2WJSZ4TCTNWKSRSW6LPS6UVQ|
Is this TTH has any relation to the file i downloaded (I don't Know).Does it carry any information regarding the file size (I don't know)
If yes then can it be used for the development of this script.Since client info can't be pulled out.
Like if it carried the info for the file size it can be logged under a users quota as Downloaded MB and the other user's quota as uploaded MB.
The continues logs can be added.
I don't know how far am gona be right.
-ve karma's are warmly welcomed as in i am now a days running on high demands for it.So you can add more of it now it wont make any difference.I just shared my observation i know many posses excellent knowledge. Hope they would throw some light on the topic.
Only first line from log is related to that download request and hub from that don't know if your client will download or upload... or if p2p connection between clients really happen. TTH don't contains file size information, many different data with same or different size can have same TTH (hash collisions (http://en.wikipedia.org/wiki/Hash_collisions)).
Thanks PPK.
wish somehow have that development into ptokax if possible.
NO IT IS NOT POSSIBLE!