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.222.118.188
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 : aliased_buffer.h
#ifndef SRC_ALIASED_BUFFER_H_ #define SRC_ALIASED_BUFFER_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "v8.h" #include "util-inl.h" namespace node { /** * This class encapsulates the technique of having a native buffer mapped to * a JS object. Writes to the native buffer can happen efficiently without * going through JS, and the data is then available to user's via the exposed * JS object. * * While this technique is computationally efficient, it is effectively a * write to JS program state w/out going through the standard * (monitored) API. Thus any VM capabilities to detect the modification are * circumvented. * * The encapsulation herein provides a placeholder where such writes can be * observed. Any notification APIs will be left as a future exercise. */ template <class NativeT, class V8T> class AliasedBuffer { public: AliasedBuffer(v8::Isolate* isolate, const size_t count) : isolate_(isolate), count_(count), byte_offset_(0), free_buffer_(true) { CHECK_GT(count, 0); const v8::HandleScope handle_scope(isolate_); const size_t sizeInBytes = sizeof(NativeT) * count; // allocate native buffer buffer_ = Calloc<NativeT>(count); // allocate v8 ArrayBuffer v8::Local<v8::ArrayBuffer> ab = v8::ArrayBuffer::New( isolate_, buffer_, sizeInBytes); // allocate v8 TypedArray v8::Local<V8T> js_array = V8T::New(ab, byte_offset_, count); js_array_ = v8::Global<V8T>(isolate, js_array); } /** * Create an AliasedBuffer over a sub-region of another aliased buffer. * The two will share a v8::ArrayBuffer instance & * a native buffer, but will each read/write to different sections of the * native buffer. * * Note that byte_offset must by aligned by sizeof(NativeT). */ AliasedBuffer(v8::Isolate* isolate, const size_t byte_offset, const size_t count, const AliasedBuffer<uint8_t, v8::Uint8Array>& backing_buffer) : isolate_(isolate), count_(count), byte_offset_(byte_offset), free_buffer_(false) { const v8::HandleScope handle_scope(isolate_); v8::Local<v8::ArrayBuffer> ab = backing_buffer.GetArrayBuffer(); // validate that the byte_offset is aligned with sizeof(NativeT) CHECK_EQ(byte_offset & (sizeof(NativeT) - 1), 0); // validate this fits inside the backing buffer CHECK_LE(sizeof(NativeT) * count, ab->ByteLength() - byte_offset); buffer_ = reinterpret_cast<NativeT*>( const_cast<uint8_t*>(backing_buffer.GetNativeBuffer() + byte_offset)); v8::Local<V8T> js_array = V8T::New(ab, byte_offset, count); js_array_ = v8::Global<V8T>(isolate, js_array); } AliasedBuffer(const AliasedBuffer& that) : isolate_(that.isolate_), count_(that.count_), byte_offset_(that.byte_offset_), buffer_(that.buffer_), free_buffer_(false) { js_array_ = v8::Global<V8T>(that.isolate_, that.GetJSArray()); } ~AliasedBuffer() { if (free_buffer_ && buffer_ != nullptr) { free(buffer_); } js_array_.Reset(); } AliasedBuffer& operator=(AliasedBuffer&& that) { this->~AliasedBuffer(); isolate_ = that.isolate_; count_ = that.count_; byte_offset_ = that.byte_offset_; buffer_ = that.buffer_; free_buffer_ = that.free_buffer_; js_array_.Reset(isolate_, that.js_array_.Get(isolate_)); that.buffer_ = nullptr; that.js_array_.Reset(); return *this; } /** * Helper class that is returned from operator[] to support assignment into * a specified location. */ class Reference { public: Reference(AliasedBuffer<NativeT, V8T>* aliased_buffer, size_t index) : aliased_buffer_(aliased_buffer), index_(index) { } Reference(const Reference& that) : aliased_buffer_(that.aliased_buffer_), index_(that.index_) { } inline Reference& operator=(const NativeT& val) { aliased_buffer_->SetValue(index_, val); return *this; } inline Reference& operator=(const Reference& val) { return *this = static_cast<NativeT>(val); } operator NativeT() const { return aliased_buffer_->GetValue(index_); } inline Reference& operator+=(const NativeT& val) { const NativeT current = aliased_buffer_->GetValue(index_); aliased_buffer_->SetValue(index_, current + val); return *this; } inline Reference& operator+=(const Reference& val) { return this->operator+=(static_cast<NativeT>(val)); } inline Reference& operator-=(const NativeT& val) { const NativeT current = aliased_buffer_->GetValue(index_); aliased_buffer_->SetValue(index_, current - val); return *this; } private: AliasedBuffer<NativeT, V8T>* aliased_buffer_; size_t index_; }; /** * Get the underlying v8 TypedArray overlayed on top of the native buffer */ v8::Local<V8T> GetJSArray() const { return js_array_.Get(isolate_); } /** * Get the underlying v8::ArrayBuffer underlying the TypedArray and * overlaying the native buffer */ v8::Local<v8::ArrayBuffer> GetArrayBuffer() const { return GetJSArray()->Buffer(); } /** * Get the underlying native buffer. Note that all reads/writes should occur * through the GetValue/SetValue/operator[] methods */ inline const NativeT* GetNativeBuffer() const { return buffer_; } /** * Synonym for GetBuffer() */ inline const NativeT* operator * () const { return GetNativeBuffer(); } /** * Set position index to given value. */ inline void SetValue(const size_t index, NativeT value) { #if defined(DEBUG) && DEBUG CHECK_LT(index, count_); #endif buffer_[index] = value; } /** * Get value at position index */ inline const NativeT GetValue(const size_t index) const { #if defined(DEBUG) && DEBUG CHECK_LT(index, count_); #endif return buffer_[index]; } /** * Effectively, a synonym for GetValue/SetValue */ Reference operator[](size_t index) { return Reference(this, index); } NativeT operator[](size_t index) const { return GetValue(index); } size_t Length() const { return count_; } private: v8::Isolate* isolate_; size_t count_; size_t byte_offset_; NativeT* buffer_; v8::Global<V8T> js_array_; bool free_buffer_; }; } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_ALIASED_BUFFER_H_
Close