Skip to content

Instantly share code, notes, and snippets.

View xen0bit's full-sized avatar

Remy xen0bit

View GitHub Profile
echo OFF
echo 'Starting sf2jira...'
echo 'Copying master.csv to step 0...'
#copy /Y master.csv .\0remap\master.csv
Copy-Item ".\master.csv" -Destination ".\0remap"
echo 'Stepping into /0remap...'
cd 0remap
echo 'Starting mapping of Projects...'
python genProjectMapping.py
echo 'Starting mapping of Issue Keys...'
│ sf2jira.ps1
├───0remap
│ 7z.exe
│ applyMappings.py
│ genCasenumber2jirakey.py
│ genIssueKeyMapping.py
│ genNameMapping.py
│ genProjectMapping.py
frontend web-frontend-80
bind *:80
mode http
default_backend web-backend-80
backend web-backend-80
server sshtunnel-0 127.0.0.1:8080 check
allowtcpforwarding yes
AuthorizedKeysFile .ssh/authorized_keys
PubkeyAuthentication yes
@xen0bit
xen0bit / gist:510a2b99db194403cfd2cc498e70d472
Last active August 31, 2020 21:08
Openssl Bash Profile Functions
getcert() {
#Pull and parse certificate
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text
}
getcertsans() {
#getcertsans example.com
echo "Q" | openssl s_client -showcerts -connect "$1":443 | openssl x509 -text | grep "DNS:" | sed -e 's/DNS://g' | sed -e 's/, /\n/g' | sed -e 's/ //g'
}
@xen0bit
xen0bit / example.js
Created November 26, 2020 15:02
graph api multiple users
const options = {
authProvider,
};
const client = Client.init(options);
//Despite "supporting" id's for requests, I seem to remember them being required last time I tried it?
const batchCreateUsers = {
"requests": [{
@xen0bit
xen0bit / getusers.js
Created November 26, 2020 15:13
batch api endpoint get multiple users
const options = {
authProvider,
};
const client = Client.init(options);
//Despite "supporting" id's for requests, I seem to remember them being required last time I tried it?
//Get the current user, and get the displayName and givenName of a user by their UPN
@xen0bit
xen0bit / gist:eb86a413eecd528d63f8d8eb24de2548
Created January 3, 2021 18:31
What algorithm is this?
RunSanDiskSecureAccess-Win.exe v1.1.19150 is configured using the password "test123" for the secure file vault.
https://www.virustotal.com/gui/file/1822d68ef4f3276b785ee30f65bb3bac36f97685c81cc5b11837a34528c398e2/details
A Zero-Byte file (MD5 Sum: d41d8cd98f00b204e9800998ecf8427e) is added to the vault.
The resulting encrypted file is:
MD5 Sum: e2d484fa4d7f5f457f6571a075a967d4
File: 30 4A 34 C4 D7 DB 20 86 12 01 42 5B 68 18 99 FB A3 D9 52 E6 28 63 89 92 F7 4D 10 E0 24 2A F3 1D
Base64: MEo0xNfbIIYSAUJbaBiZ+6PZUuYoY4mS900Q4CQq8x0=
File Length: 32 Bytes
//General Program flow.
//Replace lines 34/35 with something to log to STDOUT with like "X" for dead and "O" for alive to debug
//Shouldn't require any external dependencies
//Setup
//initGrid();
//drawGrid();
//LOOP
// computeCA();
// drawGrid();
package main
import (
"bytes"
"fmt"
"math"
"math/rand"
)
func shannon(input []byte) (entropy float64) {