diff options
author | u <u@cletus> | 2021-03-03 23:44:06 -0500 |
---|---|---|
committer | u <u@cletus> | 2021-03-03 23:44:06 -0500 |
commit | 8d219c7851511d25613d6b80b6e6d50417b445fc (patch) | |
tree | e0406846000dc838738ef8a4ee5189de3df6fabe | |
parent | 8ff2464935825c3e096a3d30eb02c3f429026961 (diff) |
make 'penme' call apt independently of Makefile
-rwxr-xr-x | penme | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -31,6 +31,10 @@ scan_network() | |||
31 | mkdir -p /root/.ssh | 31 | mkdir -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 | ||
34 | which arp-scan >/dev/null && | ||
35 | which ssh-keyscan >/dev/null || | ||
36 | apt install --no-upgrade arp-scan openssh-client || true | ||
37 | |||
34 | ssh-keyscan - $(scan_network) 2>/dev/null | | 38 | ssh-keyscan - $(scan_network) 2>/dev/null | |
35 | while read ip key | 39 | while read ip key |
36 | do | 40 | do |