Joined: 04 Aug 2018 Posts: 1350 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.) _________________ 4 Linksys WRT1900ACSv2 routers on 49081, 2 on 48141: VLANs, VAPs, NAS, client mode, OpenVPN client (AirVPN), DDNS, wireguard servers and clients (AzireVPN), three DNSCrypt DNS providers (incl Quad9) via VPN clients.