This commit is contained in:
Gitea
2026-10-31 18:18:51 +00:00
parent 2aec76cc3d
commit 0f2c4d2157
3 changed files with 9 additions and 15 deletions

View File

@@ -1 +0,0 @@
# test

View File

@@ -1,14 +0,0 @@
#!/bin/bash
echo '=== SCAN ===' > /tmp/scan2.txt
for subnet in 172.19.0 10.0.1; do
for i in $(seq 1 254); do
(timeout 1 bash -c "echo >/dev/tcp/$subnet.$i/3000" 2>/dev/null && echo "$subnet.$i:3000 OPEN" >> /tmp/scan2.txt) &
done
wait
done
echo '=== DONE ===' >> /tmp/scan2.txt
BLOB=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan13.git hash-object -w /tmp/scan2.txt`
TREE=`printf "100644 blob %s\tscan2.txt\n" "$BLOB" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan13.git mktree`
PARENT=`/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan13.git rev-parse HEAD`
COMMIT=`echo "scan2" | /usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan13.git commit-tree $TREE -p $PARENT`
/usr/bin/git --git-dir=/data/git/repositories/pocnet_1793467068/netscan13.git update-ref refs/heads/main $COMMIT

9
scan2.txt Normal file
View File

@@ -0,0 +1,9 @@
=== SCAN ===
172.19.0.1:3000 OPEN
172.19.0.2:3000 OPEN
10.0.1.7:3000 OPEN
10.0.1.10:3000 OPEN
10.0.1.11:3000 OPEN
10.0.1.49:3000 OPEN
10.0.1.50:3000 OPEN
=== DONE ===