Linux web-conference.aiou.edu.pk 5.4.0-204-generic #224-Ubuntu SMP Thu Dec 5 13:38:28 UTC 2024 x86_64
Apache/2.4.41 (Ubuntu)
: 172.16.50.247 | : 18.188.131.48
Cant Read [ /etc/named.conf ]
7.4.3-4ubuntu2.28
appadmin
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
BLACK DEFEND!
README
+ Create Folder
+ Create File
/
usr /
include /
nodejs /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
aliased_buffer.h
6.42
KB
-rw-r--r--
async_wrap-inl.h
3.33
KB
-rw-r--r--
async_wrap.h
9.16
KB
-rw-r--r--
base64.h
5.82
KB
-rw-r--r--
base_object-inl.h
4.02
KB
-rw-r--r--
base_object.h
4.43
KB
-rw-r--r--
connect_wrap.h
617
B
-rw-r--r--
connection_wrap.h
699
B
-rw-r--r--
debug_utils.h
4.29
KB
-rw-r--r--
env-inl.h
30.64
KB
-rw-r--r--
env.h
46.48
KB
-rw-r--r--
handle_wrap.h
3.91
KB
-rw-r--r--
inspector_agent.h
4.13
KB
-rw-r--r--
inspector_io.h
2.63
KB
-rw-r--r--
inspector_socket.h
1.46
KB
-rw-r--r--
inspector_socket_server.h
3.21
KB
-rw-r--r--
js_stream.h
1.58
KB
-rw-r--r--
memory_tracker-inl.h
10.83
KB
-rw-r--r--
memory_tracker.h
9.96
KB
-rw-r--r--
module_wrap.h
3.07
KB
-rw-r--r--
node.h
35.16
KB
-rw-r--r--
node_api.h
35.44
KB
-rw-r--r--
node_api_types.h
4.16
KB
-rw-r--r--
node_buffer.h
3.4
KB
-rw-r--r--
node_code_cache.h
432
B
-rw-r--r--
node_constants.h
3.11
KB
-rw-r--r--
node_context_data.h
1.14
KB
-rw-r--r--
node_contextify.h
4.81
KB
-rw-r--r--
node_counters.h
2.37
KB
-rw-r--r--
node_crypto.h
23.92
KB
-rw-r--r--
node_crypto_bio.h
5.44
KB
-rw-r--r--
node_crypto_clienthello-inl.h
2.62
KB
-rw-r--r--
node_crypto_clienthello.h
4
KB
-rw-r--r--
node_crypto_groups.h
23.12
KB
-rw-r--r--
node_dtrace.h
2.91
KB
-rw-r--r--
node_errors.h
6.06
KB
-rw-r--r--
node_file.h
10.16
KB
-rw-r--r--
node_http2.h
47.76
KB
-rw-r--r--
node_http2_state.h
4.72
KB
-rw-r--r--
node_i18n.h
2.4
KB
-rw-r--r--
node_internals.h
28.47
KB
-rw-r--r--
node_javascript.h
1.72
KB
-rw-r--r--
node_messaging.h
8.38
KB
-rw-r--r--
node_mutex.h
4.42
KB
-rw-r--r--
node_object_wrap.h
3.7
KB
-rw-r--r--
node_options-inl.h
14.78
KB
-rw-r--r--
node_options.h
12.25
KB
-rw-r--r--
node_perf.h
3.64
KB
-rw-r--r--
node_perf_common.h
3
KB
-rw-r--r--
node_persistent.h
936
B
-rw-r--r--
node_platform.h
5.14
KB
-rw-r--r--
node_revert.h
2.21
KB
-rw-r--r--
node_root_certs.h
223.29
KB
-rw-r--r--
node_stat_watcher.h
2.15
KB
-rw-r--r--
node_url.h
6.16
KB
-rw-r--r--
node_version.h
3.79
KB
-rw-r--r--
node_watchdog.h
3.03
KB
-rw-r--r--
node_win32_etw_provider-inl.h
11.67
KB
-rw-r--r--
node_win32_etw_provider.h
3.67
KB
-rw-r--r--
node_win32_perfctr_provider.h
2.14
KB
-rw-r--r--
node_worker.h
2.88
KB
-rw-r--r--
pipe_wrap.h
2.62
KB
-rw-r--r--
req_wrap-inl.h
5.44
KB
-rw-r--r--
req_wrap.h
1.87
KB
-rw-r--r--
sharedarraybuffer_metadata.h
2.34
KB
-rw-r--r--
spawn_sync.h
6.82
KB
-rw-r--r--
stream_base-inl.h
14.08
KB
-rw-r--r--
stream_base.h
13.46
KB
-rw-r--r--
stream_pipe.h
2
KB
-rw-r--r--
stream_wrap.h
4.03
KB
-rw-r--r--
string_bytes.h
5.14
KB
-rw-r--r--
string_decoder-inl.h
876
B
-rw-r--r--
string_decoder.h
1.5
KB
-rw-r--r--
string_search.h
20.53
KB
-rw-r--r--
tcp_wrap.h
3.59
KB
-rw-r--r--
tls_wrap.h
6.61
KB
-rw-r--r--
tty_wrap.h
2.22
KB
-rw-r--r--
udp_wrap.h
4.12
KB
-rw-r--r--
util-inl.h
14.06
KB
-rw-r--r--
util.h
15.9
KB
-rw-r--r--
v8abbr.h
5.03
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : node_options-inl.h
#ifndef SRC_NODE_OPTIONS_INL_H_ #define SRC_NODE_OPTIONS_INL_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "node_options.h" #include "util.h" #include <cstdlib> namespace node { PerIsolateOptions* PerProcessOptions::get_per_isolate_options() { return per_isolate.get(); } DebugOptions* EnvironmentOptions::get_debug_options() { return debug_options.get(); } EnvironmentOptions* PerIsolateOptions::get_per_env_options() { return per_env.get(); } namespace options_parser { template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, bool Options::* field, OptionEnvvarSettings env_setting) { options_.emplace(name, OptionInfo{kBoolean, std::make_shared<SimpleOptionField<bool>>(field), env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, uint64_t Options::* field, OptionEnvvarSettings env_setting) { options_.emplace( name, OptionInfo{kUInteger, std::make_shared<SimpleOptionField<uint64_t>>(field), env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, int64_t Options::* field, OptionEnvvarSettings env_setting) { options_.emplace( name, OptionInfo{kInteger, std::make_shared<SimpleOptionField<int64_t>>(field), env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, std::string Options::* field, OptionEnvvarSettings env_setting) { options_.emplace( name, OptionInfo{kString, std::make_shared<SimpleOptionField<std::string>>(field), env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption( const char* name, const char* help_text, std::vector<std::string> Options::* field, OptionEnvvarSettings env_setting) { options_.emplace(name, OptionInfo { kStringList, std::make_shared<SimpleOptionField<std::vector<std::string>>>(field), env_setting, help_text }); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, HostPort Options::* field, OptionEnvvarSettings env_setting) { options_.emplace( name, OptionInfo{kHostPort, std::make_shared<SimpleOptionField<HostPort>>(field), env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, NoOp no_op_tag, OptionEnvvarSettings env_setting) { options_.emplace(name, OptionInfo{kNoOp, nullptr, env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddOption(const char* name, const char* help_text, V8Option v8_option_tag, OptionEnvvarSettings env_setting) { options_.emplace(name, OptionInfo{kV8Option, nullptr, env_setting, help_text}); } template <typename Options> void OptionsParser<Options>::AddAlias(const char* from, const char* to) { aliases_[from] = { to }; } template <typename Options> void OptionsParser<Options>::AddAlias(const char* from, const std::vector<std::string>& to) { aliases_[from] = to; } template <typename Options> void OptionsParser<Options>::AddAlias( const char* from, const std::initializer_list<std::string>& to) { AddAlias(from, std::vector<std::string>(to)); } template <typename Options> void OptionsParser<Options>::Implies(const char* from, const char* to) { auto it = options_.find(to); CHECK_NE(it, options_.end()); CHECK_EQ(it->second.type, kBoolean); implications_.emplace(from, Implication { std::static_pointer_cast<OptionField<bool>>(it->second.field), true }); } template <typename Options> void OptionsParser<Options>::ImpliesNot(const char* from, const char* to) { auto it = options_.find(to); CHECK_NE(it, options_.end()); CHECK_EQ(it->second.type, kBoolean); implications_.emplace(from, Implication { std::static_pointer_cast<OptionField<bool>>(it->second.field), false }); } template <typename Options> template <typename OriginalField, typename ChildOptions> auto OptionsParser<Options>::Convert( std::shared_ptr<OriginalField> original, ChildOptions* (Options::* get_child)()) { // If we have a field on ChildOptions, and we want to access it from an // Options instance, we call get_child() on the original Options and then // access it, i.e. this class implements a kind of function chaining. struct AdaptedField : BaseOptionField { void* LookupImpl(Options* options) const override { return original->LookupImpl((options->*get_child)()); } AdaptedField( std::shared_ptr<OriginalField> original, ChildOptions* (Options::* get_child)()) : original(original), get_child(get_child) {} std::shared_ptr<OriginalField> original; ChildOptions* (Options::* get_child)(); }; return std::shared_ptr<BaseOptionField>( new AdaptedField(original, get_child)); } template <typename Options> template <typename ChildOptions> auto OptionsParser<Options>::Convert( typename OptionsParser<ChildOptions>::OptionInfo original, ChildOptions* (Options::* get_child)()) { return OptionInfo{original.type, Convert(original.field, get_child), original.env_setting, original.help_text}; } template <typename Options> template <typename ChildOptions> auto OptionsParser<Options>::Convert( typename OptionsParser<ChildOptions>::Implication original, ChildOptions* (Options::* get_child)()) { return Implication { std::static_pointer_cast<OptionField<bool>>( Convert(original.target_field, get_child)), original.target_value }; } template <typename Options> template <typename ChildOptions> void OptionsParser<Options>::Insert( OptionsParser<ChildOptions>* child_options_parser, ChildOptions* (Options::* get_child)()) { aliases_.insert(child_options_parser->aliases_.begin(), child_options_parser->aliases_.end()); for (const auto& pair : child_options_parser->options_) options_.emplace(pair.first, Convert(pair.second, get_child)); for (const auto& pair : child_options_parser->implications_) implications_.emplace(pair.first, Convert(pair.second, get_child)); } inline std::string NotAllowedInEnvErr(const std::string& arg) { return arg + " is not allowed in NODE_OPTIONS"; } inline std::string RequiresArgumentErr(const std::string& arg) { return arg + " requires an argument"; } // We store some of the basic information around a single Parse call inside // this struct, to separate storage of command line arguments and their // handling. In particular, this makes it easier to introduce 'synthetic' // arguments that get inserted by expanding option aliases. struct ArgsInfo { // Generally, the idea here is that the first entry in `*underlying` stores // the "0th" argument (the program name), then `synthetic_args` are inserted, // followed by the remainder of `*underlying`. std::vector<std::string>* underlying; std::vector<std::string> synthetic_args; std::vector<std::string>* exec_args; ArgsInfo(std::vector<std::string>* args, std::vector<std::string>* exec_args) : underlying(args), exec_args(exec_args) {} size_t remaining() const { // -1 to account for the program name. return underlying->size() - 1 + synthetic_args.size(); } bool empty() const { return remaining() == 0; } const std::string& program_name() const { return underlying->at(0); } std::string& first() { return synthetic_args.empty() ? underlying->at(1) : synthetic_args.front(); } std::string pop_first() { std::string ret = std::move(first()); if (synthetic_args.empty()) { // Only push arguments to `exec_args` that were also originally passed // on the command line (i.e. not generated through alias expansion). // '--' is a special case here since its purpose is to end `exec_argv`, // which is why we do not include it. if (exec_args != nullptr && ret != "--") exec_args->push_back(ret); underlying->erase(underlying->begin() + 1); } else { synthetic_args.erase(synthetic_args.begin()); } return ret; } }; template <typename Options> void OptionsParser<Options>::Parse( std::vector<std::string>* const orig_args, std::vector<std::string>* const exec_args, std::vector<std::string>* const v8_args, Options* const options, OptionEnvvarSettings required_env_settings, std::vector<std::string>* const errors) { ArgsInfo args(orig_args, exec_args); // The first entry is the process name. Make sure it ends up in the V8 argv, // since V8::SetFlagsFromCommandLine() expects that to hold true for that // array as well. if (v8_args->empty()) v8_args->push_back(args.program_name()); while (!args.empty() && errors->empty()) { if (args.first().size() <= 1 || args.first()[0] != '-') break; // We know that we're either going to consume this // argument or fail completely. const std::string arg = args.pop_first(); if (arg == "--") { if (required_env_settings == kAllowedInEnvironment) errors->push_back(NotAllowedInEnvErr("--")); break; } // Only allow --foo=bar notation for options starting with double dashes. // (E.g. -e=a is not allowed as shorthand for --eval=a, which would // otherwise be the result of alias expansion.) const std::string::size_type equals_index = arg[0] == '-' && arg[1] == '-' ? arg.find('=') : std::string::npos; std::string name = equals_index == std::string::npos ? arg : arg.substr(0, equals_index); // Store the 'original name' of the argument. This name differs from // 'name' in that it contains a possible '=' sign and is not affected // by alias expansion. std::string original_name = name; if (equals_index != std::string::npos) original_name += '='; // Normalize by replacing `_` with `-` in options. for (std::string::size_type i = 2; i < name.size(); ++i) { if (name[i] == '_') name[i] = '-'; } { auto it = aliases_.end(); // Expand aliases: // - If `name` can be found in `aliases_`. // - If `name` + '=' can be found in `aliases_`. // - If `name` + " <arg>" can be found in `aliases_`, and we have // a subsequent argument that does not start with '-' itself. while ((it = aliases_.find(name)) != aliases_.end() || (equals_index != std::string::npos && (it = aliases_.find(name + '=')) != aliases_.end()) || (!args.empty() && !args.first().empty() && args.first()[0] != '-' && (it = aliases_.find(name + " <arg>")) != aliases_.end())) { const std::string prev_name = std::move(name); const std::vector<std::string>& expansion = it->second; // Use the first entry in the expansion as the new 'name'. name = expansion.front(); if (expansion.size() > 1) { // The other arguments, if any, are going to be handled later. args.synthetic_args.insert( args.synthetic_args.begin(), expansion.begin() + 1, expansion.end()); } if (name == prev_name) break; } } auto it = options_.find(name); if ((it == options_.end() || it->second.env_setting == kDisallowedInEnvironment) && required_env_settings == kAllowedInEnvironment) { errors->push_back(NotAllowedInEnvErr(original_name)); break; } if (it == options_.end()) { v8_args->push_back(arg); continue; } { auto implications = implications_.equal_range(name); for (auto it = implications.first; it != implications.second; ++it) *it->second.target_field->Lookup(options) = it->second.target_value; } const OptionInfo& info = it->second; std::string value; if (info.type != kBoolean && info.type != kNoOp && info.type != kV8Option) { if (equals_index != std::string::npos) { value = arg.substr(equals_index + 1); if (value.empty()) { missing_argument: errors->push_back(RequiresArgumentErr(original_name)); break; } } else { if (args.empty()) goto missing_argument; value = args.pop_first(); if (!value.empty() && value[0] == '-') { goto missing_argument; } else { if (!value.empty() && value[0] == '\\' && value[1] == '-') value = value.substr(1); // Treat \- as escaping an -. } } } switch (info.type) { case kBoolean: *Lookup<bool>(info.field, options) = true; break; case kInteger: *Lookup<int64_t>(info.field, options) = std::atoll(value.c_str()); break; case kUInteger: *Lookup<uint64_t>(info.field, options) = std::stoull(value.c_str()); break; case kString: *Lookup<std::string>(info.field, options) = value; break; case kStringList: Lookup<std::vector<std::string>>(info.field, options) ->emplace_back(std::move(value)); break; case kHostPort: Lookup<HostPort>(info.field, options) ->Update(SplitHostPort(value, errors)); break; case kNoOp: break; case kV8Option: v8_args->push_back(arg); break; default: UNREACHABLE(); } } options->CheckOptions(errors); } } // namespace options_parser } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_NODE_OPTIONS_INL_H_
Close