403Webshell
Server IP : 195.130.67.5  /  Your IP : 216.73.217.154
Web Server : Microsoft-IIS/10.0
System : Windows NT WEBSERVER1 10.0 build 17763 (Windows Server 2016) i586
User : IUSR ( 0)
PHP Version : 7.4.19
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /inetpub/wwwroot/icd/components/com_attachments/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /inetpub/wwwroot/icd/components/com_attachments//fsockopen5.php
<?php
/**
 * Attachments component
 *
 * @package Attachments
 * @subpackage Attachments_Component
 *
 * @copyright Copyright (C) 2007-2011 Jonathan M. Cameron, All Rights Reserved
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link http://joomlacode.org/gf/project/attachments/frs/
 * @author Jonathan M. Cameron
 */

defined('_JEXEC') or die('Restricted access');

/**
 * Call the fsockopen() function and catch any errors
 *
 * NOTE: The reason this function is in a separate file is because it contains
 *		 PHP5-specific code (the try/catch).  In order run in PHP 4, this file
 *		 is not included('require_once') and therefore does not cause trouble.
 *
 * @param &object &$u the URL info object
 * @param &object &$errno for the fsockopen() call to return the error number
 * @param &string &$errstr for the fsockopen() call to return the error string
 * @param int $timeout number of seconds for fsockopen() to allow
 * @param bool $verify whether the existance of the URL should be checked
 *
 * @return $fp is the call was succesful, false if not
 */
function &fsockopen_protected(&$u, &$errno, &$errstr, $timeout, $verify)
{
	set_error_handler(create_function('$a, $b, $c, $d',
									  'throw new Exception("fsockopen error");'), E_ALL);
	try {
		$fp = fsockopen($u->domain, $u->port, $errno, $errstr, $timeout);
		restore_error_handler();
		}
	catch (Exception $e) {
		restore_error_handler();
		if ( $verify ) {
			$u->error = true;
			$u->error_code = 'url_check_exception';
			$u->err_msg = $e->getMessage();
			return false;
			}
		}

	return $fp;
}

?>

Youez - 2016 - github.com/yon3zu
LinuXploit