Closed Ry3yr closed 4 years ago
I see that what you copied from PowerShell is kind of garbled. There are a lot of unknown characters including question marks and stuff, like this was typed by hand or OCR'd, or there was some sort of bad encoding. Do you know why that is, and is there any chance PageCrypt's scripts could have gotten corrupted in a similar way?
I also noticed C:\Users\Desktop
in the first powershell script, which is an invalid directory.
Yep, it was OCR'd then corrected by hand
That is a typo: The correct directory is C:\Users\Q702\Desktop
EDIT: Here is the actual output (Screencap'd). As I'm using a german OS, the top notification is obviously in german.
Make sure to let me know if I've got something wrong with the command.
It seems like you originally ran it in PowerShell, but your screenshot is running in Command Prompt, which will not work.
Can I see the screenshot of the PowerShell output?
Like this ?:
EDIT: Ignore the second one. Hah.
Please open up your Encrypt-StaticHTML.psl
file in a text editor, and make sure it matches the official script.
The output you're getting only makes any sense to me if you somehow downloaded an HTML page from the GitHub website and renamed it to a .ps1
file.
Made sure to get the file directly this time. Now Powershell is complaining about some "unsigned file" (?) -Roughly this translates to "the file is not digitally signed"
These may help:
https://medium.com/@caiomsouza/fix-for-powershell-script-not-digitally-signed-69f0ed518715
I just googled "ps1 not digitally signed".
Ran "Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypass" Retried the script afterwards.
And wow. That is one hell of an ouput.
Attached: file.html file.enc.html (inside zip) *output.txt
(The encoded file is not working it seems, which hardly surprises - as there are quite some errors)
I'm just gonna ask in case this cuts things short: I'm only utilizing the files: -Encrypt-StaticHTML.ps1 -file.hml
I'm not missing something crucial here ?
According to the readme, you also need decryptTemplate.html
in the same directory.
If that doesn't work, then what version of PowerShell are you using? On second look at the readme, it says it's written for v5.
Here's how to check your powershell version:
https://stackoverflow.com/questions/1825585/determine-installed-powershell-version
According to Get-Host: Version 2.0 => Gotta update that I guess...
About that decryptTemplate.html: Is that a file inside the github repo of yours, or just an empty html file ?
It's a file in the repo.
Sweet, so:
=> Made it work.
Perfect :) !
It seems, using the powershell-implementation gives some error when using: