Skip to content

Instantly share code, notes, and snippets.

View racerxdl's full-sized avatar
🔒
Invincible for those who don't have an screwdriver.

Lucas Teske racerxdl

🔒
Invincible for those who don't have an screwdriver.
View GitHub Profile
@racerxdl
racerxdl / url.cpp
Created April 15, 2022 15:43
C++ Implementation of golang URL package - I did that for a project, and I decided to save it here.
#include "common/url.h"
#include <fmt/format.h>
#include <cctype>
using namespace ProtoRock::Http;
enum EncodingMode {
encodePath = 1,
@racerxdl
racerxdl / reverse.md
Last active March 21, 2022 16:57
Reverse Engineering Tool List
@racerxdl
racerxdl / onelisten.go
Last active December 16, 2021 16:48
One program, to listen to all TCP ports. It actually doesnt listen, but sniff them. - Based on http://maycon.hacknroll.io/hacking-tricks/2019/11/05/trick-check-outgoing-ports.html
package main
import (
"fmt"
"github.com/google/gopacket"
"github.com/google/gopacket/layers"
"github.com/google/gopacket/pcap"
"time"
)
@racerxdl
racerxdl / readme.md
Created November 22, 2021 22:38
Software TPM2 Ubuntu 20.04
git clone https://github.com/stefanberger/libtpms/
sudo apt-get -y install automake autoconf libtool gcc build-essential libssl-dev dh-exec pkg-config dh-autoreconf
./autogen.sh --with-openssl
make dist
dpkg-buildpackage -us -uc -j4
# Install the library and development packages
cd ..
sudo dpkg -i libtpms_0.x.y-z..._amd64.deb libtpms-dev_0.x.y-z..._amd64.deb
@racerxdl
racerxdl / iommu.sh
Created November 15, 2021 23:37
List IOMMU groups
#!/bin/bash
for g in `find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V`
do
echo "IOMMU Group ${g##*/}:"
for d in $g/devices/*
do
echo -e "\t$(lspci -nns ${d##*/})"
done
done
@racerxdl
racerxdl / convencode.py
Created September 20, 2016 23:56
LRPT k=7 r=1/2 Convolution Encoder
#!/usr/bin/env python
import os, math
import collections
G1 = 0x79 # 171 octal
G2 = 0x5B # 131 octal
K = 7
UW = 0x1ACFFC1D
@racerxdl
racerxdl / SatHelperApp.cfg
Created September 2, 2021 19:21
RTLSDR R820T2 SatHelperApp config
Title = "SatHelperApp"
[Base]
SymbolRate = 927000
RRCAlpha = 0.3
Mode = "hrit"
Decimation = 1
AGCEnabled = true
DeviceType = "rtlsdr"
SendConstellation = true
@racerxdl
racerxdl / channelmuxer.py
Last active August 22, 2021 21:17
GOES Packet Assemble
#!/usr/bin/env python
import sys, struct, os, packetmanager
FRAMESIZE = 892
M_PDUSIZE = FRAMESIZE - 6
EXPORTCORRUPT = False
tsize = 0
isCompressed = True
module FIFO
#(
parameter NUMSAMPLES = 16,
parameter NUMBITS = 16
) (
input wire rclk,
input wire wclk,
input wire reset,
input wire [NUMBITS-1:0] wdata,
input wire readEnable,
@racerxdl
racerxdl / huebot.js
Last active July 16, 2021 13:28
Telegram <=> Slack Bot
#!/usr/bin/env node
// npm install slackbots node-telegram-bot-api
var TelegramBot = require('node-telegram-bot-api');
var SlackBot = require('slackbots');
// create a bot
var sBot = new SlackBot({
token: 'your-slack-bot-token', // Add a bot https://my.slack.com/services/new/bot and put the token