-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathclient.sh
26 lines (22 loc) · 1.82 KB
/
client.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# Prompt for host and port
ascii_art() {
echo -e '\033[0;31m' # Switch to red
echo ' ▄▄▄▄ ▄▄▄ ██████ ██░ ██ ▄████▄ ██░ ██ ▄▄▄ ▄▄▄█████▓'
echo '▓█████▄ ▒████▄ ▒██ ▒ ▓██░ ██▒ ▒██▀ ▀█ ▓██░ ██▒▒████▄ ▓ ██▒ ▓▒'
echo '▒██▒ ▄██▒██ ▀█▄ ░ ▓██▄ ▒██▀▀██░ ▒▓█ ▄ ▒██▀▀██░▒██ ▀█▄ ▒ ▓██░ ▒░'
echo '▒██░█▀ ░██▄▄▄▄██ ▒ ██▒░▓█ ░██ ▒▓▓▄ ▄██▒░▓█ ░██ ░██▄▄▄▄██░ ▓██▓ ░ '
echo '░▓█ ▀█▓ ▓█ ▓██▒▒██████▒▒░▓█▒░██▓ ▒ ▓███▀ ░░▓█▒░██▓ ▓█ ▓██▒ ▒██▒ ░ '
echo '░▒▓███▀▒ ▒▒ ▓▒█░▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒ ░ ░▒ ▒ ░ ▒ ░░▒░▒ ▒▒ ▓▒█░ ▒ ░░ '
echo '▒░▒ ░ ▒ ▒▒ ░░ ░▒ ░ ░ ▒ ░▒░ ░ ░ ▒ ▒ ░▒░ ░ ▒ ▒▒ ░ ░ '
echo ' ░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░ ░ ░ ░░ ░ ░ ▒ ░ '
echo ' ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ ░ '
echo ' ░ ░ '
echo -e '\033[0m' # Reset color
}
ascii_art
read -p "Enter the hostname or IP address: " host
read -p "Enter the port number: " port
communication_file="communication.log"
# Run netcat command
nc "$host" "$port"