-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
35 additions
and
11 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# RDF-Tool | ||
drop file a file (zip is good idea) into **packer.bat**. Once packer.bat is done start **extractor.bat** on the other side. Once the extractor is done you have the file where the extractor is located | ||
|
||
Size Limit is RAM ~300mb | ||
|
||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '.\extractor.ps1'" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | ||
$scriptPath = split-path -parent $MyInvocation.MyCommand.Definition | ||
# decode base64 file back to zip | ||
# get text from clipboard | ||
$Clipboard= [Windows.Forms.Clipboard]::GetText() | ||
# split string | ||
$split = $Clipboard.Split(";") | ||
# first part is the filename | ||
$filename = $split[0] | ||
# second part is the actual file as base64 | ||
$b64 = $split[1] | ||
# encode back to byte | ||
$bytes = [Convert]::FromBase64String($b64) | ||
# write bytes to file | ||
[IO.File]::WriteAllBytes($scriptPath +"\"+$filename, $bytes) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%~dp0packer.ps1'" ""%*"" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Param( | ||
[string]$arg | ||
) | ||
[System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | Out-Null | ||
# encode zip file to base64 | ||
$fileName = [io.path]::GetFileName($arg) | ||
# read file as byte | ||
$bytes = [IO.File]::ReadAllBytes($arg) | ||
# convert byte to base64 | ||
$b64 = [Convert]::ToBase64String($bytes) | ||
# add filename before base64 and write to clipboard | ||
[Windows.Forms.Clipboard]::SetText($fileName + ";" + $b64) |