mvrozanti / RAT-via-Telegram

Windows Remote Administration Tool via Telegram
MIT License
646 stars 347 forks source link

1 rat = 1bot ? #43

Open Ubop0202 opened 6 years ago

Ubop0202 commented 6 years ago

@mvrozanti hi! once again tnx for this wonderful rat.

for example: i have 2 victims: Do I need to compile for those victims 2 different rats? or I can use 1 rat, with same bot token?

ghost commented 6 years ago

yes you have compile rat for any new one!! and you have 1 bot for each rat and you cant creat more than 20 bot on any telegram acc . it is unuseable

On 5 Jun 2018 15:43, "Ubop0202" notifications@github.com wrote:

@mvrozanti https://github.com/mvrozanti hi! once again tnx for this wonderful rat.

for example: i have 2 victims: Do I need to compile for those victims 2 different rats? or I can use 1 rat, with same bot token?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mvrozanti/RAT-via-Telegram/issues/43, or mute the thread https://github.com/notifications/unsubscribe-auth/AgovwK-iWfs0qAocP_Yp1uBMvUI1EJV5ks5t5mftgaJpZM4UanuX .

shuhrat02 commented 6 years ago

use 1 bot for different "victims". and try comand: "/to , /msg_box Hello HOME-PC and WORK-PC"

mvrozanti commented 6 years ago

@shuhrat02 thanks for pointing that out, is this working correctly? I haven't tested it enough I think

falkaabi commented 6 years ago

So, I tested this on multiple machines using the same Bot. When you send a message to the bot like /ping you get a reply from all three machines! which is good! Also when you use the /to command, only the computer you specified replies with the answer you want. However, I noticed that there's an issue. Sometimes only 1 of the 3 bots sees the command, thus you only get one reply. In essence, if you send /capture_pc sometimes you get all 3 bot reply, sometimes just 2 of them, and usually you only get 1 reply. My guess is that once one of the bots reads the message from the Telegram API, it is deleted from Telegram server thus the other bots using the same token can't see it. In the case where you get all bots replying, it is a special case where all 3 bots fetch the message from Telegram at the same exact time.

I think this could be fixed by setting an offset in getUpdates method or putting a delay between each getUpdates request. This way we are sure that all bots received the same message. I tried to implement this but with no luck. Could we use the relax parameter in bot.message_loop()?

mvrozanti commented 6 years ago

Thank you for testing these out!

Have you tried increasing the relax keyword? It apparently defaults to 0.1 already. Maybe each bot should have different values?