Skip to content

Instantly share code, notes, and snippets.

View b0bje's full-sized avatar

stevenK b0bje

  • Belgium
View GitHub Profile
@OrangeDrangon
OrangeDrangon / README.md
Last active March 31, 2024 20:08
BitBurner Contract Solvers

All of the scripts for contracts in Bitburner.

@sundowndev
sundowndev / GoogleDorking.md
Last active June 21, 2024 05:06
Google dork cheatsheet

Google dork cheatsheet

Search filters

Filter Description Example
allintext Searches for occurrences of all the keywords given. allintext:"keyword"
intext Searches for the occurrences of keywords all at once or one at a time. intext:"keyword"
inurl Searches for a URL matching one of the keywords. inurl:"keyword"
allinurl Searches for a URL matching all the keywords in the query. allinurl:"keyword"
intitle Searches for occurrences of keywords in title all or one. intitle:"keyword"
@rikka0w0
rikka0w0 / ft2232_to_digilent_jtag.md
Last active April 23, 2024 14:05
FT2232 to Digilent JTag for Xilinx FPGAs (ISE/Vivado)

The Digilent JTag uses FT2232, but its configuration EEPROM contains secrete data needed to be recoginzed by Xilinx ISE/Vivado. The following method only works on linux (tested on Ubuntu16.04), but the patched FT2232 doggle also works on Windows. Since WSL1 does not provide USB device access, the following method will not work for WSL1.

DONT use FT_Prog on offical Digilent cable, as it can trash the firmware! The offical eeprom contains secrete data that cannot be handled correctly by FT_Prog.

Here are steps to create a Digilent-like Jtag that can be used in Xilinx ISE and Vivado

  1. Install softwares: sudo apt-get install libftdi1 ftdi-eeprom
  2. Create a file "flash_digilent.conf" with the following content:
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;
@moorer2k
moorer2k / rtlsdr-decoder-setup.sh
Last active January 29, 2024 01:35
Automated setup created for DietPi on an RPI2 for RTL-SDR pager decoding using mutlimon-ng and pagermon. Uses version managers for node and python to keep it isolated + correctly compiled.
#DietPi setup script for RTL-SDR/Multimon-ng/Pagermon for decoding pager messages(FLEX/POCSAG etc.)
cat <<EOF >no-rtl.conf
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830
EOF
mv no-rtl.conf /etc/modprobe.d/
@fragolinux
fragolinux / full-update-node-red-server
Last active May 6, 2020 07:10
Full automatic update of a Debian/Ubuntu Node-Red server
sudo apt-get -y update
sudo apt-get -y install deborphan > /dev/null 2>&1
sudo apt-get -y upgrade
sudo apt-get -y dist-upgrade
deborphan -sz
sudo apt-get -y autoremove
sudo apt-get -y remove --purge $(deborphan)
sudo apt-get -y clean
sudo chown -R pi.pi ~/.node-red/node_modules
@B-Galati
B-Galati / tmux.sh
Last active September 8, 2022 13:00
tmux script example
#!/bin/bash
tmux has-session -t dev
if [ $? != 0 ]
then
tmux new-session -s dev -n "TEST" -d
tmux split-window -h -t dev:0
tmux split-window -v -t dev:0.1
tmux send-keys -t dev:0.0 'cd ~/foo/bar' C-m
tmux send-keys -t dev:0.1 'autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" test@test -t "cd ~/bar;bash"' C-m
@majek
majek / proxy.py
Created January 23, 2012 10:55
Python asyncore based tcp proxy
import asyncore
import errno
import os
import socket
import logging
import threading
log = logging.getLogger('tcp_proxy')
_map = {}