New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eggdrop doesn't finsish DNS resolving an incoming telnet connection #1174
Comments
|
Reference #1175 |
|
i have the exact same issue.. after a while i get this: Lost connection while resolving hostname [1.2.3.4/52680] When i connect multiple times with putty, the connection comes back and everything works again. |
|
try set |
|
Short comment: the proposed solution doesn't work for me. Only one doesn't reproduce the bug, but it's on a raspberry (raspbien / home eggdrop). All others (debian / 2 different shells) have the bug, no matter if they are on a botnet or not. |
|
Has anyone seen this behavior in an eggdrop running tdns, or without the DNS module? If, no, I'm going to close this issue, we believe is fixed with the tdns capability. |
|
I forget to coment the loadmodule dns on my eggdrops 1.9.2. Edit: the bug alway exists with eggdrop 1.9.2 and Threaded DNS core enabled |
…request was pending. Fixes #1174 In a host->IP scenario, devent_t contains a malloc'd copy of the hostname. In the IP->host scenario however, devent_t contained an outside allocated pointer to ip_addr (sockname_t). In the Tcl case it was embedded in the tclinfo structure, but in the DCC case it pointed to the idx information in dcc[i]. "Lost connection" wipes that idx info and invalidates it, invalidating the information about the pending dns request. That would then get stuck with invalid data. As soon as the idx is re-used however, the address is overwritten by answer(), and dns thinks it already sent a request for that IP, also it gets stuck. The fix treats IP->host the same as host->IP and dynamically allocates the IP as it does with the hostname. Found by: DasBrain, ERR1R, CrazyCat Patch by: thommey
…request was pending. Fixes #1174 (#1319) Found by: DasBrain, ERR1R, CrazyCat Patch by: thommey Fixes: #1174 #1175 In a host->IP scenario, devent_t contains a malloc'd copy of the hostname. In the IP->host scenario however, devent_t contained an outside allocated pointer to ip_addr (sockname_t). In the Tcl case it was embedded in the tclinfo structure, but in the DCC case it pointed to the idx information in dcc[i]. "Lost connection" wipes that idx info and invalidates it, invalidating the information about the pending dns request. That would then get stuck with invalid data. As soon as the idx is re-used however, the address is overwritten by answer(), and dns thinks it already sent a request for that IP, also it gets stuck. The fix treats IP->host the same as host->IP and dynamically allocates the IP as it does with the hostname.
DasBrain commentedJun 13, 2021
•
edited
As user, you won't see any password prompt, but the telnet connection is established.
User input is ignored, no banner is shown.
When the connection is closed by the client (Ctrl++, Q), then a "Lost connection while resolving hostname" line will be logged.
Log from my bot with
.console +d(IP redacted.)
This happens spontaneously, no known way to reproduce.
It also sometimes fixes itself.
Eggdrop version: 1.9.0, dns module, no tdns.
The text was updated successfully, but these errors were encountered: