mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 09:36:05 -08:00
wf work
This commit is contained in:
28
.github/workflows/code_checks.yml
vendored
Executable file
28
.github/workflows/code_checks.yml
vendored
Executable file
@@ -0,0 +1,28 @@
|
|||||||
|
name: URL Path Check
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
tags:
|
||||||
|
- '*.*.*'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
check-url-paths:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Check for absolute path URLs
|
||||||
|
run: |
|
||||||
|
if grep -r -E "\burl:\s*['\"]\/php" --include=\*.{js,php} .; then
|
||||||
|
echo "❌ Found absolute path URLs starting with '/php/'. Please use relative paths."
|
||||||
|
exit 1
|
||||||
|
else
|
||||||
|
echo "✅ No absolute path URLs found."
|
||||||
|
fi
|
||||||
|
|
||||||
@@ -2,11 +2,14 @@
|
|||||||
|
|
||||||
By design, local network scanners such as `arp-scan` use ARP (Address Resolution Protocol) to map IP addresses to MAC addresses on the local network. Since ARP operates at Layer 2 (Data Link Layer), it typically works only within a single broadcast domain, usually limited to a single router or network segment.
|
By design, local network scanners such as `arp-scan` use ARP (Address Resolution Protocol) to map IP addresses to MAC addresses on the local network. Since ARP operates at Layer 2 (Data Link Layer), it typically works only within a single broadcast domain, usually limited to a single router or network segment.
|
||||||
|
|
||||||
To scan multiple locally accessible network segments, add them as subnets according to the [subnets](./SUBNETS.md) documentation.
|
> [!NOTE]
|
||||||
|
> Ping and `ARPSCAN` use different protocols so even if you can ping devices it doesn't mean `ARPSCAN` can detect them.
|
||||||
|
|
||||||
|
To scan multiple locally accessible network segments, add them as subnets according to the [subnets](./SUBNETS.md) documentation. If `ARPSCAN` is not suitable for your setup, read on.
|
||||||
|
|
||||||
## Complex Use Cases
|
## Complex Use Cases
|
||||||
|
|
||||||
The following network setups might make some devices undetectable. Check the specific setup to understand the cause and find potential workarounds to still report on these devices.
|
The following network setups might make some devices undetectable with `ARPSCAN`. Check the specific setup to understand the cause and find potential workarounds to report on these devices.
|
||||||
|
|
||||||
### Wi-Fi Extenders
|
### Wi-Fi Extenders
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ function renderList(
|
|||||||
// Check if database is locked
|
// Check if database is locked
|
||||||
function checkDbLock() {
|
function checkDbLock() {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/php/server/query_logs.php?file=db_is_locked.log",
|
url: "php/server/query_logs.php?file=db_is_locked.log",
|
||||||
type: "GET",
|
type: "GET",
|
||||||
|
|
||||||
success: function (response) {
|
success: function (response) {
|
||||||
|
|||||||
@@ -422,7 +422,7 @@ function updateModalState() {
|
|||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
// Fetch the content from the log file using an AJAX request
|
// Fetch the content from the log file using an AJAX request
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '/php/server/query_logs.php?file=execution_queue.log',
|
url: 'php/server/query_logs.php?file=execution_queue.log',
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
success: function(data) {
|
success: function(data) {
|
||||||
// Update the content of the HTML element (e.g., a div with id 'logContent')
|
// Update the content of the HTML element (e.g., a div with id 'logContent')
|
||||||
|
|||||||
@@ -166,7 +166,7 @@ $settingsJSON_DB = json_encode($settings, JSON_HEX_TAG | JSON_HEX_AMP | JSON_HEX
|
|||||||
|
|
||||||
// get settings from the secured graphql endpoint
|
// get settings from the secured graphql endpoint
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "/php/server/query_graphql.php", // Replace with your GraphQL endpoint
|
url: "php/server/query_graphql.php", // Replace with your GraphQL endpoint
|
||||||
method: "POST",
|
method: "POST",
|
||||||
contentType: "application/json",
|
contentType: "application/json",
|
||||||
data: JSON.stringify({
|
data: JSON.stringify({
|
||||||
|
|||||||
Reference in New Issue
Block a user