Get or generate a new signing certificate:
openssl req -x509 -nodes -sha256 -days 3650 -newkey rsa:2048 -keyout saml.key -out saml.crt
Update the script and update the following settings:
public class NetFwMgr : DynamicComBase | |
{ | |
/// <summary> | |
/// Default constructor. | |
/// </summary> | |
public NetFwMgr() | |
{ | |
// Initialize the COM object. | |
Type fwMgrType = Type.GetTypeFromProgID("HNetCfg.FwMgr"); | |
base.comObj = Activator.CreateInstance(fwMgrType); |
const { AuthenticationClient, ManagementClient } = require("auth0"); | |
const publicKey = `-----BEGIN CERTIFICATE----- | |
MIIC/zCCAeegAwIBAgIJHqZ8xG7fkm2bMA0GCSqGSIb3DQEBCwUAMB0xGzAZBgNV | |
BAMTEnNhbWwtaWRwLmF1dGgwLmNvbTAeFw0xNzA4MDMxNDE0MTBaFw0zMTA0MTIx | |
NDE0MTBaMB0xGzAZBgNVBAMTEnNhbWwtaWRwLmF1dGgwLmNvbTCCASIwDQYJKoZI | |
hvcNAQEBBQADggEPADCCAQoCggEBAOzFui1uCqya7hcEW6TwLQn4kfw0gXDoZ018 | |
VYVA9U45GQGuJPOVjXlNYDxwysjZXP9mOn322wL7AQGejavdrwsGFgiLZ23/X9DP | |
TsyGTcNuQtFCbW16xQcBB7PuLy3iluFXi50c+dvU/iSdBG9xEhndQ9mVtwbFMMFf | |
q8WNY4arU3PmnxFAhZIXgTmJih9a8hknGL82pgpcmK4iQof6Uw35x2Gg9X4zbbyt |
import fs from 'fs'; | |
import path from 'path'; | |
import { v4 } from 'uuid'; | |
import each from 'p-each-series'; | |
import Database from 'sqlite-async'; | |
/** | |
* Find all of the Chrome History files. | |
*/ | |
function getHistoryFiles(startPath, targetFile) { |
REM Variables. | |
SETLOCAL EnableDelayedExpansion | |
SET FtpSiteName=%1% | |
SET FtpDirectory=%2% | |
SET PublicPort=%3% | |
SET DynamicPortFirst=%4% | |
SET DynamicPortLast=%5% | |
SET DynamicPortRange=%DynamicPortFirst%-%DynamicPortLast% | |
SET PublicIP=%6% |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Sign In with Auth0</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<style> | |
html, body { padding: 0; margin: 0; } |
const fs = require('fs'); | |
const ursa = require('ursa'); | |
const async = require('async'); | |
const faker = require('faker'); | |
const util = require('util'); | |
const spawn = require('child_process').spawn; | |
const selfsigned = require('selfsigned'); | |
const total = Array.from(Array(10000).keys()); |