You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi
I am implemented telnet server in ide keil. every thing is aproximately working fine but password charter are not hidden or * mask. in this telnet.c file open the socket and recive and send function through socket.
suppose we write password(password) on telnet clent. I am try to solve below
code:
c = recv(connect,recv_data_tnet, 1, 0);
if((*recv_data_tnet == 0x0d )||(*recv_data_tnet == 0x0a )){
c = recv_data_tnet[0];
break;
}
else{
int j = 0;
char format_string[20]={0};
for( ; j<=i ; j++){
format_string[j] = '\b';
}
format_string[j] = '*';
printf("format string %s\n", format_string);
send(connect,format_string,j,0);
}
c = recv_data_tnet[0];
pbuffer_tnet[i++] = c;
output: p*s***wd or something like that
please give me advice to implement password on telnet server
Original issue reported on code.google.com by [email protected] on 19 Jun 2014 at 12:29
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 19 Jun 2014 at 12:29The text was updated successfully, but these errors were encountered: