python-rat icon indicating copy to clipboard operation
python-rat copied to clipboard

reverse shell + keylogger + wifis password stealing + screen sharing + camera sharing

My first virus in python

Disclaimer :

This application is for educational purposes. I cannot be held responsible for any abusive use of my code.

This virus can do :

  • reverse shell
  • keylogger
  • microphone recorder
  • wifis password stealer
  • screen sharing
  • camera sharing

Requirements :

  • python3
  • mss for screen streaming
  • pynput for keylogger
  • opencv-python (know as cv2) for camera streaming
  • numpy for camera streaming
  • pygame for camera receiving
  • pyaudio for microphone recording

How to install :

pip3 install requirements.txt

on windows you can just launch victim_requirements.bat and/or attacker_requirements.bat which download the requirements

watch out requirements are differents for attacker and victim

How to run :

on the victim computer : python3 victim.py

on the attacker computer: python3 attacker.py

Options :

Victim side:

usage: victim.py [-h] [--host HOST] [--port PORT] [--keylog KEYLOG] [--micro MICRO] [--wifi WIFI] [--shell SHELL]
                 [--camera CAMERA] [--screen SCREEN]

Tiz Virus Victim

optional arguments:
  -h, --help       show this help message and exit
  --host HOST      listening ip, default is '0.0.0.0', no need to change
  --port PORT      default port is 5000, revershell = port, camera stream = port+1, screen stream = port+2
  --keylog KEYLOG  keylog=t create a keylogger file / keylog=f don't create the file
  --micro MICRO    micro=10 record the microphone during 10 sec and put it in a file / micro=0 don't record
  --wifi WIFI      wifi=t create a file with all wifis password / wifi=f don't create the file
  --shell SHELL    shell=t revershell on port (default = 5000) / shell=f don't revershell
  --camera CAMERA  camera=t stream camera on port+1 (default = 5001) / camera=f don't stream
  --screen SCREEN  screen=t stream screen on port+2 (default = 5002) / screen=f don't stream

Attacker side:

usage: attacker.py [-h] [--host HOST] [--port PORT] [--shell SHELL] [--camera CAMERA] [--screen SCREEN]

Tiz Virus Attacker

optional arguments:
-h, --help       show this help message and exit
--host HOST      connecting ip, default is localhost'
--port PORT      default port is 5000, revershell = port, camera stream = port+1, screen stream = port+2
--shell SHELL    shell=t revershell on port (default = 5000) / shell=f don't revershell
--camera CAMERA  camera=t stream camera on port+1 (default = 5001) / camera=f don't stream
--screen SCREEN  screen=t stream screen on port+2 (default = 5002) / screen=f don't stream

Futur improvements :

  • fix revershell trouble
  • add replicant fonction

TIZ

I am nobody. Use this code, improve it, modify it. You don't need to quote anyone.