Skip to content

Instantly share code, notes, and snippets.

View winshaurya's full-sized avatar
♨️
just took warm bath

Shaurya Mishra winshaurya

♨️
just took warm bath
View GitHub Profile
@winshaurya
winshaurya / rxnx_example.md
Last active March 28, 2026 22:33
Example Usage of rxnx like netcat

example usage

the tool will feel exactly like classic netcat (nc), but every packet sent or received will be a properly formatted rx call.here are some examples

1. client mode, sending data to an openafs fileserver (common admin test)

$ echo -n -e '\x00\x01\x02\x03' | rxnc fs.example.com 7000 --service 1 --sec none
# data is sent as a valid rx call; tool exits cleanly after transmission.
@winshaurya
winshaurya / libclang-parser.py
Created March 27, 2026 13:17
ffigen c++ libclang prototype parser simple libclang prototype that parses c++ classes methods inheritance and namespaces exactly from the proposal examples. pure parsing only no code generation. this is what liam asked for. just run it with python ffigen-cpp-prototype-libclang-parser.py
import clang.cindex
import sys
import os
# sample c++ headerr
CPP_CODE = """
class Calculator {
public:
Calculator();
int add(int a, int b);