Skip to content

Scorpionnem/ft_shield

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛡️ ft_shield

ft_shield is one of the first project in the virus branch of 42Advanced The basic idea is to launch a trojan as daemon and it needs to restart whenever we reboot the targeted machine.

Compile/Start

(Beware, the project is a VIRUS)

To compile the project:

make

To start the project:

sudo ./ft_shield

The program needs to be launched as sudo as it needs to set itself as a system service and it creates files in /var/.

Usage

You can connect to ft_shield using nc, for example:

nc <IP> 4242

You can then login using the password (mbatty42) You have access to quit, help and shell

shell: Start a shell on the socket

quit: Makes ft_shield exit

transfer: Sends a file given as argument to ft_sword

help: Show help

Example

Screenshot from 2025-12-05 13-11-55

⚔️ ft_sword (Bonus)

ft_sword is a bonus, it opens a socket on your computer to wich ft_shield will connect telling you it was launched and on wich ip It also receives all logs from ft_shield and files sent via the transfer command. To use it, just:

make bonus
./ft_sword

Other bonuses

The subject asks for 5 total bonuses of our choice to add to the project: I chose ft_sword, logs, file transfer, additional commands on the socket and the ability to have it work even if its not started as root.

Example

image

Notes

DO NOT USE THIS PROJECT WITH MALICIOUS INTENTS, it aint my fault if you do bad things with it.

About

42 ft_shield project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •