Skip to content

Commit 75f32ab

Browse files
committed
Remove Wazuh files
1 parent 80dbb2c commit 75f32ab

File tree

5 files changed

+2
-33
lines changed

5 files changed

+2
-33
lines changed

Files/wazuh-2/attack-part1

-16.4 KB
Binary file not shown.

Files/wazuh-2/attack-part2

-16.4 KB
Binary file not shown.

Files/wazuh-2/static.txt

-1
This file was deleted.

Files/wazuh-2/thisisit.txt

-1
This file was deleted.

Scripts/unit2_project.sh

+2-31
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,5 @@
11
#!/bin/bash
2-
red='\033[0;31m'
3-
green='\033[0;32m'
42
none='\033[0m'
5-
6-
safe_move() {
7-
if [ -e $2/$1 ]; then
8-
echo -e "[UNIT 2 PROJECT] File $1 already found at $2."
9-
else
10-
if [ -e "$HOME/Files/wazuh-2/$1" ]; then
11-
sudo mv ~/Files/wazuh-2/"$1" $2/$1 && echo "[UNIT 2 PROJECT] Moved $1 to $2/$1"
12-
else
13-
echo -e "${red}[UNIT 2 PROJECT]${none} Error: File ~/Files/wazuh-2/$1 does not exist."
14-
exit 1
15-
fi
16-
# Verify move was successful
17-
if ! [ -e $2/$1 ]; then
18-
echo -e "${red}[UNIT 2 PROJECT]${none} Error: Could not move file $1 to $2/$1"
19-
exit 1
20-
fi
21-
fi
22-
}
23-
3+
green='\033[0;32m'
244
echo "[UNIT 2 PROJECT] Starting script..."
25-
26-
sudo mkdir -p /etc/wazuh
27-
safe_move attack-part1 ~
28-
safe_move attack-part2 ~
29-
chmod u+x ~/attack-part1
30-
chmod u+x ~/attack-part2
31-
safe_move thisisit.txt /etc/wazuh
32-
safe_move static.txt /etc/wazuh
33-
34-
echo -e "${green}[UNIT 2 PROJECT]${none} All files moved successfully."
5+
echo -e "${green}[UNIT 2 PROJECT]${none} N/A - Nothing required for this project."

0 commit comments

Comments
 (0)