mvrozanti / RAT-via-Telegram

Windows Remote Administration Tool via Telegram
MIT License
647 stars 344 forks source link

KeyError #4

Closed CampBlanc closed 7 years ago

CampBlanc commented 7 years ago

keyerror

Perhaps I did something wrong setting it all up with Python and stuff but this is the error I got..

mvrozanti commented 7 years ago

os.environ is a dictionary. I set that up so we don't have to actually paste our token into the program. I accidentally pushed it into the repo once and had to deauthorize and so on...

What you want is this, if you want the token in your code: token = '380089595:AAHuaAQaGt...'

If you don't want the token in your code, like I don't, just run SETX RAT_TOKEN <your_token> on command-prompt. You must repeat this process to your chat id as well.

Tell me how that works out for ya

Edited for peace of mind.

CampBlanc commented 7 years ago

Thanks bro, that helped resolving the KeyError on the token. However a new KeyError popped up:

image

Sorry for the late reply, I was out in the bush bush for a full day, and to bother again, but I really would like to see this thing at work lol

mvrozanti commented 7 years ago

Same thing. Are you familiar with Python? I suggest you reading up on dictionaries and how they work. Anyway:

SETX TELEGRAM_CHAT_ID <your_chat_id>

CampBlanc commented 7 years ago

Yeah that worked however what I did is enter chat ID in the line known_ids = and the next line I removed. Not sure if I was supposed to but there you go.

No I'm not familiar with python honestly. I came across the script though some website, can't even remember.

Anyway after running the python RATAttack.py command the bot in Telegram suddenly said PCJWDSKTP: I'm up.

Then I ran the command to compile that .bat file, a whole bunch of stuff happened and it produced a RATattack.exe file in the dist folder.

Think I'm getting close to running this gem now.

If you have time and want to help me out a bit more on what to do next, please hit me up on Telegram @AssasNin would really appreciate it.

Best regards,

Patrick.