The code corresponds to some scripts made as PoC for a TFM, where a special case of SQLi is analyzed, and used to enumerate hosts/ports of the DBMS local network. There are two versions of every DBMS PoC, one permits to scan an entire network range (rest of the code is the same).-