Skip to content

Instantly share code, notes, and snippets.

View bastibl's full-sized avatar

Bastian Bloessl bastibl

View GitHub Profile
@bastibl
bastibl / main.rs
Created August 23, 2022 12:02
FutureSDR Mocked Apply Block
use futuresdr::blocks::Apply;
use futuresdr::runtime::Mocker;
use rand::Rng;
use std::time;
const NUM_SAMPLES: usize = 100_000_000;
fn main() {
let input: Vec<u8> = rand::thread_rng()
.sample_iter(rand::distributions::Uniform::<u8>::new(0, 127))
#!/usr/bin/env python
import time
import socket
from scapy.all import *
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
frame = Dot15d4FCS()\
/Dot15d4Data(dest_panid=0x4242, dest_addr=0x2323)\
#!/usr/bin/env python
import socket
import time
from scapy.all import *
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
frame = Dot11FCS(addr1='ff:ff:ff:ff:ff:ff', addr2='23:23:23:23:23:23', addr3='23:23:23:23:23:23')\
//=======================================================================
// ARCHIVE
//=======================================================================
var archive = function() {
var posts = [];
function bufferContents(file, enc, cb) {
var p = {
#!/usr/bin/env python
from __future__ import print_function
from apiclient import discovery
from oauth2client import client
from oauth2client import tools
from oauth2client.file import Storage
import datetime
@bastibl
bastibl / spectrum.py
Last active March 21, 2021 04:25
ath9k spectrum sensing
#!/usr/bin/env python
#
# Copyright 2015 Bastian Bloessl <bloessl@ccs-labs.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,