Skip to content

Instantly share code, notes, and snippets.

View Strykar's full-sized avatar
💭
What is Bash?

Avinash H. Duduskar Strykar

💭
What is Bash?
  • India
View GitHub Profile
@Strykar
Strykar / gist:888cd5efc073b5e92901a4ac9aec41a2
Created January 1, 2024 11:49
AuthnTrend ATKeyPro on Linux
$ sudo dmesg (snipped)
[ 7662.206806] usb 2-1.8.2: New USB device found, idVendor=31bb, idProduct=0622, bcdDevice= 1.00
[ 7662.206814] usb 2-1.8.2: New USB device strings: Mfr=2, Product=30, SerialNumber=xx
[ 7662.206818] usb 2-1.8.2: Product: ATKey.Pro-01xxxxxx
[ 7662.206821] usb 2-1.8.2: Manufacturer: AuthenTrend Technology Inc.
[ 7662.206824] usb 2-1.8.2: SerialNumber: 41544B45-0xxx-xxxx-xxxx-000001xxxxx
[ 7662.209307] hid-generic 0003:31BB:0622.0006: hiddev97,hidraw5: USB HID v2.00 Device [AuthenTrend Technology Inc. ATKey.Pro-01xxxxxx] on usb-0000:00:1d.0-1.8.2/input0
[ 7662.211121] hid-generic 0003:31BB:0622.0007: hiddev98,hidraw6: USB HID v2.00 Device [AuthenTrend Technology Inc. ATKey.Pro-01xxxxxx] on usb-0000:00:1d.0-1.8.2/input1
$ lsusb
@Strykar
Strykar / infnoise_openssl.txt
Created December 5, 2023 16:34
Infnoise OpenSSL engine test
$ openssl engine
Infnoise engine loaded.
(dynamic) Dynamic engine loading support
(infnoise) RNG engine using the infnoise TRNG
$ time openssl genrsa 4096
Infnoise engine loaded.
-----BEGIN PRIVATE KEY-----
MIIJQgIBADANBgkqhkiG9w0BAQEFAASCCSwwggkoAgEAAoICAQDQ6O8HFWoBtXei
NnSP4WRFC1HAvI56ikf8KsrxQroP4XAmNiZ5R5fzl7H++Yb9UzZEAsMHszgKw29J
@Strykar
Strykar / infnoise_info.txt
Last active December 5, 2023 16:37
Leetronics Infnoise info
$ lsusb
Bus 002 Device 013: ID 0403:6015 Future Technology Devices International, Ltd Bridge(I2C/SPI/UART/FIFO)
$ dmesg
[ 2624.100019] usb 2-1.8.1: new full-speed USB device number 13 using ehci-pci
[ 2624.206780] usb 2-1.8.1: New USB device found, idVendor=0403, idProduct=6015, bcdDevice=10.00
[ 2624.206786] usb 2-1.8.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 2624.206788] usb 2-1.8.1: Product: Infinite Noise TRNG
[ 2624.206789] usb 2-1.8.1: Manufacturer: 13-37.org
[ 2624.206790] usb 2-1.8.1: SerialNumber: 1337-EXXXXXXB
@Strykar
Strykar / selectiontobrowser.sh
Created December 3, 2023 08:58
Open URLs from Kitty terminal in a browser on Ctrl + Shift + left click
To kitty.conf, add:
map kitty_mod+o pass_selection_to_program ~/.bin/selectiontobrowser.sh
$ cat ~/.bin/selectiontobrowser.sh
#!/bin/bash
URL="http://www.google.com/search?q="
PRE_FORMAT_QUERY=$1
QUERY="${PRE_FORMAT_QUERY// /+}"
#!/usr/bin/env python3
import sys
import dns.resolver
def resolve_ips(domain, resolver):
ips = []
try:
ips += [str(rdata) for rdata in resolver.resolve(domain, 'A')]
except (dns.resolver.NoAnswer, dns.resolver.Timeout):
@Strykar
Strykar / weechat.conf
Last active December 25, 2022 07:35
A single file config for adding bots that probe Weechat's relay port to a Fail2ban jail (/etc/fail2ban/jail.d/weechat.conf)
[weechat]
filter =
enabled = false
banaction = nftables
action = nftables-allports[name=weechat]
backend = auto
logpath = /home/user/.local/share/weechat/logs/core.weechat.weechatlog
logencoding = utf-8
port = 9000
protocol = tcp
@Strykar
Strykar / gist:8db4f0e060e3811acee208686bf58a34
Created November 8, 2022 13:08 — forked from helloingob/gist:3efc7c4babaea3f921525a74e8f063b2
How to use aircrack-ng run by archlinux on a raspberry pi
Based on https://miloserdov.org/?p=659
Hardware:
- TP-Link TL-WN722N + TP-Link TL-ANT2408CL
- Raspberry Pi 3
1.) Get Archlinux für Raspberry
RaspArch Build 181117 (http://raspex.exton.se/?p=983)
Download (https://sourceforge.net/projects/rasparch/files/latest/download)
@Strykar
Strykar / weechat_cert.sh
Last active November 3, 2022 21:02
acme.sh reloadcmd for Weechat relay SSL cert
#!/bin/bash
# Acme.sh reloadcmd file
set -euf -o pipefail
# Setup the TLS file the way Weechat expects it
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/i5.xxx.in.key > /home/strykar/.config/weechat/ssl/relay.pem
/usr/bin/cat /home/strykar/.acme.sh/i5.xxx.in/fullchain.cer >> /home/strykar/.config/weechat/ssl/relay.pem
# Run the /relay sslcertkey command via Weechat's FIFO to reload the new cert
# Weechat's FIFO plugin must be loaded and running
2022-04-01 20:52:37,777 - pyradio.radio - INFO - <<<===--- Program start ---===>>>
2022-04-01 20:52:37,777 - pyradio.radio - INFO - TUI initialization on python v. 3.10.4 (main, Mar 23 2022, 23:05:40) [GCC 11.2.0] on Arch Linux (AUR)
2022-04-01 20:52:37,777 - pyradio.radio - INFO - Terminal supports 256 colors
2022-04-01 20:52:37,777 - pyradio.themes - DEBUG - _do_init_pairs: {'Stations': [7, 0], 'Status Bar': [0, 2], 'Normal Cursor': [0, 5], 'Active Cursor': [0, 2], 'Active Station': [2, 0], 'PyRadio URL': [4, 0], 'Messages Border': [3, 0], 'Edit Cursor': [7, 5], 'Colors': 8, 'Name': 'dark', 'Path': ''}
2022-04-01 20:52:37,778 - pyradio.player - INFO - Probing available multimedia players...
2022-04-01 20:52:37,778 - pyradio.player - INFO - Implemented players: mpv, mplayer, vlc
2022-04-01 20:52:37,779 - pyradio.player - INFO - <class 'pyradio.player.VlcPlayer'> supported.
2022-04-01 20:52:37,779 - pyradio.radio - DEBUG - body starts at line 2, ends at line 66
2022-04-01 20:52:37,782 - pyradio.radio - DEBU
IP Address Location
89.187.177.134 NYC
89.187.177.138 NYC
89.187.177.196 NYC
89.187.178.130 NYC
89.187.179.35 NYC
89.187.185.130 LAX
89.187.185.153 LAX