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 / bettercap.md
Created June 24, 2023 01:47 — forked from siddolo/bettercap.md
bettercap webui from docker

bettercap webui from docker

create volume

docker volume create bettercap

bootstrap/update

Only run caplets.update the first time as every time the entire system caplets folder is replaced with the downloaded contents from github, overwriting your changes, such as the credentials, with default values. You can either backup your changes and restore them later in the system folder, or simply copy the changed caplet files in bettercap’s working directory, in which case they’ll be loaded before the ones installed system wide. https://www.bettercap.org/usage/

@racerxdl
racerxdl / jit.go
Created July 11, 2022 23:06
Golang JIT PoC
package main
import (
"github.com/edsrzf/mmap-go"
"reflect"
"unsafe"
)
// Addr returns the address in memory of a byte slice, as a uintptr
func Addr(b []byte) uintptr {
@racerxdl
racerxdl / readme.md
Created June 22, 2022 19:08
Initialize unfused JCOP card
java -jar gp.jar -d \
  -a 00a4040010C238E449F725B1510EAA699550CABA16 \
  -a 00f00000 \
  -a c0d6030510404142434445464748494a4b4c4d4e4f \
  -a c0d6032110404142434445464748494a4b4c4d4e4f \
  -a c0d6033D10404142434445464748494a4b4c4d4e4f
@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 / 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 / reverse.md
Last active March 21, 2022 16:57
Reverse Engineering Tool List
@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 / 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
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,