Skip to content

Instantly share code, notes, and snippets.

@peddamat
peddamat / komorebi_named_pipe.py
Last active March 7, 2023 18:06 — forked from da-rth/komorebi_named_pipe.py
An example of how to have komorebi subscribe and send events to a named pipe in python
import win32pipe
import win32file
import pywintypes
import subprocess
import json
import time
KOMOREBI_BUFF_SIZE = 64 * 1024
KOMOREBI_PIPE_NAME = "yasb"
@peddamat
peddamat / setup-ioxy.sh
Created January 15, 2023 04:48
install ioxy
sudo apt update && sudo apt install -y golang-go
git clone https://github.com/NVISOsecurity/IOXY.git
cd IOXY/ioxy
CGO_CFLAGS="-g -O2 -Wno-return-local-addr" go build -ldflags="-s -w" .
./ioxy gui
@peddamat
peddamat / setup-mitm-transparent.sh
Last active January 20, 2023 23:42
mitm setup using hostapd and mitmproxy (--transparent) in kali
#!/bin/bash
# Based on: https://bumper.readthedocs.io/en/latest/Sniffing/
mkdir -p conf logs
cat > conf/dnsmasq.conf <<EOF
interface=wlan0
dhcp-range=192.168.1.2,192.168.1.30,255.255.255.0,12h
dhcp-option=3,192.168.1.1
@peddamat
peddamat / setup-mitm-bridged.sh
Last active January 15, 2023 05:19
mitm setup using hostapd in kali
#!/bin/bash
# Based on: https://mirzafahad.github.io/2021-03-07-wifi-rouge-access-point-part3/
sudo apt-get update && sudo apt-get install hostapd bridge-utils
mkdir conf
cat > conf/wifi_ap.config <<EOF
interface=wlan0
@peddamat
peddamat / child_text.js
Created February 3, 2018 13:05
Recursively print text for child nodes
var getText = function( elems ) {
var ret = "", elem;
for ( var i = 0; elems[i]; i++ ) {
elem = elems[i];
// Get the text from text nodes and CDATA nodes
if ( elem.nodeType === 3 || elem.nodeType === 4 ) {
alert(elem.nodeValue);
ret += elem.nodeValue;

choco install GoogleChrome googlechrome.canary 7zip resophnotes visualstudiocode sandboxie python foxitreader vlc spotify paint.net teracopy intellijidea-community

import socket
import threading
import socketserver
import time
import nRF24L01p
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
"""Thread class"""
def handle(self):
while 1:
@peddamat
peddamat / TCP_Server.py
Last active December 19, 2015 10:29 — forked from klalle/nRF24L01p.py
import socket
import threading
import socketserver
import time
import nRF24L01p
class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
"""Thread class"""
def handle(self):
while 1:
Matrix dx(Matrix A) {
int M = A.getRowDimension();
int N = A.getColumnDimension();
Matrix R = new Matrix(M, N);
for (int y = 0; y < M; y++)
for (int x = 1; x < N-1; x++) {
double d1 = A.get(y,x-1);
Matrix dy(Matrix A) {
int M = A.getRowDimension();
int N = A.getColumnDimension();
Matrix R = new Matrix(M, N);
for (int y = 1; y < M-1; y++)
for (int x = 0; x < N; x++) {
double d1 = A.get(y-1,x);