Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 12/23/2020 in all areas

  1. Create a file named ini-custom.inc.php. Using a programmer's text editor, the contents of this file will be: <?php if( ( (isset($_GET['seo_path']) && $_GET['seo_path'] == "register") || (isset($_GET['_a']) && $_GET['_a'] == "register") ) && !empty($_POST['first_name']) && !empty($_POST['last_name']) && ( (!empty($_POST['phone']) && $_POST['phone']=="123456") || //preg_match('/[A-Z]\z/',trim($_POST['first_name']))===preg_match('/[A-Z]\z/',trim($_POST['last_name'])) (ctype_upper(substr(trim($_POST['first_name']),-2)) && ctype_upper(substr(trim($_POST['last_name']),-2))) || !empty($_GET['agreed']) ) ) exit; // Kills PHP leaving browser with white screen It seems this robot always submits a first name and last name with the last character the same (Latin encoding) and capitalized. It also seems to include agreed=true in the querystring - which is not part of CubeCart. Edit: It seems the preg_match isn't consistently giving what I expected. It worked in some places, but not in other places. So, comment out that line and use the ctype_upper version of that statement.
    1 point
×
×
  • Create New...