Home >Backend Development >PHP Tutorial >Introduction to cracking method of PHP Zend encrypted files_PHP tutorial

Introduction to cracking method of PHP Zend encrypted files_PHP tutorial

WBOY
WBOYOriginal
2016-07-15 13:34:131372browse

If you want to crack

PHP Zend encrypted files related codes:

  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 ) == "to" )
  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 relevant code examples for cracking PHP Zend encrypted files are written here.


www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/446000.htmlTechArticleIf you want to crack the relevant code for PHP Zend encrypted files: functionsend_confirm($user_id) { $ result = mysql_query (select * fromuserwhere id =.$user_id); if(mysql_num_rows($result)=...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn