PHPZend encryption file cracking method _ PHP Tutorial

Source: Internet
Author: User
PHPZend encryption file cracking method introduction. If you want to crack the PHPZend Encryption File: functionsend_confirm ($ user_id) {$ resultmysql_query (select * fromuserwhereid. $ user_id); if (mysql_num_rows ($ result)

PHP Zend encryption file cracking code:

  1. Function send_confirm ($ user_id)
  2. {
  3. $ Result = mysql_query ("select *
    From user where id = ". $ user_id );
  4. If (mysql_num_rows ($ result) = 1)
  5. {
  6. $ User_row = mysql_fetch_assoc ($ result );
  7. }
  8. $ Mtemplate = $ this->Config [reg_template];
  9. $ Mtemplate = preg_replace ("/\ [link \]
    /I ", $ this->Config [http_link]. ("confirm.
    Php? Id = ". $ user_id." & key = "). $ user_row
    [Confirm], $ mtemplate );
  10. $ Mtemplate = preg_replace ("/\ [email \]
    /I ", $ user_row [email], $ mtemplate );
  11. $ Mtemplate = preg_replace ("/\ [login \]
    /I ", $ user_row [login], $ mtemplate );
  12. $ Mail_params = array ();
  13. List ($ mheader, $ mail_params [body]) =
    Split ("rnrn", $ mtemplate, 2 );
  14. $ Mheaders = split ("rn", $ mheader );
  15. Foreach ($ mheaders as $ m_row)
  16. {
  17. List ($ key, $ val) = split (":", $ m_row, 2 );
  18. If (strtolower ($ key) = "")
  19. {
  20. $ Mail_params [to] = ltrim ($ val );
  21. }
  22. Else if (strtolower ($ key) = "subject ")
  23. {
  24. $ Mail_params [subject] = ltrim ($ val );
  25. }
  26. Else
  27. {
  28. $ Mail_params [headers]. = "{$ key}:". ltrim
    ($ Val). "rn ";
  29. }
  30. }
  31. Return mail ($ mail_params [to], $ mail_params
    [Subject], $ mail_params [body], $ mail_params [headers]);
  32. }

The code example of PHP Zend encryption file cracking is written here.


Code related to cracking the zoophp Zend encrypted file: functionsend_confirm ($ user_id) {$ result = mysql_query (select * fromuserwhere id =. $ user_id); if (mysql_num_rows ($ result) =...

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.