Skip to content

Instantly share code, notes, and snippets.

View SubOptimal's full-sized avatar
🤓
the joy of coding - happy hacking

Frank Dietrich SubOptimal

🤓
the joy of coding - happy hacking
View GitHub Profile
@SubOptimal
SubOptimal / multicast-rcv.py
Created June 17, 2021 13:09 — forked from dksmiffs/multicast-rcv.py
Python 3 UDP multicast example, with only very minor modifications needed to this guidance: https://stackoverflow.com/a/1794373
# Multicast receiver
# Guidance: https://stackoverflow.com/a/1794373
import socket
import struct
MCAST_GRP = '224.1.1.1'
MCAST_PORT = 5007
IS_ALL_GROUPS = True
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP)
@SubOptimal
SubOptimal / GitHub Flavored Asciidoc (GFA).adoc
Created February 8, 2019 14:07 — forked from dcode/GitHub Flavored Asciidoc (GFA).adoc
Demo of some useful tips for using Asciidoc on GitHub

GitHub Flavored Asciidoc (GFA)

@SubOptimal
SubOptimal / InterceptorThing.ps1
Created January 31, 2018 06:45
Interceptor - Normal User No Admin Required.
<#
.SYNOPSIS
This script demonstrates the ability to capture and tamper with Web sessions.
For secure sessions, this is done by dynamically writing certificates to match the requested domain.
This is only proof-of-concept, and should be used cautiously, to demonstrate the effects of such an attack.
Function: Interceptor
Author: Casey Smith, Twitter: @subTee
License: BSD 3-Clause
@SubOptimal
SubOptimal / ReportCpuCount.java
Last active March 29, 2019 19:39 — forked from thomasdarimont/ReportCpuCount.java
Using LD_PRELOAD to pass a fake CPU count to Java on Linux
public class ReportCpuCount {
public static void main(String[] args) throws Exception{
while(true){
System.out.printf("#Found %d CPUs%n", Runtime.getRuntime().availableProcessors());
Thread.sleep(1000);
}
}
}