This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
from PyPDF2 import PdfFileReader, PdfFileMerger | |
files_dir = os.path.expanduser("~/pdf") | |
if not os.path.isdir(files_dir): | |
print("ERROR: input directory {} does not exist\n".format(files_dir)) | |
sys.exit(1) | |
pdf_files = [f for f in os.listdir(files_dir) if f.endswith("pdf")] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env ruby | |
abort("usage: #{$0} stash_file\nuse to descrypt IBM HTTP server stash files") if (ARGV.length < 1) | |
password = '' | |
File.open(ARGV[0], 'r') do |fh| | |
password = fh.read(1024) | |
end | |
decoded = password.unpack("C*").map {|c| c^0xf5} |