Skip to content

Instantly share code, notes, and snippets.

@l4rm4nd
l4rm4nd / Convert-BinaryToBase64String.ps1
Created November 3, 2022 12:13
Convert EXE into Base64 String
View Convert-BinaryToBase64String.ps1
function Convert-BinaryToBase64String {
[CmdletBinding()] param (
[string] $FilePath
)
try {
$ByteArray = [System.IO.File]::ReadAllBytes($FilePath);
}
catch {
throw "Failed to read file. Ensure that you have permission to the file, and that the file path is correct.";
View CORS-PoC
<html>
<head>
<title>CORS PoC</title>
<script language="JavaScript"> function date(){var date = new Date(); document.getElementById("date").innerHTML = date;}</script>
</head>
<!-- GUI -->
<body onload="cors(); date();">
<h1>Pentest Factory GmbH CORS PoC</h1>
<table align="left" style="position: absolute; border-spacing: 15px">
@l4rm4nd
l4rm4nd / xerox-6515.ppd
Created May 17, 2018 16:05
PostScript Printer Description for Xerox 6515 (tested under Ubuntu 16.04 LTS)
View xerox-6515.ppd
*PPD-Adobe: "4.3"
*% Adobe Systems PostScript(R) Printer Description File
*% Copyright 2009-2010 Xerox Corporation.
*FileVersion: "5.519.0.0"
*FormatVersion: "4.3"
*LanguageEncoding: ISOLatin1
*LanguageVersion: German