mvrozanti / RAT-via-Telegram

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

Error: File "C:\Python27\lib\os.py", line 425, in __getitem__ return self.data[key.upper()] #39

Closed shaunakganorkar closed 6 years ago

shaunakganorkar commented 6 years ago

I keep getting the following error no matter what I try? Any help will be great.

Traceback (most recent call last): File "C:\Users\ \Downloads\RAT-via-Telegram-master\RATAttack.py", line 35, in token = os.environ['RAT_Token']

File "C:\Python27\lib\os.py", line 425, in getitem return self.data[key.upper()]
KeyError: 'RAT_Token'

mvrozanti commented 6 years ago

You need a Telegram Bot Key to host your bot. Message @ BotFather on telegram to register one. Once you have it, you can set it as an environment variable named 'RAT_Token' or just replace os.environ['RAT_Token'] by your key.

shaunakganorkar commented 6 years ago

Thanks a lot