Skip to content

Instantly share code, notes, and snippets.

View cryptolok's full-sized avatar

Maksym Zaitsev cryptolok

View GitHub Profile
@cryptolok
cryptolok / OpenBSDportKnocking.sh
Created May 18, 2017 21:56
Port Knocking configuration using OpenBSD with knockd on SSH
# Port Knocking configuration using OpenBSD with knockd on SSH
#! DISCLAIMER !
# OpenBSD isn't an OS for Unix novices, thus I will omit deep details and just make some assumptions about your configuration
# Port Knocking, despite being a known network stealthing technique, was implemented essentially for Linux, I made a reliable, stable and portable configuration for OpenBSD (might also work for FreeBSD)
# install
export PKG_PATH=http://ftp.openbsd.org/pub/OpenBSD/6.1/packages/amd64/
pkg_add autoconf
@cryptolok
cryptolok / thesis.txt
Last active November 10, 2018 16:31
Graduation Research Thesis - Password Authentication Alternatives
https://goo.gl/giXPzC
@cryptolok
cryptolok / frenchRadios.txt
Last active December 13, 2017 17:56
French Civil Radios FM/AM Database
FM - https://gist.github.com/cryptolok/6f899b1a1047fab90c13b6dde9e8f384
AM - https://gist.github.com/cryptolok/58f2b781b80d02714d685a2fc09e81b8
Country City/Town Radio Frequency (kHz) Power (dbs)
FR PARIS France Bleu 107.1 864 300
FR BESANCON France info 1494 5
FR BORDEAUX France info 1206 300
FR BREST France info 1404 20
FR CLERMONT-FERRAND France info 1494 20
FR DIJON France info 1404 5
FR GRENOBLE France info 1404 20
FR LILLE France info 1377 300
FR LIMOGES France info 792 300
Country City/Town Radio FM frequency (MHz) Power (dbs)
FR AGEN Virgin radio Agen 89.8 1
FR AGEN France inter 90.3 0.5
FR AGEN Radio bulle 93.6 1
FR AGEN France culture 94.4 0.5
FR AGEN France musique 96.7 0.5
FR AGEN RFM Lot-et-Garonne 98.5 1
FR AGEN NRJ 101.1 1
FR AGEN Sud radio 102.3 0.1
FR AGEN RMC 104.5 1
@cryptolok
cryptolok / ARProtect
Last active October 9, 2017 06:35
ultimate, simple and minimalistic UNIX ARP-MITM protection
#!/bin/bash
# ultimate, simple and minimalistic UNIX ARP-MITM protection by making gateway hardware address static just after DHCP and automatically after interface start
# place in /etc/network/if-up.d/ARProtect
if [[ "$IFACE" != "lo" && "$MODE" = "start" && "$ADDRFAM" = *[N,n]et* ]]
then
IP_GATEWAY=$(ip route | grep default | grep $IFACE | cut -d ' ' -f 3)
MAC=$(ip neigh show $IP_GATEWAY | cut -d ' ' -f 5)
arp -s $IP_GATEWAY $MAC
@cryptolok
cryptolok / vMetaDate.sh
Last active February 4, 2024 12:12
small tool to retreive vk.com (vkontakte) users hidden metadata (state, access, dates, counts, etc) anonymously (without login)
#!/bin/bash
# small tool to retreive vk.com (vkontakte) users hidden metadata (state, access, dates, counts, etc) anonymously (without login)
# sudo apt install curl
parse(){
local IFS=\>
read -d \< CELL VALUE
}
@cryptolok
cryptolok / dbm2m.py
Last active August 19, 2023 12:29
convert WiFi signal strength (dBm) to distance (meters)
#!/usr/bin/env python2
# a simple script for one of my articles - https://cryptolok.blogspot.com/2017/08/practical-wifi-hosts-triangulation-with.html
from math import log10
MHz=raw_input('MHz FREQUENCY (2417, 5200, ...) : ')
MHz=int(MHz)
dBm=raw_input('dBm TRANSMITTER POWER (23, 63, ...) : ')
@cryptolok
cryptolok / maclookup.sh
Created August 14, 2017 21:33
MAC address offline lookup
#!/bin/bash
MAC=$1
MAC=$(echo $MAC | tr [:lower:] [:upper:])
MAC=$(echo $MAC | tr ':' '-')
if [[ ! "$MAC" ]]
then
echo 'Usage: maclookup $MACADDRESS'
exit 1
@cryptolok
cryptolok / ps2b64.sh
Created September 3, 2017 14:39
PowerShell script Base64 encoder/obfuscator in BASH
#!/bin/bash
# PowerShell script Base64 encoder/obfuscator in BASH
PS=$1
if [[ -e "$PS" ]]
then
B64=$(iconv -t utf16le $PS | base64 | tr -d '\n')
# echo "powershell.exe -ExecutionPolicy ByPass -EncodedCommand $B64"