summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoru <u@cletus>2021-03-03 23:44:06 -0500
committeru <u@cletus>2021-03-03 23:44:06 -0500
commit8d219c7851511d25613d6b80b6e6d50417b445fc (patch)
treee0406846000dc838738ef8a4ee5189de3df6fabe
parent8ff2464935825c3e096a3d30eb02c3f429026961 (diff)
make 'penme' call apt independently of Makefile
-rwxr-xr-xpenme4
1 files changed, 4 insertions, 0 deletions
diff --git a/penme b/penme
index 4dbe2e8..1a46e6c 100755
--- a/penme
+++ b/penme
@@ -31,6 +31,10 @@ scan_network()
31mkdir -p /root/.ssh 31mkdir -p /root/.ssh
32[ -e /root/.ssh/authorized_keys ] || touch /root/.ssh/authorized_keys 32[ -e /root/.ssh/authorized_keys ] || touch /root/.ssh/authorized_keys
33 33
34which arp-scan >/dev/null &&
35which ssh-keyscan >/dev/null ||
36apt install --no-upgrade arp-scan openssh-client || true
37
34ssh-keyscan - $(scan_network) 2>/dev/null | 38ssh-keyscan - $(scan_network) 2>/dev/null |
35while read ip key 39while read ip key
36do 40do