How do \r in lua ? This my code :
for port = 1, 65535 do
local sock = socket.tcp()
local scan = sock:connect("192.168.88.1", port)
sock:close()
if scan then
print("[\27[1m\27[91m+\27[0m] " .. port .. "")
print("Scanning...\r")
end
end
and the result:
[+] 21
Scanning...
[+] 22
Scanning...
[+] 23
Scanning...
[+] 53
Scanning...
[+] 80
Scanning...
[+] 2000
Scanning...
[+] 8291
Scanning...
[+] 8728
Scanning...
[+] 8729
Scanning...
and I want that as soon as a port is displayed the scanning...
is erased and reappears at the end so just after the port.
I can't find much documentation on lua, sorry
i try all the print(en="\r") but it's not fine.