Skip to content
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

password issue in telnet #1

Open
GoogleCodeExporter opened this issue Jun 14, 2015 · 0 comments
Open

password issue in telnet #1

GoogleCodeExporter opened this issue Jun 14, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant