Joined: 04 Aug 2018 Posts: 1447 Location: Appalachian mountains, USA
Posted: Thu Jun 25, 2020 18:13 Post subject:
Look in /tmp/loginprompt for the login banner that appears when you connect using ssh/PuTTY, etc.
There are lots of crazy ways to extract it, of course. Example:
Code:
ssh root@192.168.1.1 ' ' 2>&1 | sed -nE '1s/.*-r([0-9]{5}) .*/\1/p'
(Note that there's an important space between the first pair of single quotes.) _________________ 2x Netgear XR500 and 3x Linksys WRT1900ACSv2 on 53544: VLANs, VAPs, NAS, station mode, OpenVPN client (AirVPN), wireguard server (AirVPN port forward) and clients (AzireVPN, AirVPN, private), 3 DNSCrypt providers via VPN.