Giter Club home page Giter Club logo

osys-alpha's Introduction

oSys-Alpha

This program yearns to be my first attempt at making a windows RAT with python. It's not my any means perfect, However it mostly works without a problem.

Important Note:

This application was developed as an educational exercise. It doesn't and shouldn't be used for any malicious intent. The code does not come with UAC bypass, Nor Persistence, Nor does it try to bypass any anti-virus detection.

Features

  • Ability to Power-Off/Restart The client's machine.
  • Ability to upload and auto-run EXE files to the client's machine.
  • Ability to take a screenshot of the client's machine 1st monitor. (30-sec cooldown)
  • Ability to silently enable RDP on the client's machine and create a reverse tunnel to connect to the RDP.
  • Automatic communication compression between the client and server.
  • Interactive GUI to use all of the features and manage the clients.
  • Automatically shows new client connected to the server. And Automatically removes disconnected clients.
  • Logs actions to a log file.

Compilation method:

Obfuscate and pack using PyArmor.

  1. pip install PyInstaller
  2. pyarmor pack --clean -e "--onefile " client.py / pyarmor pack --clean -e "--onefile --noconsole " server.py

Usage Guidelines:

  • Forward port 8000 TCP (For the server hosting)
  • Forward port 22 TCP (For the SSH server)
  • Connection to HRDP is through mstsc.exe. The connection IP address is: 127.0.0.1:6969 | Username=hidden | Password=hidden
  • Default host IP can be changed using the startup arg "-i=0.0.0.0" or "--ip=0.0.0.0" ("0.0.0.0" being your desired ip address)
  • Default host port can be changed using the startup arg "-p=1337" or "--port=1337" ("1337" being your desired port number)
  • If you suspect you may have encountered an error please look at the log file for a possible explanation.
  • Make sure you run both server and client as Administrator (Server requires admin to make a new SSH user for the reverse connection, Client requires admin to modify termsrv.dll to enable RDP)

Screenshots of the software:

image image image image image

osys-alpha's People

Contributors

asaf-zanjiri avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

kalikex1 exet75

osys-alpha's Issues

No module named 'mss'

When i build the client.py on my server, and run the client.exe on the client machine
i get the following error

Traceback (most recent call last):
  File "<dist\obf\client.py>", line 3, in <module>
  File "<frozen client>", line 3, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
  File "<Modules\hrdp.py>", line 1, in <module>
  File "<frozen Modules.hrdp>", line 26, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
  File "<client.py>", line 3, in <module>
  File "<frozen client>", line 3, in <module>
  File "PyInstaller\loader\pyimod03_importers.py", line 476, in exec_module
  File "<Modules\screenshot.py>", line 1, in <module>
  File "<frozen Modules.screenshot>", line -1, in <module>
ModuleNotFoundError: No module named 'mss'
[11820] Failed to execute script 'client' due to unhandled exception!

Features to add

Bugs:

  • Make the program not freeze when sending cmd. Can be solved using threading.
  • Fix SSH server user not being deleted when stopping HRDP/Closing the application.

To do:

  • Fix imports to be more efficient
  • HRDP Wildcards
  • Fix program crashing when a client leaves during the auto-refresh (ping pong to check all connections are alive)
  • Limit Menu GUI to 1 instance only.
  • Make the target list uneditable after an instance is created.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.