cr4ckc4t / portcat Goto Github PK
View Code? Open in Web Editor NEWA small and very basic TCP SYN port scanner in C
A small and very basic TCP SYN port scanner in C
Problem:
The first version of the code fails to always discover all open ports.
Inspecting the sent and received packets with Wireshark, it appears that although a request for every port is sent, the higher ports miss alot of responses. We get ~68,000 captured packets - 65,535 of which are requests!
Bombarding a machine with requests in such a short timespan (for(i=1; i < 65536; i++)
without any delay) floods the target and eventually leads to missing responses from possibly open ports.
Possible fix:
Add an artificial delay between requests to avoid flooding the target.
Experimenting, it turns out that with a delay of 0.00015s we capture around 131,000 packets (out of at least 131.070 expected) at an approximate overall scan time of 30 seconds.
Essentialy, this means portcat
could still be missing ~100 ports to check. Important. For a quick port checker it may be acceptable though.
Maybe allow for an easy-to-configure delay variable to tune the port-scanner from fast to reliable.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.