D
D
Dmitryi202018-05-01 17:21:25
Java
Dmitryi20, 2018-05-01 17:21:25

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

2 answer(s)
K
Konstantin Malyarov, 2018-05-01
@Konstantin18ko

Logs can generally be written to log.txt, you can create a table in sqlite and drop them there.

S
Sergey Gornostaev, 2018-05-01
@sergey-gornostaev

Check out the java.util.logging package and the Log4j, slf4j, and Logback libraries.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question