Answer the question
In order to leave comments, you need to log in
Write a port scanner program + check scan with logs?
I got the following task: Write a port scanner program + scan check with
saving logs (from which address, when and on which port
they knocked). Everything is clear with the port scanner, you can just try to connect from each port, but with the second part it’s not quite how to collect some statistics from the ports? Tell me where to dig. Thanks in advance!
Answer the question
In order to leave comments, you need to log in
Logs can generally be written to log.txt, you can create a table in sqlite and drop them there.
Check out the java.util.logging package and the Log4j, slf4j, and Logback libraries.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question