Skip to content

Instantly share code, notes, and snippets.

View cryptolok's full-sized avatar

Maksym Zaitsev cryptolok

View GitHub Profile
@cryptolok
cryptolok / FirmAD.sh
Created February 28, 2018 00:24
Firmware Automatic Dumping & Extraction Tool
#!/bin/bash
# this tool will automate firmware extraction and unpacking using FT232R-type adaptors (like BusPirate) and a SOIC clip placed on a chip to dump
# install the necessary software:
#$ sudo apt install flashrom binwalk || echo 'git clone?'
# pump up binwalk with additional packages and libraries
#$ bash <(curl -s https://raw.githubusercontent.com/devttys0/binwalk/master/deps.sh)
# place the clip on the chip, connect it to the adaptor, which sould be connected to your PC (with drivers installed) and launch the script:
# chip => clip => adaptor => PC => script
@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"
@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 / dbm2m.py
Last active February 13, 2025 09:33
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 / vMetaDate.sh
Last active February 12, 2025 05:26
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 / 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
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
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
@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
@cryptolok
cryptolok / thesis.txt
Last active November 10, 2018 16:31
Graduation Research Thesis - Password Authentication Alternatives
https://goo.gl/giXPzC