mvrozanti / RAT-via-Telegram

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

How to run it in Linux? #40

Open shuhrat02 opened 6 years ago

shuhrat02 commented 6 years ago

Hi guys! tnx for this awesome RAT! have an issue, how to run it in Linux? Does this RAT support a linux platform? or only windows?

Logs:

pip install pyHook-1.5.1-cp27-cp27m-win_amd64.whl pyHook-1.5.1-cp27-cp27m-win_amd64.whl is not a supported wheel on this platform.

pip install pyHook Collecting pyHook Could not find a version that satisfies the requirement pyHook (from versions: ) No matching distribution found for pyHook

python RATAttack.py Traceback (most recent call last): File "RATAttack.py", line 4, in from PIL import ImageGrab # /capture_pc File "/usr/lib/python2.7/dist-packages/PIL/ImageGrab.py", line 22, in raise ImportError("ImageGrab is macOS and Windows only") ImportError: ImageGrab is macOS and Windows only

shuhrat02 commented 6 years ago

There is a Linux implementation of pyHook called pyxhook. does not work :(

mvrozanti commented 6 years ago

This unfortunately runs only on Windows now. But I'd be glad if this were to be cross-platform since Python can be. Very nice idea. I'll accept pull requests on this

Good resources: https://stackoverflow.com/questions/1325581/how-do-i-check-if-im-running-on-windows-in-python#1325587

https://stackoverflow.com/questions/31259856/how-to-create-an-executable-file-for-linux-machine-using-pyinstaller#32157287

https://stackoverflow.com/questions/3496592/conditional-import-of-modules-in-python

EDIT: I actually recently moved to Linux, this would ressurect this repo for me

mvrozanti commented 6 years ago

@shuhrat02 This might be relevant

dudeisbrendan03 commented 5 years ago

I'll make another branch that uses modules that support posix then make a pull request