Merge pull request #28 from b068931cc450442b63f5b3d276ea4297/master

some updates
This commit is contained in:
b068931cc450442b63f5b3d276ea4297 2024-01-24 23:21:41 +01:00 committed by GitHub
commit f4efd8b050
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
9 changed files with 36 additions and 43 deletions

View File

@ -134,7 +134,7 @@
"packets_number": "Anzahl der Pakete", "packets_number": "Anzahl der Pakete",
"capture_sha1": "SHA1-Aufnahme", "capture_sha1": "SHA1-Aufnahme",
"report_for_the_capture": "Bericht zur Aufnahme", "report_for_the_capture": "Bericht zur Aufnahme",
"report_footer": "Dieser Bericht wurde von einem SpyGuard-Gerät automatisch erstellt. Wenn Sie Fragen haben, Bugs melden oder Feedback geben möchten, kontaktieren Sie uns unter contact@spyguard.io.", "report_footer": "Dieser Bericht wurde von einem SpyGuard-Gerät automatisch erstellt. Wenn Sie Fragen haben, Bugs melden oder Feedback geben möchten, kontaktieren Sie uns unter spyguard@protonmail.com.",
"high_msg": "Ihr Gerät scheint kompromittiert zu sein, da Sie {} Warnung(en) der Stufe \"Hoch\" haben.", "high_msg": "Ihr Gerät scheint kompromittiert zu sein, da Sie {} Warnung(en) der Stufe \"Hoch\" haben.",
"moderate_msg": "Sie haben {} Warnungen der Stufe \"Mittel\": Ihr Gerät könnte kompromittiert sein. Bitte sehen Sie sich die Warnungen sorgfältig an.", "moderate_msg": "Sie haben {} Warnungen der Stufe \"Mittel\": Ihr Gerät könnte kompromittiert sein. Bitte sehen Sie sich die Warnungen sorgfältig an.",
"low_msg": "Sie haben nur {} Warnungen der Stufe \"Niedrig\": Überprüfen Sie sie gerne.", "low_msg": "Sie haben nur {} Warnungen der Stufe \"Niedrig\": Überprüfen Sie sie gerne.",

View File

@ -134,7 +134,7 @@
"packets_number": "Number of packets", "packets_number": "Number of packets",
"capture_sha1": "Capture SHA1", "capture_sha1": "Capture SHA1",
"report_for_the_capture": "Report for the capture", "report_for_the_capture": "Report for the capture",
"report_footer": "This report has been autogenerated by a SpyGuard device. For any question, bug report or feedback, please contact contact@spyguard.io.", "report_footer": "This report has been autogenerated by a SpyGuard device. For any question, bug report or feedback, please contact spyguard@protonmail.com.",
"high_msg": "Your device seems to be compromised as you have {} high alert(s).", "high_msg": "Your device seems to be compromised as you have {} high alert(s).",
"moderate_msg": "You have {} moderate alert(s), your device might be compromised. Please look at them carefully.", "moderate_msg": "You have {} moderate alert(s), your device might be compromised. Please look at them carefully.",
"low_msg": "You have only {} low alert(s), don't hesitate to check them.", "low_msg": "You have only {} low alert(s), don't hesitate to check them.",

View File

@ -134,7 +134,7 @@
"packets_number": "Número de paquetes", "packets_number": "Número de paquetes",
"capture_sha1": "Captura SHA1", "capture_sha1": "Captura SHA1",
"report_for_the_capture": "Informe de la captura", "report_for_the_capture": "Informe de la captura",
"report_footer": "Este informe ha sido autogenerado por un dispositivo SpyGuard. Para cualquier pregunta, informe de fallos o feedback por favor contacte con contact@spyguard.io.", "report_footer": "Este informe ha sido autogenerado por un dispositivo SpyGuard. Para cualquier pregunta, informe de fallos o feedback por favor contacte con spyguard@protonmail.com.",
"high_msg": "Su dispositivo parece estar comprometido ya que tiene {} alerta(s) de nivel alto.", "high_msg": "Su dispositivo parece estar comprometido ya que tiene {} alerta(s) de nivel alto.",
"moderate_msg": "Tienes {} alerta(s) de nivel moderado, su dispositivo podría estar comprometido. Por favor revíselas detenidamente.", "moderate_msg": "Tienes {} alerta(s) de nivel moderado, su dispositivo podría estar comprometido. Por favor revíselas detenidamente.",
"low_msg": "Solamente tiene {} alertas(s) de nivel bajo, por favor revíselas.", "low_msg": "Solamente tiene {} alertas(s) de nivel bajo, por favor revíselas.",

View File

@ -134,7 +134,7 @@
"packets_number": "Nombre de paquets", "packets_number": "Nombre de paquets",
"capture_sha1": "SHA1 de la capture", "capture_sha1": "SHA1 de la capture",
"report_for_the_capture": "Rapport pour la capture", "report_for_the_capture": "Rapport pour la capture",
"report_footer": "Ce rapport a été automatiquement généré par une instance de SpyGuard. Pour toute question et retours, n'hésitez pas à contacter contact@spyguard.io.", "report_footer": "Ce rapport a été automatiquement généré par une instance de SpyGuard. Pour toute question et retours, n'hésitez pas à contacter spyguard@protonmail.com.",
"high_msg": "Votre appareil semble être compromis car vous avez {} alerte(s) élevée(s).", "high_msg": "Votre appareil semble être compromis car vous avez {} alerte(s) élevée(s).",
"moderate_msg": "Vous avez {} alerte(s) modérée(s), votre appareil peut être compromis. Regardez ces alertes en détail.", "moderate_msg": "Vous avez {} alerte(s) modérée(s), votre appareil peut être compromis. Regardez ces alertes en détail.",
"low_msg": "Vous avez uniquement {} alerte(s) faibles, n'hésitez pas à les consulter.", "low_msg": "Vous avez uniquement {} alerte(s) faibles, n'hésitez pas à les consulter.",

View File

@ -134,7 +134,7 @@
"packets_number": "Numero di pacchetti", "packets_number": "Numero di pacchetti",
"capture_sha1": "SHA1 acquisizione", "capture_sha1": "SHA1 acquisizione",
"report_for_the_capture": "Rapporto relativo all'acquisizione", "report_for_the_capture": "Rapporto relativo all'acquisizione",
"report_footer": "Questo rapporto è stato generato automaticamente da un dispositivo SpyGuard. Per eventuali domande, segnalazioni di bug o feedback, contattare contact@spyguard.io.", "report_footer": "Questo rapporto è stato generato automaticamente da un dispositivo SpyGuard. Per eventuali domande, segnalazioni di bug o feedback, contattare spyguard@protonmail.com.",
"high_msg": "Sembra che il dispositivo sia compromesso poiché sono presenti {} avvisi con priorità elevata.", "high_msg": "Sembra che il dispositivo sia compromesso poiché sono presenti {} avvisi con priorità elevata.",
"moderate_msg": "Sono presenti {} avvisi con priorità moderata, è possibile che il dispositivo sia compromesso. Esaminarli con attenzione.", "moderate_msg": "Sono presenti {} avvisi con priorità moderata, è possibile che il dispositivo sia compromesso. Esaminarli con attenzione.",
"low_msg": "Sono presenti solo {} avvisi con priorità bassa da controllare.", "low_msg": "Sono presenti solo {} avvisi con priorità bassa da controllare.",

View File

@ -134,7 +134,7 @@
"packets_number": "Liczba pakietów", "packets_number": "Liczba pakietów",
"capture_sha1": "SHA1 zapisu ruchu", "capture_sha1": "SHA1 zapisu ruchu",
"report_for_the_capture": "Raport dla badania", "report_for_the_capture": "Raport dla badania",
"report_footer": "Raport został wygenerowany automatycznie przez urządzenie SpyGuard. W sprawie pytań, błędów oraz oceny, kontakt: contact@spyguard.io.", "report_footer": "Raport został wygenerowany automatycznie przez urządzenie SpyGuard. W sprawie pytań, błędów oraz oceny, kontakt: spyguard@protonmail.com.",
"high_msg": "Twoje urządzenie wygląd na skompromitowane, odnotowano {} wysokich ostrzeżeń.", "high_msg": "Twoje urządzenie wygląd na skompromitowane, odnotowano {} wysokich ostrzeżeń.",
"moderate_msg": "Odntowano {} umiarkowanych ostrzeżeń, Twoje urządzenie może być skompromitowane. Badź czujna(y) używając go.", "moderate_msg": "Odntowano {} umiarkowanych ostrzeżeń, Twoje urządzenie może być skompromitowane. Badź czujna(y) używając go.",
"low_msg": "Odnotowano tylko niskie ostrzeżenia: {}. Możesz się im przyjrzeć.", "low_msg": "Odnotowano tylko niskie ostrzeżenia: {}. Możesz się im przyjrzeć.",

View File

@ -134,7 +134,7 @@
"packets_number": "Número de pacotes", "packets_number": "Número de pacotes",
"capture_sha1": "Captura SHA1", "capture_sha1": "Captura SHA1",
"report_for_the_capture": "Relatório da captura", "report_for_the_capture": "Relatório da captura",
"report_footer": "Este relatório foi gerado automaticamente por um dispositivo SpyGuard. Em caso de dúvidas, relatório de erros ou comentários, envie uma mensagem para contact@spyguard.io.", "report_footer": "Este relatório foi gerado automaticamente por um dispositivo SpyGuard. Em caso de dúvidas, relatório de erros ou comentários, envie uma mensagem para spyguard@protonmail.com.",
"high_msg": "O dispositivo parece estar comprometido porque você tem {} alerta(s) crítico(s).", "high_msg": "O dispositivo parece estar comprometido porque você tem {} alerta(s) crítico(s).",
"moderate_msg": "Você tem {} alerta(s) moderado(s), seu dispositivo pode estar comprometido. Analise-os com cuidado.", "moderate_msg": "Você tem {} alerta(s) moderado(s), seu dispositivo pode estar comprometido. Analise-os com cuidado.",
"low_msg": "Você tem apenas {} alerta(s) leve(s), não deixe de verificá-los.", "low_msg": "Você tem apenas {} alerta(s) leve(s), não deixe de verificá-los.",

View File

@ -134,7 +134,7 @@
"packets_number": "Количество пакетов", "packets_number": "Количество пакетов",
"capture_sha1": "Сбор данных SHA1", "capture_sha1": "Сбор данных SHA1",
"report_for_the_capture": "Отчет для сбора данных", "report_for_the_capture": "Отчет для сбора данных",
"report_footer": "Этот отчет был автоматически сформирован устройством SpyGuard. С любыми вопросами, сообщениями об ошибках или отзывами обращайтесь по адресу contact@spyguard.io.", "report_footer": "Этот отчет был автоматически сформирован устройством SpyGuard. С любыми вопросами, сообщениями об ошибках или отзывами обращайтесь по адресу spyguard@protonmail.com.",
"high_msg": "Вероятно, ваше устройство взломано, поскольку у вас {} предупрежд. высокого уровня.", "high_msg": "Вероятно, ваше устройство взломано, поскольку у вас {} предупрежд. высокого уровня.",
"moderate_msg": "У вас {} предупрежд. среднего уровня. Возможно, ваше устройство взломано. Внимательно изучите их.", "moderate_msg": "У вас {} предупрежд. среднего уровня. Возможно, ваше устройство взломано. Внимательно изучите их.",
"low_msg": "У вас {} предупрежд. низкого уровня, проверьте их.", "low_msg": "У вас {} предупрежд. низкого уровня, проверьте их.",

View File

@ -1,5 +1,4 @@
#!/bin/bash #!/bin/bash
CURRENT_USER="${SUDO_USER}" CURRENT_USER="${SUDO_USER}"
SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )" SCRIPT_PATH="$( cd "$(dirname "$0")" ; pwd -P )"
HOST="$( hostname )" HOST="$( hostname )"
@ -80,7 +79,6 @@ generate_certificate() {
create_services() { create_services() {
# Create services to launch the two servers. # Create services to launch the two servers.
echo -e "\e[39m[+] Creating services\e[39m" echo -e "\e[39m[+] Creating services\e[39m"
echo -e "\e[92m [✔] Creating frontend service\e[39m" echo -e "\e[92m [✔] Creating frontend service\e[39m"
@ -140,7 +138,6 @@ EOL
systemctl start spyguard-backend systemctl start spyguard-backend
} }
change_hostname() { change_hostname() {
# Changing the hostname to spyguard # Changing the hostname to spyguard
echo -e "[+] Changing the hostname to spyguard" echo -e "[+] Changing the hostname to spyguard"
@ -151,39 +148,34 @@ change_hostname() {
echo "127.0.0.1 spyguard.local" >> /etc/hosts echo "127.0.0.1 spyguard.local" >> /etc/hosts
} }
install_package() { install_packages() {
# Install associated packages by using aptitude. # Install associated packages by using aptitude.
if [[ $1 == "tshark" || $1 == "sqlite3" || $1 == "suricata" ]]; then packages=("tshark"
apt install $1 -y "sqlite3"
elif [[ $1 == "dig" ]]; then "suricata"
apt install -y dnsutils "dnsutils"
elif [[ $1 == "pip3" ]]; then "python3-pip"
apt install -y python3-pip "python3-venv"
elif [[ $1 == "arp" ]]; then "net-tools")
apt install -y net-tools
fi
}
check_dependencies() {
# Check binary dependencies associated to the project.
# If not installed, call install_package with the package name.
bins=("/usr/bin/tshark"
"/usr/bin/dig"
"/usr/bin/suricata"
"/usr/bin/sqlite3"
"/usr/bin/pip3"
"/usr/sbin/arp")
echo -e "\e[39m[+] Checking dependencies...\e[39m" echo -e "\e[39m[+] Checking dependencies...\e[39m"
for bin in "${bins[@]}" for package in "${packages[@]}"
do do
if [[ -f "$bin" ]]; then if dpkg-query -W -f='${Status}' "$package" 2>/dev/null | grep -q -P '^install ok installed$'; then
echo -e "\e[92m [✔] ${bin##*/} installed\e[39m" echo -e "\e[92m [✔] $package already installed\e[39m"
else else
echo -e "\e[93m [✘] ${bin##*/} not installed, lets install it\e[39m" echo -e "\e[93m [✘] $package not installed, lets install it\e[39m"
install_package ${bin##*/} apt-get install -y "$package"
if [ $? -eq 0 ]; then
echo -e "\e[92m [✔] $package was successfully installed\e[39m"
else
echo -e "\e[91m [✘] $package has an error during the installation\e[39m"
fi
fi fi
done done
}
create_venv() {
echo -e "\e[39m[+] Create and activate Virtual Environment for Python packages\e[39m" echo -e "\e[39m[+] Create and activate Virtual Environment for Python packages\e[39m"
python3 -m venv /usr/share/spyguard/spyguard-venv python3 -m venv /usr/share/spyguard/spyguard-venv
source /usr/share/spyguard/spyguard-venv/bin/activate source /usr/share/spyguard/spyguard-venv/bin/activate
@ -208,7 +200,7 @@ cleaning() {
systemctl disable suricata.service &> /dev/null systemctl disable suricata.service &> /dev/null
# Removing some useless dependencies. # Removing some useless dependencies.
sudo apt autoremove -y &> /dev/null apt autoremove -y &> /dev/null
echo -e "\e[92m[+] Installation finished! You can open https://localhost:8443 to configure network settings.\e[39m" echo -e "\e[92m[+] Installation finished! You can open https://localhost:8443 to configure network settings.\e[39m"
} }
@ -243,7 +235,8 @@ else
get_version get_version
set_userlang set_userlang
set_credentials set_credentials
check_dependencies install_packages
create_venv
change_hostname change_hostname
generate_certificate generate_certificate
create_database create_database