Making a Telnet Honeypot and came up with this error while scanning with nmap
Nmap output
u0_a619@localhost ~> nmap -vvv -Pn -sV 127.0.0.1 Host discovery disabled (-Pn). All addresses will be marked 'up' and scan times may be slower. Starting Nmap 7.92 ( https://nmap.org ) at 2022-11-02 14:16 EDT NSE: Loaded 45 scripts for scanning. Initiating Connect Scan at 14:16 Scanning localhost (127.0.0.1) [1000 ports] Discovered open port 2323/tcp on 127.0.0.1 Increasing send delay for 127.0.0.1 from 0 to 5 due to 88 out of 292 dropped probes since last increase. Increasing send delay for 127.0.0.1 from 5 to 10 due to 11 out of 18 dropped probes since last increase. Increasing send delay for 127.0.0.1 from 10 to 20 due to max_successful_tryno increase to 4 Completed Connect Scan at 14:16, 23.02s elapsed (1000 total ports) Initiating Service scan at 14:16 Scanning 1 service on localhost (127.0.0.1) Completed Service scan at 14:16, 0.00s elapsed (1 service on 1 host) NSE: Script scanning 127.0.0.1. NSE: Starting runlevel 1 (of 2) scan. Initiating NSE at 14:16 Completed NSE at 14:16, 0.00s elapsed NSE: Starting runlevel 2 (of 2) scan. Initiating NSE at 14:16 Completed NSE at 14:16, 0.00s elapsed Nmap scan report for localhost (127.0.0.1) Host is up, received user-set (0.0013s latency). Scanned at 2022-11-02 14:16:12 EDT for 23s Not shown: 999 closed tcp ports (conn-refused) PORT STATE SERVICE REASON VERSION 2323/tcp open tcpwrapped syn-ack
Read data files from: /data/data/com.termux/files/usr/bin/../share/nmap Service detection performed. Please report any incorrect results at https://nmap.org/submit/ . Nmap done: 1 IP address (1 host up) scanned in 23.35 seconds
Nim output
root@localhost ~/d/telnet-honey (main) [1]# ./telnetHoney
telnetHoney.nim(128) telnetHoney telnetHoney.nim(112) main telnetHoney.nim(21) runServer net.nim(1014) bindAddr oserr.nim(95) raiseOSError Error: unhandled exception: Invalid argument Additional info: address: "" port: 2323 [OSError]