How timfadmv/netcat works
Netcat Web provides a browser UI and JSON API for TCP connect, local TCP listen, port scanning, sending messages, and closing connections. The main workflow is browser action → Flask route → NetcatCore operation → TCP socket/result → browser display. Connections are tracked in process memory. The shown excerpts establish the principal calls; README documents the broader feature set, while unsampled templates and core sections limit detail on rendering and internal helper relationships.
Main entry points: netcat_core.py NetcatCore · script.js Web UI · app.py Flask app · templates Interface page
Components 12
Browser interface
- Web UI
static/script.js - Interface page
templates
Web API
- Flask app
app.py
TCP operations
- NetcatCore
netcat_core.py - TCP connect
netcat_core.py - TCP listen
netcat_core.py - Port scanning
netcat_core.py - Send and close
netcat_core.py
Connection state
- Active connections
netcat_core.py
Other components
- User
- Remote TCP host
- Local TCP peer
Connections 16
- User → Web UI: uses
README.md - Web UI → Interface page: loads
- Web UI → Flask app: requests API
static/script.js - Flask app → Web UI: returns results
app.py - Flask app → NetcatCore: dispatches operations
app.py - NetcatCore → TCP connect: provides
netcat_core.py - NetcatCore → TCP listen: provides
netcat_core.py - NetcatCore → Port scanning: provides
netcat_core.py - NetcatCore → Send and close: provides
netcat_core.py - TCP connect → Remote TCP host: opens TCP
netcat_core.py - TCP listen → Local TCP peer: accepts TCP
netcat_core.py - Port scanning → Remote TCP host: probes ports
README.md - TCP connect → Active connections: stores socket
netcat_core.py - TCP listen → Active connections: stores socket
netcat_core.py - Send and close → Active connections: uses and removes
netcat_core.py - Web UI → Remote TCP host: sends messages