12 lines
336 B
Python
12 lines
336 B
Python
|
|
|
|
|
|
if __name__ == '__main__':
|
|
start_index = 5555
|
|
end_index = 5734
|
|
start_ip_subfix = 3
|
|
for index,item in enumerate(range(start_index, end_index + 1)):
|
|
print('START TRANSACTION;')
|
|
print(f"UPDATE port_keys SET out_ip = '45.86.235.{start_ip_subfix + index}' WHERE `port` = {item};")
|
|
print('COMMIT;')
|