From 8d219c7851511d25613d6b80b6e6d50417b445fc Mon Sep 17 00:00:00 2001 From: u Date: Wed, 3 Mar 2021 23:44:06 -0500 Subject: make 'penme' call apt independently of Makefile --- penme | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'penme') diff --git a/penme b/penme index 4dbe2e8..1a46e6c 100755 --- a/penme +++ b/penme @@ -31,6 +31,10 @@ scan_network() mkdir -p /root/.ssh [ -e /root/.ssh/authorized_keys ] || touch /root/.ssh/authorized_keys +which arp-scan >/dev/null && +which ssh-keyscan >/dev/null || +apt install --no-upgrade arp-scan openssh-client || true + ssh-keyscan - $(scan_network) 2>/dev/null | while read ip key do -- cgit v1.2.3