Skip to content

Instantly share code, notes, and snippets.

View kalikaneko's full-sized avatar

Kali Kaneko kalikaneko

  • LEAP
  • the intertubes
View GitHub Profile
@kalikaneko
kalikaneko / scapy_bridge.py
Created February 10, 2024 19:09 — forked from eXenon/scapy_bridge.py
Use scapy as a modifying proxy
#!/usr/bin/python2
"""
Use scapy to modify packets going through your machine.
Based on nfqueue to block packets in the kernel and pass them to scapy for validation
"""
import nfqueue
from scapy.all import *
import os
@kalikaneko
kalikaneko / README.md
Created August 22, 2022 10:44 — forked from tymarbut/README.md
Baofeng (or other radio) data TX/RX for Raspberry Pi

This flow (and associated circuits/hardware) is designed to allow Node-RED to pass messages via radio waves in the same way as it passes messages via MQTT, using commonly-available, inexpensive handheld radios and the Raspberry Pi. The flow has been tested using Baofeng, Wouxun, and Quansheng handheld ham radios. In short, the goal is to allow packet-like transmissions between Node-RED systems over miles, while keeping the hardware costs down (or free for those hams who have surplus Baofengs hanging around). This could be used for a backup to MQTT when the Wifi is unreliable, or simply as a long-distance and network-agnostic message channel.

Prerequisites: Software

First, we need PulseAudio to make and receive sounds with our USB soundcard:

sudo apt-get install pulseaudio -y
server side
tunnel:
https://github.com/netprickle/ipipou
sudo ./ipipou -s -vvv -b @eth0 -n0 --auth-secret secretauthkey --auth-remote-pubkey-b64 /eaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
shapeshifter:
#!/bin/sh
set -x
./shapeshifter-dispatcher \
-transparent -server -state bridge \
@kalikaneko
kalikaneko / check-gw-reputation
Created February 4, 2022 17:24
check gw reputation
#!/bin/zsh
CAFILE=/tmp/riseup-ca.crt
EIP_SERVICE=https://api.black.riseup.net/3/config/eip-service.json
GATEWAYS=/tmp/gws.json
REPUTATIONAPI="https://reputation.noc.org/api/?ip="
curl --silent -k https://black.riseup.net/ca.crt > $CAFILE
curl --silent --cacert $CAFILE $EIP_SERVICE | jq '.gateways|map(.ip_address)' > $GATEWAYS
echo "ip\t\t proxy botnet ddos"
@kalikaneko
kalikaneko / nextcloud-client-qt-shared.yaml
Created May 1, 2021 00:43 — forked from 3v1n0/nextcloud-client-qt-shared.yaml
Snapcraft QT builds examples (shared, static...)
name: nextcloud-client
version: 2.2.4+git
icon: ../nextcloudtheme/theme/colored/Nextcloud-icon.svg
summary: Nextcloud Desktop Client
description: |
The Nextcloud Desktop Client is a tool to synchronize files from Nextcloud
Server with your computer.
grade: stable
confinement: strict
@kalikaneko
kalikaneko / grunt-hugo-lunrjs.md
Created April 26, 2021 14:02 — forked from sebz/grunt-hugo-lunrjs.md
hugo + gruntjs + lunrjs = <3 search
#!/bin/sh
# Downloads qt5 source file and compiles it statically.
# See https://wohlsoft.ru/pgewiki/Building_static_Qt_5 for tips
QT5_V="5.12"
QT5_VER="5.12.9"
QT5_DIR="qt-everywhere-src-$QT5_VER"
QT5_TAR="$QT5_DIR.tar.xz"
QT5_URL="https://download.qt.io/archive/qt/$QT5_V/$QT5_VER/single/$QT5_TAR"
@kalikaneko
kalikaneko / website.html
Created August 11, 2017 20:27 — forked from auneri/website.html
Better motherfucking website template.
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
h1, h2, h3 {
line-height: 1.2;
}
body {
margin: 40px auto;
max-width: 650px;
@kalikaneko
kalikaneko / verifycert.py
Last active July 11, 2017 14:17
trust platform ++
import re
from OpenSSL.crypto import X509StoreContext
from OpenSSL.SSL import Context
from OpenSSL.SSL import TLSv1_METHOD
from OpenSSL.crypto import X509StoreContextError
from twisted.internet.ssl import Certificate
from twisted.internet._sslverify import OpenSSLCertificateAuthorities
from twisted.python.filepath import FilePath