Skip to content

Instantly share code, notes, and snippets.

@thecliguy
thecliguy / UploadBinary.ps1
Last active December 4, 2018 14:50
Upload Binary
$sourcefile = read-host "Enter source file path"
$destfile = read-host "Enter destination file path"
$content = Get-Content -Path $sourcefile -Encoding Byte
$Base64 = [System.Convert]::ToBase64String($Content)
Invoke-Command -computername <computername> -credential (get-credential) -scriptblock {$x = [System.Convert]::FromBase64String($Using:Base64); Set-Content -Path $using:destfile -Value $x -Encoding Byte}
@thecliguy
thecliguy / wordpress-install.ps1
Created January 15, 2019 10:57 — forked from TechnologistAU/wordpress-install.ps1
WordPress Installation Script for Windows Server 2016 and Windows 10 (PowerShell)
<#
================================================================================
===== WordPress Installation Script for Windows Server 2016 and Windows 10 =====
================================================================================
#>
"`r`nWordPress Installation Script for Windows Server 2016 and Windows 10"
"===================================================================="
cd ~\Downloads
@thecliguy
thecliguy / decode.php
Last active February 10, 2020 19:30 — forked from robocoder/decode.php
PHP Decoding MySQL's .mylogin.cnf
<?php
// 2019-01-28: Tested with PHP 7.0.32 (AR)
// tested with PHP 7.1.7
$start = microtime(true);
const LOGIN_KEY_LEN = 20;
const MY_LOGIN_HEADER_LEN = 24;
const MAX_CIPHER_STORE_LEN = 4;
#!/usr/bin/env python3
"""
The MIT License (MIT)
Copyright (C) 2017-2020 Joe Testa ([email protected])
Copyright (C) 2017 Andris Raugulis ([email protected])
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights