fork download
  1. import fileinput
  2. import re
  3.  
  4. for line in fileinput.input():
  5. m = re.search(r'Hardware ID:\s*(\S+)', line)
  6. if m:
  7. print(m.group(1))
Success #stdin #stdout 0.02s 28384KB
stdin
01:01:23: Server started on 127.0.0.1:28015
01:01:23: Connecting to authentication server #1 ...
01:01:23: Server external IP: 127.0.0.1
01:01:23: Receiving authentication data from server #1 ...
01:01:23: Hardware ID: f42dffb20dd3a91339a8f1d56860c203
01:01:23: You can't run server with RustExtended on this IP with this port.
Please purchase this modification from a developer before to use.
01:01:33: Server started on 127.0.0.1:28015
01:01:33: Connecting to authentication server #1 ...
01:01:34: Server external IP: 127.0.0.1
01:01:34: Receiving authentication data from server #1 ...
stdout
f42dffb20dd3a91339a8f1d56860c203