Linux server1.dn-server.com 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
LiteSpeed
Server IP : 195.201.204.189 & Your IP : 216.73.216.37
Domains :
Cant Read [ /etc/named.conf ]
User : beriska1
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby19 /
share /
ri /
1.9.1 /
system /
Net /
Telnet /
Delete
Unzip
Name
Size
Permission
Date
Action
binmode%3d-i.ri
248
B
-rw-r--r--
2023-07-26 17:26
binmode-i.ri
333
B
-rw-r--r--
2023-07-26 17:26
cdesc-Telnet.ri
4.18
KB
-rw-r--r--
2023-07-26 17:26
close-i.ri
210
B
-rw-r--r--
2023-07-26 17:26
cmd-i.ri
1.68
KB
-rw-r--r--
2023-07-26 17:26
login-i.ri
1.37
KB
-rw-r--r--
2023-07-26 17:26
new-c.ri
5.62
KB
-rw-r--r--
2023-07-26 17:26
preprocess-i.ri
545
B
-rw-r--r--
2023-07-26 17:26
print-i.ri
502
B
-rw-r--r--
2023-07-26 17:26
puts-i.ri
316
B
-rw-r--r--
2023-07-26 17:26
sock-i.ri
357
B
-rw-r--r--
2023-07-26 17:26
telnetmode%3d-i.ri
394
B
-rw-r--r--
2023-07-26 17:26
telnetmode-i.ri
480
B
-rw-r--r--
2023-07-26 17:26
waitfor-i.ri
2.43
KB
-rw-r--r--
2023-07-26 17:26
write-i.ri
381
B
-rw-r--r--
2023-07-26 17:26
Save
Rename
U:RDoc::AnyMethod[iI"new:EFI"Net::Telnet::new;FT:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"&Creates a new Net::Telnet object.;To:RDoc::Markup::BlankLine o; ; [ I"@Attempts to connect to the host (unless the Proxy option is;TI"Aprovided: see below). If a block is provided, it is yielded;TI"@status messages on the attempt to connect to the server, of;TI"the form:;T@o:RDoc::Markup::Verbatim; [I"Trying localhost... ;FI"Connected to localhost. ;Fo; ; [I"A+options+ is a hash of options. The following example lists;TI"*all options and their default values.;T@o;; [I"host = Net::Telnet::new( ;FI"C "Host" => "localhost", # default: "localhost" ;FI": "Port" => 23, # default: 23 ;FI"= "Binmode" => false, # default: false ;FI"G "Output_log" => "output_log", # default: nil (no output) ;FI"G "Dump_log" => "dump_log", # default: nil (no output) ;FI"D "Prompt" => /[$%#>] \z/n, # default: /[$%#>] \z/n ;FI"< "Telnetmode" => true, # default: true ;FI": "Timeout" => 10, # default: 10 ;FI"A # if ignore timeout then set "Timeout" to false. ;FI"9 "Waittime" => 0, # default: 0 ;FI"; "Proxy" => proxy # default: nil ;FI"B # proxy is Net::Telnet or IO object ;FI" ) ;Fo; ; [I"-The options have the following meanings:;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@labelI" Host;T; [o; ; [I"Gthe hostname or IP address of the host to connect to, as a String.;TI"Defaults to "localhost".;T@o;;I" Port;T; [o; ; [I"-the port to connect to. Defaults to 23.;T@o;;I"Binmode;T; [o; ; [I"?if false (the default), newline substitution is performed.;TI"Outgoing LF is;TI"Aconverted to CRLF, and incoming CRLF is converted to LF. If;TI">true, this substitution is not performed. This value can;TI"1also be set with the #binmode() method. The;TI"Aoutgoing conversion only applies to the #puts() and #print();TI"=methods, not the #write() method. The precise nature of;TI"Bthe newline conversion is also affected by the telnet options;TI"SGA and BIN.;T@o;;I"Output_log;T; [o; ; [I"=the name of the file to write connection status messages;TI":and all received traffic to. In the case of a proper;TI":Telnet session, this will include the client input as;TI";echoed by the host; otherwise, it only includes server;TI":responses. Output is appended verbatim to this file.;TI"'By default, no output log is kept.;T@o;;I" Dump_log;T; [o; ; [I"@as for Output_log, except that output is written in hexdump;TI">format (16 bytes per line as hex pairs, followed by their;TI";printable equivalent), with connection status messages;TI"7preceded by '#', sent traffic preceded by '>', and;TI"@received traffic preceded by '<'. By default, not dump log;TI" is kept.;T@o;;I"Prompt;T; [o; ; [ I"Aa regular expression matching the host's command-line prompt;TI"?sequence. This is needed by the Telnet class to determine;TI"@when the output from a command has finished and the host is;TI">ready to receive a new command. By default, this regular;TI" expression is /[$%#>] \z/n.;T@o;;I"Telnetmode;T; [o; ; [I"7a boolean value, true by default. In telnet mode,;TI"9traffic received from the host is parsed for special;TI"7command sequences, and these sequences are escaped;TI"7in outgoing traffic sent using #puts() or #print();TI":(but not #write()). If you are using the Net::Telnet;TI"7object to connect to a non-telnet service (such as;TI";SMTP or POP), this should be set to "false" to prevent;TI";undesired data corruption. This value can also be set;TI"!by the #telnetmode() method.;T@o;;I"Timeout;T; [o; ; [I"=the number of seconds to wait before timing out both the;TI">initial attempt to connect to host (in this constructor),;TI"@and all attempts to read data from the host (in #waitfor(),;TI"<#cmd(), and #login()). Exceeding this timeout causes a;TI"ATimeoutError to be raised. The default value is 10 seconds.;TI"@You can disable the timeout by setting this value to false.;TI">In this case, the connect attempt will eventually timeout;TI"5on the underlying connect(2) socket call with an;TI";Errno::ETIMEDOUT error (but generally only after a few;TI"<minutes), but other attempts to read data from the host;TI"6will hand indefinitely if no data is forthcoming.;T@o;;I" Waittime;T; [o; ; [I">the amount of time to wait after seeing what looks like a;TI";prompt (that is, received data that matches the Prompt;TI"<option regular expression) to see if more data arrives.;TI"?If more data does arrive in this time, Net::Telnet assumes;TI"Athat what it saw was not really a prompt. This is to try to;TI">avoid false matches, but it can also lead to missing real;TI">prompts (if, for instance, a background process writes to;TI":the terminal soon after the prompt is displayed). By;TI":default, set to 0, meaning not to wait for more data.;T@o;;I" Proxy;T; [o; ; [I"Ba proxy object to used instead of opening a direct connection;TI"?to the host. Must be either another Net::Telnet object or;TI"=an IO object. If it is another Net::Telnet object, this;TI"Binstance will use that one's socket for communication. If an;TI"AIO object, it is used directly for communication. Any other;TI"5kind of object will cause an error to be raised.;T: @file00I" mesg;F[ I"(options);TI"lib/net/telnet.rb;T