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 System; | |
using System.Collections.Generic; | |
using Newtonsoft.Json.Linq; | |
namespace caNewtonsoftJson | |
{ | |
class Person | |
{ | |
public string Name { get; set; } | |
public int Age { get; set; } |
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 System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace AES | |
{ | |
class Program | |
{ | |
static string aes_key = "AXe8YwuIn1zxt3FPWTZFlAa14EHdPAdN9FaZ9RQWihc="; | |
static string aes_iv = "bsxnWolsAyO7kCfWuyrnqg=="; |
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
#!/usr/bin/python | |
import os | |
import sys | |
import subprocess | |
import argparse | |
import re | |
import socket | |
# argv[1] host lists | |
# argv[2] source file/directory |
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
#!/usr/bin/env powershell | |
param ( [String]$InputFile, [String]$OutputFile, [String]$Password="pa55w0rd" ) | |
$InputStream = New-Object IO.FileStream($InputFile, | |
[IO.FileMode]::Open, [IO.FileAccess]::Read) | |
$OutputStream = New-Object IO.FileStream($OutputFile, | |
[IO.FileMode]::Create, [IO.FileAccess]::Write) | |
# Read the Salt |
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 Org.BouncyCastle.Crypto; | |
using Org.BouncyCastle.Crypto.Parameters; | |
using Org.BouncyCastle.OpenSsl; | |
using Org.BouncyCastle.Security; | |
using System; | |
using System.IO; | |
using System.Security.Cryptography; | |
namespace MyProject.Data.Encryption | |
{ |
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
#!/usr/bin/env powershell | |
param ( [String]$InputFile, [String]$OutputFile, [String]$Password="pa55w0rd" ) | |
$InputStream = New-Object IO.FileStream($InputFile, | |
[IO.FileMode]::Open, [IO.FileAccess]::Read) | |
$OutputStream = New-Object IO.FileStream($OutputFile, | |
[IO.FileMode]::Create, [IO.FileAccess]::Write) | |
# Read the Salt |