This article is a mirror article of machine translation, please click here to jump to the original article.

View: 34384|Reply: 8

[cracked] Graphic tutorial to manually crack the website background password

[Copy link]
Posted on 6/4/2015 6:47:12 PM | | |
Yesterday, I received the asp.net version of the WeChat public platform source code sent to me by a friend.

Today I want to open it and take a look, what's in it, first attach the database to SQL Server 2008,


Then open the project and run crtl+F5 to run the web project, as shown in the following figure:




So, I immediately checked the administrator table dt_manager of the database and found that the administrator account was admin, but I didn't know what the password was encrypted, after all, I was a beginner


1 1 1 admin 77F992940A0EFD8025F5571B133BA6D5 28LH48 Super admin 13800138000       123@qq.com        0 2013-12-04 01:53:36.000 1000000 0 888 12 186 Doesn't tell you NULL 0


First throw it into the md5 website to decrypt it





Mu You found it, tried a few commonly used passwords, such as 123456, admin, 123, admin888, etc., but still couldn't log in


Alas, going to check asp.net source code and finding that it is encrypted as follows:


  1. public Model.manager GetModel(string user_name, string password, bool is_encrypt)
  2.         {
  3.             //检查一下是否需要加密
  4.             if (is_encrypt)
  5.             {
  6.                 //先取得该用户的随机密钥
  7.                 string salt = dal.GetSalt(user_name);
  8.                 if (string.IsNullOrEmpty(salt))
  9.                 {
  10.                     return null;
  11.                 }
  12.                 //把明文进行加密重新赋值
  13.                 password = DESEncrypt.Encrypt(password, salt);
  14.             }
  15.             return dal.GetModel(user_name, password);
  16.         }
Copy code


Generally speaking, it is first judged that there is a salt value of the user in the user table, and if there is, the password entered by the user and the salt value obtained from the database are used


DESEncrypt encrypted, (I don't know either.)What is DESEncrypt?Then, throw the encrypted password and the user into the dal. GetMode method,


To judge again, there is a select statement in the method, and the code is as follows:


  1. /// <summary>
  2.         /// 根据用户名密码返回一个实体
  3.         /// </summary>
  4.         public Model.manager GetModel(string user_name, string password)
  5.         {
  6.             StringBuilder strSql = new StringBuilder();

  7.             strSql.Append("select id from " + databaseprefix + "manager");
  8.             strSql.Append(" where user_name=@user_name and password=@password and is_lock=0");
  9.             SqlParameter[] parameters = {
  10.                     new SqlParameter("@user_name", SqlDbType.NVarChar,100),
  11.                     new SqlParameter("@password", SqlDbType.NVarChar,100)};
  12.             parameters[0].Value = user_name;
  13.             parameters[1].Value = password;

  14.             object obj = DbHelperSQL.GetSingle(strSql.ToString(), parameters);
  15.             if (obj != null)
  16.             {
  17.                 return GetModel(Convert.ToInt32(obj));
  18.             }
  19.             return null;
  20.         }
Copy code


I don't know how to decrypt this thing, so I'll replace the encrypted password from the database! Rattle


C# sets a breakpoint in the password place, as shown in the following figure:




Gack, the ciphertext after getting 123456 encryption is EB51565598856A17, and decisively go to the database to replace it with the update statement




Login successful!




Previous:Solution for SQL Server 2008 5120 error in attachment database
Next:Failed to copy "obj\x86\Debug\" to "bin\Debug\". After 1000 milliseconds, the 1st retry begins.
 Landlord| Posted on 6/4/2015 6:55:35 PM |


Full screenshot of the background
Posted on 6/4/2015 7:10:15 PM |
Slightly tricky, incomprehensible, learning and learning
Posted on 6/4/2015 7:48:25 PM |
Jining Lao Dao Posted on 2015-6-4 19:10
Slightly tricky, incomprehensible, learning and learning

Brother Dao, this is the WeChat public marketing platform, which can build WeChat stations in batches!!
Posted on 6/5/2015 12:14:39 AM |
Posted on 7/29/2018 4:42:44 PM |
Prompt:Authors are banned or removed content is automatically blocked
Posted on 9/16/2018 12:05:10 PM |
Prompt:Authors are banned or removed content is automatically blocked
Posted on 7/27/2019 3:22:15 PM |
Now I don't know anymore, I have forgotten everything, and I can't understand it
Posted on 6/9/2022 6:40:15 PM |
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com