Skip to content

Instantly share code, notes, and snippets.

@bjia56
bjia56 / blinkpoc.py
Created November 8, 2024 06:57 — forked from jakecrowley/blinkpoc.py
Blink IMMIS PoC
import subprocess
import threading
from time import sleep, time
import requests
import socket
import ssl
BASE_API_URL = "https://rest-u026.immedia-semi.com"
## REPLACE THESE WITH YOUR OWN VALUES
# Adapted from https://github.com/microsoft/WSL/issues/4150#issuecomment-504209723
$remoteport = bash.exe -c "ip addr | grep -Ee 'inet.*eth0'"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
if( $found ){
$remoteport = $matches[0];
} else{
echo "The Script Exited, the ip address of WSL 2 cannot be found";
exit;
}
@bjia56
bjia56 / MakeOpenVPN.sh
Created June 18, 2017 19:41 — forked from laurenorsini/MakeOpenVPN.sh
MakeOpenVPN.sh by Eric Jodoin
#!/bin/bash
# Default Variable Declarations
DEFAULT="Default.txt"
FILEEXT=".ovpn"
CRT=".crt"
KEY=".3des.key"
CA="ca.crt"
TA="ta.key"