Skip to content

Instantly share code, notes, and snippets.

View ibitebyt3s's full-sized avatar
🏠
Working from home

ibitebyt3s ibitebyt3s

🏠
Working from home
View GitHub Profile
public class Switch {
private Engine engine;
private boolean on;
public Switch(Engine engine) {
this.engine = engine;
this.on = false;
}
public boolean switchOn() {
@ibitebyt3s
ibitebyt3s / client.sh
Created October 14, 2019 05:27 — forked from leonklingele/client.sh
netcat – encrypt transfer with openssl
IP="127.0.0.1"
PORT="8877"
SHARED_SECRET="shared secret"
OPENSSL="/usr/local/opt/libressl/bin/openssl"
OPENSSL_CMD="$OPENSSL enc -a -A -aes-256-gcm"
while IFS= read -r MSG; do
echo "$MSG" | $OPENSSL_CMD -e -k "$SHARED_SECRET"
echo