PHP Classes

Mystery of the captcha not appearing... SOLVED

Recommend this page to a friend!

      Noblesse CMS  >  All threads  >  Mystery of the captcha not...  >  (Un) Subscribe thread alerts  
Subject:Mystery of the captcha not...
Summary:Why not Include a .ttf font file?
Messages:3
Author:john barker
Date:2015-09-29 18:47:42
 

  1. Mystery of the captcha not...   Reply   Report abuse  
Picture of john barker john barker - 2015-09-29 18:47:42
In trying to hack this and disable the captcha, which wasn't too hard:
/application/models/admincp/login.php
disable lines 16-20 (disables Exception for Captcha)

Login didn't work. No errors thrown and login fields cleared out.

So digging further, check out:
/includes/Captcha.php

Now check out line 61:
$font_file = ROOT_PATH . 'uploads/Erik Raude.ttf';

Okay, go to /uploads

THERE IS NO FILE CALLED "Erik Raude.ttf" !!!! So the captcha is blank since there... is no font file to generate a captcha image.

So toss in any old .ttf that you know works.

You'll get 6 numbers in 4 different colors. Pretty easy to read. Hey, you can read the Captcha now.

AND THE LOGIN STILL DOES NOT WORK. Sorry, I'm done with this one.

  2. Re: Mystery of the captcha not...   Reply   Report abuse  
Picture of richard marcus richard marcus - 2015-10-05 08:19:24 - In reply to message 1 from john barker
Well done! I'm giving up as well. Without any docs or tips I've exhausted my limited capanilities.

  3. Re: Mystery of the captcha not...   Reply   Report abuse  
Picture of richard marcus richard marcus - 2015-11-20 11:20:13 - In reply to message 2 from richard marcus
Many thanks for the tip. I managed to see the captcha by inserting a georia.ttf . Got past the admincp login page and was brought face-to-face with a display of a whole load of options! Still no documentation. What next?