Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
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
/
usr /
include /
nodejs /
src /
[ HOME SHELL ]
Name
Size
Permission
Action
aliased_buffer.h
7.91
KB
-rw-r--r--
async_wrap-inl.h
2.96
KB
-rw-r--r--
async_wrap.h
10.07
KB
-rw-r--r--
base64.h
5.57
KB
-rw-r--r--
base_object-inl.h
10.82
KB
-rw-r--r--
base_object.h
11.83
KB
-rw-r--r--
callback_queue-inl.h
2.59
KB
-rw-r--r--
callback_queue.h
1.96
KB
-rw-r--r--
connect_wrap.h
584
B
-rw-r--r--
connection_wrap.h
686
B
-rw-r--r--
debug_utils-inl.h
7.36
KB
-rw-r--r--
debug_utils.h
6.44
KB
-rw-r--r--
diagnosticfilename-inl.h
768
B
-rw-r--r--
env-inl.h
40.44
KB
-rw-r--r--
env.h
65.9
KB
-rw-r--r--
handle_wrap.h
3.98
KB
-rw-r--r--
histogram-inl.h
1.68
KB
-rw-r--r--
histogram.h
2.83
KB
-rw-r--r--
http_parser_adaptor.h
609
B
-rw-r--r--
inspector_agent.h
4.88
KB
-rw-r--r--
inspector_io.h
2.19
KB
-rw-r--r--
inspector_profiler.h
4.53
KB
-rw-r--r--
inspector_socket.h
1.53
KB
-rw-r--r--
inspector_socket_server.h
3.5
KB
-rw-r--r--
js_native_api.h
28.13
KB
-rw-r--r--
js_native_api_types.h
4.14
KB
-rw-r--r--
js_native_api_v8.h
12.23
KB
-rw-r--r--
js_native_api_v8_internals.h
1.28
KB
-rw-r--r--
js_stream.h
1.35
KB
-rw-r--r--
json_utils.h
3.63
KB
-rw-r--r--
memory_tracker-inl.h
11.5
KB
-rw-r--r--
memory_tracker.h
11.23
KB
-rw-r--r--
module_wrap.h
3.1
KB
-rw-r--r--
node.h
43.55
KB
-rw-r--r--
node_api.h
11.41
KB
-rw-r--r--
node_api_types.h
1.62
KB
-rw-r--r--
node_binding.h
3.25
KB
-rw-r--r--
node_buffer.h
3.6
KB
-rw-r--r--
node_constants.h
3.67
KB
-rw-r--r--
node_context_data.h
1.14
KB
-rw-r--r--
node_contextify.h
5.37
KB
-rw-r--r--
node_crypto.h
29.59
KB
-rw-r--r--
node_crypto_bio.h
6.22
KB
-rw-r--r--
node_crypto_clienthello-inl.h
2.6
KB
-rw-r--r--
node_crypto_clienthello.h
4.16
KB
-rw-r--r--
node_crypto_common.h
3.48
KB
-rw-r--r--
node_crypto_groups.h
23.04
KB
-rw-r--r--
node_dir.h
1.31
KB
-rw-r--r--
node_dtrace.h
2.89
KB
-rw-r--r--
node_errors.h
11.89
KB
-rw-r--r--
node_file-inl.h
9.81
KB
-rw-r--r--
node_file.h
12.2
KB
-rw-r--r--
node_http2.h
49.14
KB
-rw-r--r--
node_http2_state.h
4.58
KB
-rw-r--r--
node_http_parser_impl.h
28.9
KB
-rw-r--r--
node_i18n.h
4.3
KB
-rw-r--r--
node_internals.h
13.34
KB
-rw-r--r--
node_main_instance.h
3.05
KB
-rw-r--r--
node_mem-inl.h
3.6
KB
-rw-r--r--
node_mem.h
1.28
KB
-rw-r--r--
node_messaging.h
11.96
KB
-rw-r--r--
node_metadata.h
3.46
KB
-rw-r--r--
node_mutex.h
6.07
KB
-rw-r--r--
node_native_module.h
3.31
KB
-rw-r--r--
node_native_module_env.h
2.33
KB
-rw-r--r--
node_object_wrap.h
3.78
KB
-rw-r--r--
node_options-inl.h
14.68
KB
-rw-r--r--
node_options.h
15.68
KB
-rw-r--r--
node_perf.h
5.21
KB
-rw-r--r--
node_perf_common.h
2.99
KB
-rw-r--r--
node_platform.h
5.88
KB
-rw-r--r--
node_process.h
1.77
KB
-rw-r--r--
node_report.h
1.35
KB
-rw-r--r--
node_revert.h
2.45
KB
-rw-r--r--
node_root_certs.h
212.59
KB
-rw-r--r--
node_sockaddr-inl.h
4.61
KB
-rw-r--r--
node_sockaddr.h
3.56
KB
-rw-r--r--
node_stat_watcher.h
2.15
KB
-rw-r--r--
node_union_bytes.h
3.2
KB
-rw-r--r--
node_url.h
6.16
KB
-rw-r--r--
node_v8_platform-inl.h
6.19
KB
-rw-r--r--
node_version.h
3.69
KB
-rw-r--r--
node_wasi.h
5.13
KB
-rw-r--r--
node_watchdog.h
4.17
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_worker.h
4.78
KB
-rw-r--r--
pipe_wrap.h
2.67
KB
-rw-r--r--
req_wrap-inl.h
5.4
KB
-rw-r--r--
req_wrap.h
2.22
KB
-rw-r--r--
sharedarraybuffer_metadata.h
2.55
KB
-rw-r--r--
spawn_sync.h
6.87
KB
-rw-r--r--
stream_base-inl.h
9.16
KB
-rw-r--r--
stream_base.h
15.92
KB
-rw-r--r--
stream_pipe.h
2.15
KB
-rw-r--r--
stream_wrap.h
4.03
KB
-rw-r--r--
string_bytes.h
5.59
KB
-rw-r--r--
string_decoder-inl.h
858
B
-rw-r--r--
string_decoder.h
1.5
KB
-rw-r--r--
string_search.h
20.92
KB
-rw-r--r--
tcp_wrap.h
3.65
KB
-rw-r--r--
threadpoolwork-inl.h
2.05
KB
-rw-r--r--
tls_wrap.h
7.88
KB
-rw-r--r--
tty_wrap.h
2.18
KB
-rw-r--r--
udp_wrap.h
8.59
KB
-rw-r--r--
util-inl.h
16.42
KB
-rw-r--r--
util.h
25.51
KB
-rw-r--r--
v8abbr.h
5.09
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : base_object-inl.h
// Copyright Joyent, Inc. and other Node contributors. // // Permission is hereby granted, free of charge, to any person obtaining a // copy of this software and associated documentation files (the // "Software"), to deal in the Software without restriction, including // without limitation the rights to use, copy, modify, merge, publish, // distribute, sublicense, and/or sell copies of the Software, and to permit // persons to whom the Software is furnished to do so, subject to the // following conditions: // // The above copyright notice and this permission notice shall be included // in all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE // USE OR OTHER DEALINGS IN THE SOFTWARE. #ifndef SRC_BASE_OBJECT_INL_H_ #define SRC_BASE_OBJECT_INL_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "base_object.h" #include "env-inl.h" #include "util.h" #if (__GNUC__ >= 8) && !defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wcast-function-type" #endif #include "v8.h" #if (__GNUC__ >= 8) && !defined(__clang__) #pragma GCC diagnostic pop #endif namespace node { BaseObject::BaseObject(Environment* env, v8::Local<v8::Object> object) : persistent_handle_(env->isolate(), object), env_(env) { CHECK_EQ(false, object.IsEmpty()); CHECK_GT(object->InternalFieldCount(), 0); object->SetAlignedPointerInInternalField( BaseObject::kSlot, static_cast<void*>(this)); env->AddCleanupHook(DeleteMe, static_cast<void*>(this)); env->modify_base_object_count(1); } BaseObject::~BaseObject() { env()->modify_base_object_count(-1); env()->RemoveCleanupHook(DeleteMe, static_cast<void*>(this)); if (UNLIKELY(has_pointer_data())) { PointerData* metadata = pointer_data(); CHECK_EQ(metadata->strong_ptr_count, 0); metadata->self = nullptr; if (metadata->weak_ptr_count == 0) delete metadata; } if (persistent_handle_.IsEmpty()) { // This most likely happened because the weak callback below cleared it. return; } { v8::HandleScope handle_scope(env()->isolate()); object()->SetAlignedPointerInInternalField(BaseObject::kSlot, nullptr); } } void BaseObject::Detach() { CHECK_GT(pointer_data()->strong_ptr_count, 0); pointer_data()->is_detached = true; } v8::Global<v8::Object>& BaseObject::persistent() { return persistent_handle_; } v8::Local<v8::Object> BaseObject::object() const { return PersistentToLocal::Default(env()->isolate(), persistent_handle_); } v8::Local<v8::Object> BaseObject::object(v8::Isolate* isolate) const { v8::Local<v8::Object> handle = object(); DCHECK_EQ(handle->CreationContext()->GetIsolate(), isolate); DCHECK_EQ(env()->isolate(), isolate); return handle; } Environment* BaseObject::env() const { return env_; } BaseObject* BaseObject::FromJSObject(v8::Local<v8::Object> obj) { CHECK_GT(obj->InternalFieldCount(), 0); return static_cast<BaseObject*>( obj->GetAlignedPointerFromInternalField(BaseObject::kSlot)); } template <typename T> T* BaseObject::FromJSObject(v8::Local<v8::Object> object) { return static_cast<T*>(FromJSObject(object)); } void BaseObject::MakeWeak() { if (has_pointer_data()) { pointer_data()->wants_weak_jsobj = true; if (pointer_data()->strong_ptr_count > 0) return; } persistent_handle_.SetWeak( this, [](const v8::WeakCallbackInfo<BaseObject>& data) { BaseObject* obj = data.GetParameter(); // Clear the persistent handle so that ~BaseObject() doesn't attempt // to mess with internal fields, since the JS object may have // transitioned into an invalid state. // Refs: https://github.com/nodejs/node/issues/18897 obj->persistent_handle_.Reset(); CHECK_IMPLIES(obj->has_pointer_data(), obj->pointer_data()->strong_ptr_count == 0); obj->OnGCCollect(); }, v8::WeakCallbackType::kParameter); } void BaseObject::OnGCCollect() { delete this; } void BaseObject::ClearWeak() { if (has_pointer_data()) pointer_data()->wants_weak_jsobj = false; persistent_handle_.ClearWeak(); } v8::Local<v8::FunctionTemplate> BaseObject::MakeLazilyInitializedJSTemplate(Environment* env) { auto constructor = [](const v8::FunctionCallbackInfo<v8::Value>& args) { DCHECK(args.IsConstructCall()); DCHECK_GT(args.This()->InternalFieldCount(), 0); args.This()->SetAlignedPointerInInternalField(BaseObject::kSlot, nullptr); }; v8::Local<v8::FunctionTemplate> t = env->NewFunctionTemplate(constructor); t->Inherit(BaseObject::GetConstructorTemplate(env)); t->InstanceTemplate()->SetInternalFieldCount( BaseObject::kInternalFieldCount); return t; } template <int Field> void BaseObject::InternalFieldGet( v8::Local<v8::String> property, const v8::PropertyCallbackInfo<v8::Value>& info) { info.GetReturnValue().Set(info.This()->GetInternalField(Field)); } template <int Field, bool (v8::Value::* typecheck)() const> void BaseObject::InternalFieldSet(v8::Local<v8::String> property, v8::Local<v8::Value> value, const v8::PropertyCallbackInfo<void>& info) { // This could be e.g. value->IsFunction(). CHECK(((*value)->*typecheck)()); info.This()->SetInternalField(Field, value); } bool BaseObject::has_pointer_data() const { return pointer_data_ != nullptr; } BaseObject::PointerData* BaseObject::pointer_data() { if (!has_pointer_data()) { PointerData* metadata = new PointerData(); metadata->wants_weak_jsobj = persistent_handle_.IsWeak(); metadata->self = this; pointer_data_ = metadata; } CHECK(has_pointer_data()); return pointer_data_; } void BaseObject::decrease_refcount() { CHECK(has_pointer_data()); PointerData* metadata = pointer_data(); CHECK_GT(metadata->strong_ptr_count, 0); unsigned int new_refcount = --metadata->strong_ptr_count; if (new_refcount == 0) { if (metadata->is_detached) { delete this; } else if (metadata->wants_weak_jsobj && !persistent_handle_.IsEmpty()) { MakeWeak(); } } } void BaseObject::increase_refcount() { unsigned int prev_refcount = pointer_data()->strong_ptr_count++; if (prev_refcount == 0 && !persistent_handle_.IsEmpty()) persistent_handle_.ClearWeak(); } template <typename T, bool kIsWeak> BaseObject::PointerData* BaseObjectPtrImpl<T, kIsWeak>::pointer_data() const { if (kIsWeak) { return data_.pointer_data; } if (get_base_object() == nullptr) { return nullptr; } return get_base_object()->pointer_data(); } template <typename T, bool kIsWeak> BaseObject* BaseObjectPtrImpl<T, kIsWeak>::get_base_object() const { if (kIsWeak) { if (pointer_data() == nullptr) { return nullptr; } return pointer_data()->self; } return data_.target; } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::~BaseObjectPtrImpl() { if (kIsWeak) { if (pointer_data() != nullptr && --pointer_data()->weak_ptr_count == 0 && pointer_data()->self == nullptr) { delete pointer_data(); } } else if (get() != nullptr) { get()->decrease_refcount(); } } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::BaseObjectPtrImpl() { data_.target = nullptr; } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::BaseObjectPtrImpl(T* target) : BaseObjectPtrImpl() { if (target == nullptr) return; if (kIsWeak) { data_.pointer_data = target->pointer_data(); CHECK_NOT_NULL(pointer_data()); pointer_data()->weak_ptr_count++; } else { data_.target = target; CHECK_NOT_NULL(pointer_data()); get()->increase_refcount(); } } template <typename T, bool kIsWeak> template <typename U, bool kW> BaseObjectPtrImpl<T, kIsWeak>::BaseObjectPtrImpl( const BaseObjectPtrImpl<U, kW>& other) : BaseObjectPtrImpl(other.get()) {} template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::BaseObjectPtrImpl(const BaseObjectPtrImpl& other) : BaseObjectPtrImpl(other.get()) {} template <typename T, bool kIsWeak> template <typename U, bool kW> BaseObjectPtrImpl<T, kIsWeak>& BaseObjectPtrImpl<T, kIsWeak>::operator=( const BaseObjectPtrImpl<U, kW>& other) { if (other.get() == get()) return *this; this->~BaseObjectPtrImpl(); return *new (this) BaseObjectPtrImpl(other); } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>& BaseObjectPtrImpl<T, kIsWeak>::operator=( const BaseObjectPtrImpl& other) { if (other.get() == get()) return *this; this->~BaseObjectPtrImpl(); return *new (this) BaseObjectPtrImpl(other); } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::BaseObjectPtrImpl(BaseObjectPtrImpl&& other) : data_(other.data_) { if (kIsWeak) other.data_.target = nullptr; else other.data_.pointer_data = nullptr; } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>& BaseObjectPtrImpl<T, kIsWeak>::operator=( BaseObjectPtrImpl&& other) { if (&other == this) return *this; this->~BaseObjectPtrImpl(); return *new (this) BaseObjectPtrImpl(std::move(other)); } template <typename T, bool kIsWeak> void BaseObjectPtrImpl<T, kIsWeak>::reset(T* ptr) { *this = BaseObjectPtrImpl(ptr); } template <typename T, bool kIsWeak> T* BaseObjectPtrImpl<T, kIsWeak>::get() const { return static_cast<T*>(get_base_object()); } template <typename T, bool kIsWeak> T& BaseObjectPtrImpl<T, kIsWeak>::operator*() const { return *get(); } template <typename T, bool kIsWeak> T* BaseObjectPtrImpl<T, kIsWeak>::operator->() const { return get(); } template <typename T, bool kIsWeak> BaseObjectPtrImpl<T, kIsWeak>::operator bool() const { return get() != nullptr; } template <typename T, bool kIsWeak> template <typename U, bool kW> bool BaseObjectPtrImpl<T, kIsWeak>::operator ==( const BaseObjectPtrImpl<U, kW>& other) const { return get() == other.get(); } template <typename T, bool kIsWeak> template <typename U, bool kW> bool BaseObjectPtrImpl<T, kIsWeak>::operator !=( const BaseObjectPtrImpl<U, kW>& other) const { return get() != other.get(); } template <typename T, typename... Args> BaseObjectPtr<T> MakeBaseObject(Args&&... args) { return BaseObjectPtr<T>(new T(std::forward<Args>(args)...)); } template <typename T, typename... Args> BaseObjectPtr<T> MakeDetachedBaseObject(Args&&... args) { BaseObjectPtr<T> target = MakeBaseObject<T>(std::forward<Args>(args)...); target->Detach(); return target; } } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_BASE_OBJECT_INL_H_
Close