1
The error 104 happens when the socket connection got disconnected by the server and then dead socket is being used by the client.
I think in your case this was happened because Django login is involved with http cookies for ‘session-id’ and ‘csrf-token’. Those things are required for properly login. I don’t know how nmap going to handle the http cookies. You could use curl
which has options to add all http
client specifications.
Source:stackexchange.com