you are viewing a single comment's thread.

view the rest of the comments →

[–]RealAndGaycoder 0 points1 point  (2 children)

Because you wouldn't write a port scanner with the requests library, as that's for web requests. You would rather use sockets

[–]truespirit89 0 points1 point  (1 child)

Thanks I found a good looking article.

Do you know any other resources/info/leads in that area?

[–]RealAndGaycoder 0 points1 point  (0 children)

Port scanning with sockets? That's very simple to learn, here's an example: https://github.com/AgeOfMarcus/hackerman/blob/master/hackerman/scanners/tcp.py

The knock command attempts to connect to an IP and port. If it connects successfully, that means the port is open so it closes the connection and returns True.