feat: add infrastructure automation scripts and master improvement plan
This commit is contained in:
16
scripts/check_banner_raw.py
Normal file
16
scripts/check_banner_raw.py
Normal file
@@ -0,0 +1,16 @@
|
||||
import os
|
||||
import sys
|
||||
import socket
|
||||
|
||||
sys.stdout.reconfigure(encoding="utf-8")
|
||||
|
||||
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
s.settimeout(5.0)
|
||||
try:
|
||||
s.connect(("140.44.4.21", 22))
|
||||
banner = s.recv(1024)
|
||||
print(f"RAW BANNER (len={len(banner)}): {repr(banner)}")
|
||||
s.close()
|
||||
except Exception as e:
|
||||
print("Error:", e)
|
||||
|
||||
Reference in New Issue
Block a user