# CHAOS **Repository Path**: xgadmin/CHAOS ## Basic Information - **Project Name**: CHAOS - **Description**: :fire: CHAOS is a PoC that allow generate payloads and control remote operating systems. - **Primary Language**: Go - **License**: BSD-3-Clause - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-04-20 - **Last Updated**: 2022-05-17 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README

CHAOS Payload Generator

CHAOS is a PoC that allow generate payloads and control remote operating systems.

## Disclaimer

:books: This project was created only for learning purpose.

THIS SOFTWARE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. YOU MAY USE THIS SOFTWARE AT YOUR OWN RISK. THE USE IS COMPLETE RESPONSIBILITY OF THE END-USER. THE DEVELOPERS ASSUME NO LIABILITY AND ARE NOT RESPONSIBLE FOR ANY MISUSE OR DAMAGE CAUSED BY THIS PROGRAM. ## Features | Feature | ![w] | ![m] | ![l] | |:-------------------------|:-------:|:------:|:-----:| | `Reverse Shell` | X | X | X | | `Download File` | X | X | X | | `Upload File` | X | X | X | | `Screenshot` | X | X | X | | `Keylogger` | X | | | | `Persistence` | X | | | | `Open URL` | X | X | X | | `Get OS Info` | X | X | X | | `Fork Bomb` | X | X | X | | `Run Hidden` | X | | | ## Tested On [![Kali)](https://www.google.com/s2/favicons?domain=https://www.kali.org/)](https://www.kali.org) **Kali Linux - ROLLING EDITION** ## How to Install ```bash # Install dependencies $ sudo apt install golang git -y # Get this repository $ go get github.com/tiagorlampert/CHAOS # Get external golang dependencies (ARE REQUIRED GET ALL DEPENDENCIES) $ go get github.com/kbinani/screenshot $ go get github.com/lxn/win $ go get github.com/matishsiao/goInfo $ go get golang.org/x/sys/windows # Maybe you will see the message "package github.com/lxn/win: build constraints exclude all Go files". # It's occurs because the libraries are to windows systems, but it necessary to build the payload. # Go into the repository $ cd ~/go/src/github.com/tiagorlampert/CHAOS # Run $ go run main.go ``` ## How to Use Command | On HOST does... :----- |:----- `generate` |Generate a payload (e.g. `generate lhost=192.168.0.100 lport=8080 fname=chaos --windows`) `lhost=` |Specify a ip for connection `lport=` |Specify a port for connection `fname=` |Specify a filename to output `--windows` |Target Windows `--macos` |Target Mac OS `--linux` |Target Linux `listen` |Listen for a new connection (e.g. `listen lport=8080`) `serve` |Serve files `exit` |Quit this program Command | On TARGET does... :----- |:----- `download` |File Download `upload` |File Upload `screenshot` |Take a Screenshot `keylogger_start` |Start Keylogger session `keylogger_show` |Show Keylogger session logs `persistence_enable` |Install at Startup `persistence_disable` |Remove from Startup `getos` |Get OS name `lockscreen` |Lock the OS screen `openurl` |Open the URL informed `bomb` |Run Fork Bomb `clear` |Clear the Screen `back` |Close connection but keep running on target `exit` |Close connection and exit on target ## Video

## Gif

## FAQ > #### Why does Keylogger capture all uppercase letters? > All the letters obtained using the keylogger are uppercase letters. It is a known issue, in case anyone knows how to fix the Keylogger function using golang, please contact me or open an issue. > #### Why are necessary get and install external libraries? > To implement the screenshot function i used a third-party library, you can check it in https://github.com/kbinani/screenshot and https://github.com/lxn/win. You must download and install it to generate the payload. ## Contact :email: **tiagorlampert@gmail.com** ## Donate If you enjoyed this project, give me a cup of coffee. :) [![Donate](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=SG83FSKPKCRJ6¤cy_code=USD&source=url) ## License >The [BSD 3-Clause License](https://opensource.org/licenses/BSD-3-Clause) > >Copyright (c) 2017, Tiago Rodrigo Lampert > >All rights reserved. > >Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: > >* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. > >* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. > >* Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. > >THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. [w]:https://raw.githubusercontent.com/tiagorlampert/CHAOS/master/content/windows.png "Windows status" [l]:https://raw.githubusercontent.com/tiagorlampert/CHAOS/master/content/linux.png "Linux status" [m]:https://raw.githubusercontent.com/tiagorlampert/CHAOS/master/content/mac.png "Mac OS status"