Skip to content
This repository has been archived by the owner on Aug 4, 2020. It is now read-only.

How to secure telegram bot credentials inside payload? #26

Open
X3eRo0 opened this issue Jan 9, 2018 · 2 comments
Open

How to secure telegram bot credentials inside payload? #26

X3eRo0 opened this issue Jan 9, 2018 · 2 comments

Comments

@X3eRo0
Copy link

X3eRo0 commented Jan 9, 2018

I searched online for some knowledge on reverse engineering of an pyinstaller compiled exe to reach to the source code. My question is that how hard is it to reverse engineer the exe and reach to the attacker who did all this after all once we know the source code behind the exe we know the chat_id and with that anyone can see who did this. Also does UPX compression play a role in encrypting the exe after being compiled by pyinstaller?

Thanks anyway

@mvrozanti
Copy link
Owner

mvrozanti commented Jan 25, 2018

Good question actually. Not hard at all I'd imagine since it's a string; with a decent enough regex it should be no trouble. AFAIK UPX does nothing but translate it to machine code so we don't need a python interpreter.

Now, if they got your chat_id and you're not supposed to be on the network and you have not used some kind of VPN to connect to the Telegram bot from it's start then you have to worry.

P.S.: Adding some kind of encryption process to the string could make it more difficult to reverse engineer but the information would still be there; with it's decryption instructions.

P.P.S.: Using groups might significantly help with hiding as well, if bots can join groups.

P.P.P.S.: Actually if someone can reverse engineer the executable they basically have the keys to the C&C server and all the subsequent hosts so it would be a major problem. This is an actual problem to be solved

@mvrozanti mvrozanti changed the title How tough is it to reverse engineer the RAT EXE and read the chat id and reach to the attacker? How to secure telegram bot credentials inside payload? Jan 25, 2018
@X3eRo0
Copy link
Author

X3eRo0 commented Jan 25, 2018

I don't use vpn and hooked my cousins pc who is a python developer and ethical hacker i did it when he was out he lives in different city

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants