Linux ubuntu22 5.15.0-133-generic #144-Ubuntu SMP Fri Feb 7 20:47:38 UTC 2025 x86_64
nginx/1.18.0
: 128.199.27.159 | : 216.73.216.159
Cant Read [ /etc/named.conf ]
8.1.31
www-data
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 /
lib /
ruby /
gems /
3.0.0 /
gems /
rss-0.2.9 /
test /
[ HOME SHELL ]
Name
Size
Permission
Action
dot.png
109
B
-rw-r--r--
rss-assertions.rb
69.07
KB
-rw-r--r--
rss-testcase.rb
11.69
KB
-rw-r--r--
run-test.rb
290
B
-rw-r--r--
test_1.0.rb
8.16
KB
-rw-r--r--
test_2.0.rb
12.29
KB
-rw-r--r--
test_accessor.rb
2.5
KB
-rw-r--r--
test_atom.rb
21.8
KB
-rw-r--r--
test_content.rb
2.61
KB
-rw-r--r--
test_dublincore.rb
9.05
KB
-rw-r--r--
test_image.rb
6.89
KB
-rw-r--r--
test_inherit.rb
1.06
KB
-rw-r--r--
test_itunes.rb
13.37
KB
-rw-r--r--
test_maker_0.9.rb
13.83
KB
-rw-r--r--
test_maker_1.0.rb
14.38
KB
-rw-r--r--
test_maker_2.0.rb
22.15
KB
-rw-r--r--
test_maker_atom_entry.rb
13.77
KB
-rw-r--r--
test_maker_atom_feed.rb
16.19
KB
-rw-r--r--
test_maker_content.rb
1.02
KB
-rw-r--r--
test_maker_dc.rb
4.15
KB
-rw-r--r--
test_maker_image.rb
1.84
KB
-rw-r--r--
test_maker_itunes.rb
18.96
KB
-rw-r--r--
test_maker_slash.rb
832
B
-rw-r--r--
test_maker_sy.rb
919
B
-rw-r--r--
test_maker_taxo.rb
2.24
KB
-rw-r--r--
test_maker_trackback.rb
1000
B
-rw-r--r--
test_maker_xml-stylesheet.rb
1.99
KB
-rw-r--r--
test_parser.rb
2.77
KB
-rw-r--r--
test_parser_1.0.rb
12.07
KB
-rw-r--r--
test_parser_2.0.rb
2.89
KB
-rw-r--r--
test_parser_atom_entry.rb
4.2
KB
-rw-r--r--
test_parser_atom_feed.rb
7.45
KB
-rw-r--r--
test_setup_maker_0.9.rb
6.88
KB
-rw-r--r--
test_setup_maker_1.0.rb
16.2
KB
-rw-r--r--
test_setup_maker_2.0.rb
8.96
KB
-rw-r--r--
test_setup_maker_atom_entry.rb
12.37
KB
-rw-r--r--
test_setup_maker_atom_feed.rb
13.53
KB
-rw-r--r--
test_setup_maker_itunes.rb
4.45
KB
-rw-r--r--
test_setup_maker_slash.rb
1023
B
-rw-r--r--
test_slash.rb
1.32
KB
-rw-r--r--
test_syndication.rb
3.05
KB
-rw-r--r--
test_taxonomy.rb
4.96
KB
-rw-r--r--
test_to_s.rb
19.22
KB
-rw-r--r--
test_trackback.rb
3.68
KB
-rw-r--r--
test_xml-stylesheet.rb
3.48
KB
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : test_xml-stylesheet.rb
# frozen_string_literal: false require "rexml/document" require_relative "rss-testcase" require "rss/1.0" require "rss/xml-stylesheet" module RSS class TestXMLStyleSheet < TestCase def test_accessor [ {:href => "a.xsl", :type => "text/xsl"}, {:media => "print", :title => "FOO"}, {:charset => "UTF-8", :alternate => "yes"}, ].each do |attrs| assert_xml_stylesheet_attrs(attrs, XMLStyleSheet.new(attrs)) end end def test_to_s [ {:href => "a.xsl", :type => "text/xsl"}, {:type => "text/xsl"}, {:href => "a.xsl", :guess_type => "text/xsl"}, {:href => "a.css", :type => "text/css"}, {:href => "a.css", :type => "text/xsl", :guess_type => "text/css"}, {:href => "a.xsl", :type => "text/xsl", :title => "sample", :media => "printer", :charset => "UTF-8", :alternate => "yes"}, {:href => "a.css", :guess_type => "text/css", :alternate => "no"}, {:type => "text/xsl", :title => "sample", :media => "printer", :charset => "UTF-8", :alternate => "yes"}, ].each do |attrs| target, contents = parse_pi(XMLStyleSheet.new(attrs).to_s) assert_xml_stylesheet(target, attrs, XMLStyleSheet.new(contents)) end end def test_bad_alternate %w(a ___ ??? BAD_ALTERNATE).each do |value| xss = XMLStyleSheet.new assert_raise(NotAvailableValueError) do xss.alternate = value end xss.do_validate = false assert_nothing_raised do xss.alternate = value end assert_nil(xss.alternate) end end def test_parse [ [{:href => "a.xsl", :type => "text/xsl"},], [{:media => "print", :title => "FOO"},], [{:charset => "UTF-8", :alternate => "yes"},], [{:href => "a.xsl", :type => "text/xsl"}, {:type => "text/xsl"}, {:href => "a.xsl", :guess_type => "text/xsl"}, {:href => "a.css", :type => "text/css"}, {:href => "a.css", :type => "text/xsl", :guess_type => "text/css"}, {:href => "a.xsl", :type => "text/xsl", :title => "sample", :media => "printer", :charset => "UTF-8", :alternate => "yes"}, {:href => "a.css", :guess_type => "text/css", :alternate => "no"}, {:type => "text/xsl", :title => "sample", :media => "printer", :charset => "UTF-8", :alternate => "yes"},], ].each do |xsss| doc = REXML::Document.new(make_sample_RDF) root = doc.root xsss.each do |xss| content = xss.collect do |key, name| %Q[#{key}="#{name}"] end.join(" ") pi = REXML::Instruction.new("xml-stylesheet", content) root.previous_sibling = pi end rss = Parser.parse(doc.to_s) have_href_xsss = xsss.find_all {|xss| xss.has_key?(:href)} assert_equal(have_href_xsss.size, rss.xml_stylesheets.size) rss.xml_stylesheets.each_with_index do |stylesheet, i| target, = parse_pi(stylesheet.to_s) assert_xml_stylesheet(target, have_href_xsss[i], stylesheet) end end end def parse_pi(pi) /\A\s*<\?(\S+)([^?]*\?+(?:[^?>][^?]*\?+)*)>\s*\z/ =~ pi target = $1 dummy = REXML::Document.new("<dummy #{$2.to_s.chop}/>").root contents = {} dummy.attributes.each do |name, value| contents[name] = value end [target, contents] end end end
Close