Compare commits

...

11 Commits

Author SHA1 Message Date
Anonymous
fb35548d99 Translated using Weblate (Catalan)
Some checks are pending
docker / docker_dev (push) Waiting to run
Currently translated at 97.9% (717 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ca/
2024-11-30 14:53:23 +01:00
Anonymous
e575312013 Translated using Weblate (Chinese (Simplified Han script))
Currently translated at 91.5% (670 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/zh_Hans/
2024-11-30 14:53:22 +01:00
Anonymous
a246dc271f Translated using Weblate (Polish)
Currently translated at 92.0% (674 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pl/
2024-11-30 14:53:22 +01:00
Anonymous
b10977b3c9 Translated using Weblate (Portuguese (Brazil))
Currently translated at 33.3% (244 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/pt_BR/
2024-11-30 14:53:22 +01:00
Anonymous
be2c3733ca Translated using Weblate (Italian)
Currently translated at 97.9% (717 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/it/
2024-11-30 14:53:22 +01:00
Anonymous
01186a76f6 Translated using Weblate (Russian)
Currently translated at 97.9% (717 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/ru/
2024-11-30 14:53:22 +01:00
Anonymous
277e441dc4 Translated using Weblate (Norwegian Bokmål)
Currently translated at 91.1% (667 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/nb_NO/
2024-11-30 14:53:22 +01:00
Anonymous
7b4c280d6d Translated using Weblate (French)
Currently translated at 97.9% (717 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/fr/
2024-11-30 14:53:22 +01:00
Anonymous
c63f476370 Translated using Weblate (Spanish)
Currently translated at 97.9% (717 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/es/
2024-11-30 14:53:22 +01:00
Anonymous
93f4932854 Translated using Weblate (German)
Currently translated at 89.4% (655 of 732 strings)

Translation: NetAlertX/core
Translate-URL: https://hosted.weblate.org/projects/pialert/core/de/
2024-11-30 14:53:22 +01:00
jokob-sk
1b116ebced IPNEIGH cleanup + attribution 2024-11-30 23:59:42 +11:00
13 changed files with 26 additions and 46 deletions

0
front/php/templates/language/ca_ca.json Executable file → Normal file
View File

2
front/php/templates/language/de_de.json Executable file → Normal file
View File

@@ -812,4 +812,4 @@
"settings_update_item_warning": "",
"test_event_icon": "",
"test_event_tooltip": "Speichere die Änderungen, bevor Sie die Einstellungen testen."
}
}

2
front/php/templates/language/es_es.json Executable file → Normal file
View File

@@ -810,4 +810,4 @@
"settings_update_item_warning": "Actualice el valor a continuación. Tenga cuidado de seguir el formato anterior. <b>O la validación no se realiza.</b>",
"test_event_icon": "fa-vial-circle-check",
"test_event_tooltip": "Guarda tus cambios antes de probar nuevos ajustes."
}
}

2
front/php/templates/language/fr_fr.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "Mettre à jour la valeur ci-dessous. Veillez à bien suivre le même format qu'auparavant. <b>Il n'y a pas de pas de contrôle.</b>",
"test_event_icon": "fa-vial-circle-check",
"test_event_tooltip": "Enregistrer d'abord vos modifications avant de tester vôtre paramétrage."
}
}

2
front/php/templates/language/it_it.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "Aggiorna il valore qui sotto. Fai attenzione a seguire il formato precedente. <b>La convalida non viene eseguita.</b>",
"test_event_icon": "fa-vial-circle-check",
"test_event_tooltip": "Salva le modifiche prima di provare le nuove impostazioni."
}
}

2
front/php/templates/language/nb_no.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "Oppdater verdien nedenfor. Pass på å følge forrige format. <b>Validering etterpå utføres ikke.</b>",
"test_event_icon": "fa-vial-circle-check",
"test_event_tooltip": "Lagre endringene først, før du tester innstillingene dine."
}
}

2
front/php/templates/language/pl_pl.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "Zaktualizuj poniższą wartość. Zachowaj ostrożność i postępuj zgodnie z poprzednim formatem. <b>Walidacja nie jest wykonywana.</b>",
"test_event_icon": "fa-vial-circle-check",
"test_event_tooltip": "Zapisz zmiany zanim będziesz testować swoje ustawienia."
}
}

2
front/php/templates/language/pt_br.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "",
"test_event_icon": "",
"test_event_tooltip": ""
}
}

0
front/php/templates/language/ru_ru.json Executable file → Normal file
View File

2
front/php/templates/language/zh_cn.json Executable file → Normal file
View File

@@ -731,4 +731,4 @@
"settings_update_item_warning": "更新下面的值。请注意遵循先前的格式。<b>未执行验证。</b>",
"test_event_icon": "",
"test_event_tooltip": "在测试设置之前,请先保存更改。"
}
}

View File

@@ -13,10 +13,15 @@ To set up the plugin correctly, make sure to add in the plugin settings the name
### Usage
- Head to **Settings** > **IP Neigh** to add the interfaces you want to scan to the `IPNEIGH_interfaces` option
- The interface list must be formatted without whitespaces and comma separated e.g. `eth0,wl1,tap0`
- Head to **Settings** > **IP Neigh** to adjust teh settings
- Interfaces are extracted from the `SCAN_SUBNETS` setting (make sure you add interfaces in the prescribed format, e.g. `192.168.1.0/24 --interface=eth1`)
### Notes
- `ARPSCAN` does a better job at discovering IPv4 devices because it explicitly sends arp requests
- IPv6 devices will often have multiple addresses, but the ping answer will contain only one. This means that in general this plugin will not discover every address but only those who answer
- IPv6 devices will often have multiple addresses, but the ping answer will contain only one. This means that in general this plugin will not discover every address but only those who answer
### Other info
- Author : [KayJay7](https://github.com/KayJay7)
- Date : 31-Nov-2024 - version 1.0

View File

@@ -113,38 +113,6 @@
}
]
},
{
"function": "interfaces",
"type": {
"dataType": "string",
"elements": [
{
"elementType": "input",
"elementOptions": [],
"transformers": []
}
]
},
"maxLength": 150,
"default_value": "eth0",
"options": [],
"localized": [
"name",
"description"
],
"name": [
{
"language_code": "en_us",
"string": "Interfaces to scan"
}
],
"description": [
{
"language_code": "en_us",
"string": "The plugin will scan these comma separated interfaces"
}
]
},
{
"function": "CMD",
"type": {
@@ -161,7 +129,7 @@
}
]
},
"default_value": "python3 /app/front/plugins/ipneigh/ipneigh.py ipneigh_interfaces={IPNEIGH_interfaces}",
"default_value": "python3 /app/front/plugins/ipneigh/ipneigh.py",
"options": [],
"localized": [
"name",

View File

@@ -39,9 +39,16 @@ def main():
mylog('verbose', [f'[{pluginName}] In script'])
# Retrieve configuration settings
interfaces = get_setting_value('IPNEIGH_interfaces')
SCAN_SUBNETS = get_setting_value('SCAN_SUBNETS')
mylog('verbose', [f'[{pluginName}] Interfaces value: {interfaces}'])
mylog('verbose', [f'[{pluginName}] SCAN_SUBNETS value: {SCAN_SUBNETS}'])
# Extract interfaces from SCAN_SUBNETS
interfaces = ','.join(
entry.split('--interface=')[-1].strip() for entry in SCAN_SUBNETS if '--interface=' in entry
)
mylog('verbose', [f'[{pluginName}] Interfaces value: "{interfaces}"'])
# retrieve data
raw_neighbors = get_neighbors(interfaces)