Password required for logon to telnet and FTP at mini2440 in WinCE

Source: Internet
Author: User

After more than two weeks of entanglement, I was able to log on to telnet at mini2440. The process is painful, and the results of the phase are still reassuring. First, I am confused about my personal experience. Now I am very surprised to summarize the situation.

I used to use yingchuang's telnet debugging habits. At the same time, the Downloading speed was fast, and I also hoped this would happen when I started to be friendly. The default kernel provided by mini2440 already includes telnet and ftp. on the computer, cmd-> telnet 192.168.1.230 to log on. The following dialog box is displayed:

The first time I saw this, I thought that the purpose of protection was intentional, so I had to guess a few and all failed. Search for reasons online,

Http://blog.csdn.net/joyzml article/details/5575620;

Http://blog.csdn.net/gooogleman/article/details/7010170;

I have provided explanations and methods on the Internet. I also draw pictures on the mouse. First of all, check the registry, dizzy, "UseAuthentication" = dword: 0 is equal to zero, so it should not be verified! I am unwilling to change the registry, compile, or not. If I have changed it back, I still cannot. That is depressing! (Confusions 1: Why UseAuthentication "= dword: 0? Do you still need a password !) The figure at the first link to Zhu minglei's eldest brother inspired me. Do I need to set userlist? I have also set several items and set useauthentication to 1. I was so excited that after half a day of compiling the kernel, I had to log on and try again. The user name was there, but what is the password of this guy! So I guess it was another day, ah, it's still fruitless! Ask for help from CSDN. If you are crazy, please forgive me. After cool for a few days, I looked at core again.
The source code for telnet verification in OS, which makes judgment on useauthentication. At that time, there was an impulse to change the source code and jump directly after startup!

Today I found it on msdn.Telnet Server Security description, Http://msdn.microsoft.com/en-us/library/ee499722 (winembedded.60). aspx. After reading it for a long time, I seem to understand it, but I still don't know what the password is! There is a defaultdomain parameter, which should be related to the password. Enter a value in the Registry and log on. No matter what you use! Again disappointed!

In the afternoon, I had a board in my hand. I looked at useauthentication as 0. I logged in when I changed it to 1! Now I have a feeling, because when useauthentication is equal to 0, there is no need for the login name and password. I need to change it to 1. Where is the password and user name ?! Is it set by yourself !!! Aha, I found the function for setting the login name and password online. In NtLmSsp. h and NtLmSsp. Lib, use ntlmsetuserinfo to set the username and password. Code:

Tchar szuser [80], szpassword [80];
Bool bresult;
_ Tcscpy (szuser, _ T ("user "));
_ Tcscpy (szpassword, _t ("123 "));
Bresult = ntlmsetuserinfo (szuser, szpassword );

I have to log on and try again. Hey, you have logged on! Haha, try it on mini2440 right away. OK! Done!

I looked at the NtLmSsp. h description, and there is an enumeration user name. to verify my inference, mini2440 didn't have the user name and password in the system, so I couldn't log on with it.

Tchar user1 [10] [10];
DWORD in = 10;

For (INT I = 0; I <10; I ++)
{
BResult = NTLMEnumUser (I, user1 [I], & in );
In = 10;
}

This is a try. There is only one user!

Note: 1. The password for Logon via telnet is not displayed. I was depressed for a long time.

2. Confusion 1 is not solved. I post a post about the useauthentication value of the registry. Some people say that we need to re-compile BSP with useauthentication = 0. This is not a try yet. Let's summarize it in stages.

3. If you have any problems, please leave a message to correct them.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.