Linux anchor 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64
Apache/2.4.18 (Ubuntu)
Server IP : 10.10.100.4 & Your IP : 216.73.217.150
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
backup /
extensions /
ConfirmEdit /
Delete
Unzip
Name
Size
Permission
Date
Action
Captcha.php
25.3
KB
-rw-r--r--
2011-04-24 19:33
CaptchaStore.php
2.29
KB
-rw-r--r--
2011-04-24 18:49
ConfirmEdit.alias.php
1.8
KB
-rw-r--r--
2011-05-14 02:11
ConfirmEdit.i18n.php
381.17
KB
-rw-r--r--
2011-07-13 21:43
ConfirmEdit.php
8.46
KB
-rw-r--r--
2011-09-13 02:21
ConfirmEditHooks.php
2
KB
-rw-r--r--
2011-04-24 13:41
FancyCaptcha.class.php
6.63
KB
-rw-r--r--
2012-01-03 20:34
FancyCaptcha.i18n.php
132.9
KB
-rw-r--r--
2011-07-18 22:05
FancyCaptcha.php
1.75
KB
-rw-r--r--
2010-08-29 15:31
HTMLCaptchaField.php
2.37
KB
-rw-r--r--
2011-04-24 13:47
MathCaptcha.class.php
1.79
KB
-rw-r--r--
2011-07-13 01:11
MathCaptcha.php
512
B
-rw-r--r--
2010-06-06 17:12
QuestyCaptcha.class.php
2.05
KB
-rw-r--r--
2012-01-03 20:34
QuestyCaptcha.i18n.php
100.98
KB
-rw-r--r--
2011-07-11 21:37
QuestyCaptcha.php
1.8
KB
-rw-r--r--
2011-02-09 00:39
README
1.21
KB
-rw-r--r--
2011-09-13 02:21
ReCaptcha.i18n.php
31.76
KB
-rw-r--r--
2011-07-13 21:43
ReCaptcha.php
3.78
KB
-rw-r--r--
2011-09-29 23:37
captcha.py
7.66
KB
-rw-r--r--
2010-06-21 15:45
recaptchalib.php
9.68
KB
-rw-r--r--
2011-09-29 23:37
Save
Rename
<?php /** * Captcha class using the reCAPTCHA widget. * Stop Spam. Read Books. * * @addtogroup Extensions * @author Mike Crawford <mike.crawford@gmail.com> * @copyright Copyright (c) 2007 reCAPTCHA -- http://recaptcha.net * @licence MIT/X11 */ if( !defined( 'MEDIAWIKI' ) ) { exit; } $wgExtensionMessagesFiles['ReCaptcha'] = dirname( __FILE__ ) . '/ReCaptcha.i18n.php'; require_once( 'recaptchalib.php' ); // Set these in LocalSettings.php $wgReCaptchaPublicKey = ''; $wgReCaptchaPrivateKey = ''; // For backwards compatibility $recaptcha_public_key = ''; $recaptcha_private_key = ''; $wgExtensionFunctions[] = 'efReCaptcha'; /** * Make sure the keys are defined. */ function efReCaptcha() { global $wgReCaptchaPublicKey, $wgReCaptchaPrivateKey; global $recaptcha_public_key, $recaptcha_private_key; global $wgServerName; // Backwards compatibility if ( $wgReCaptchaPublicKey == '' ) { $wgReCaptchaPublicKey = $recaptcha_public_key; } if ( $wgReCaptchaPrivateKey == '' ) { $wgReCaptchaPrivateKey = $recaptcha_private_key; } if ($wgReCaptchaPublicKey == '' || $wgReCaptchaPrivateKey == '') { die ('You need to set $wgReCaptchaPrivateKey and $wgReCaptchaPublicKey in LocalSettings.php to ' . "use the reCAPTCHA plugin. You can sign up for a key <a href='" . htmlentities(recaptcha_get_signup_url ($wgServerName, "mediawiki")) . "'>here</a>."); } } class ReCaptcha extends SimpleCaptcha { //reCAPTHCA error code returned from recaptcha_check_answer private $recaptcha_error = null; /** * Displays the reCAPTCHA widget. * If $this->recaptcha_error is set, it will display an error in the widget. * */ function getForm() { global $wgReCaptchaPublicKey; $useHttps = ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == 'on' ); return "<script>var RecaptchaOptions = { tabindex : 1 }; </script> " . recaptcha_get_html($wgReCaptchaPublicKey, $this->recaptcha_error, $useHttps); } /** * Calls the library function recaptcha_check_answer to verify the users input. * Sets $this->recaptcha_error if the user is incorrect. * @return boolean * */ function passCaptcha() { global $wgReCaptchaPrivateKey; $recaptcha_response = recaptcha_check_answer ($wgReCaptchaPrivateKey, wfGetIP (), $_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field']); if (!$recaptcha_response->is_valid) { $this->recaptcha_error = $recaptcha_response->error; return false; } $recaptcha_error = null; return true; } /** * Called on all edit page saves. (EditFilter events) * @return boolean - true if page save should continue, false if should display Captcha widget. */ function confirmEdit( $editPage, $newtext, $section, $merged = false ) { if( $this->shouldCheck( $editPage, $newtext, $section ) ) { if (!isset($_POST['recaptcha_response_field'])) { //User has not yet been presented with Captcha, show the widget. $editPage->showEditForm( array( &$this, 'editCallback' ) ); return false; } if( $this->passCaptcha() ) { return true; } else { //Try again - show the widget $editPage->showEditForm( array( &$this, 'editCallback' ) ); return false; } } else { wfDebug( "ConfirmEdit: no need to show captcha.\n" ); return true; } } /** * Show a message asking the user to enter a captcha on edit * The result will be treated as wiki text * * @param $action Action being performed * @return string */ function getMessage( $action ) { $name = 'recaptcha-' . $action; $text = wfMsg( $name ); # Obtain a more tailored message, if possible, otherwise, fall back to # the default for edits return wfEmptyMsg( $name, $text ) ? wfMsg( 'recaptcha-edit' ) : $text; } }