I've set up a telnet honeypot and I'm looking for a library that could pull the IP address out of this:
[2021-02-22 10:28:06] [127.0.0.1:46368] AUTH: bog:bog
[2021-02-22 10:28:12] [127.0.0.1:46368] AUTH: :^]
[2021-02-22 10:28:13] [127.0.0.1:46368] AUTH: :
[2021-02-22 10:28:13] [127.0.0.1:46368] SESSION_END
Something in Python would be nice, but any language works.
awk
,sed
,cut
,grep
etc.