Skip to content

Instantly share code, notes, and snippets.

View cryptolok's full-sized avatar

Maksym Zaitsev cryptolok

View GitHub Profile
@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 / 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 / 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, ...) : ')
#!/usr/bin/env bash
# sudo apt install hashcat
echo -e "\033[32m"
echo '
_ _ ___
/\/\ ___ __| (_) / _ \__ _ ___ ___
/ \ / _ \ / _` | |/ /_)/ _` / __/ __|
/ /\/\ \ (_) | (_| | / ___/ (_| \__ \__ \
@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 / win2usb.sh
Created June 12, 2018 22:03
Linux BASH script to make bootable Windows USB ISO image
#!/bin/bash
# sudo !!
echo "
__
,-~¨^ ^¨-, _,
/ / ;^-._...,¨/
/ / / /
@cryptolok
cryptolok / nvidia-2080ti-zotac-amp-extreme-hashcat-benchmark-linux570.txt
Created February 8, 2021 19:34
nvidia-2080ti-zotac-amp-extreme-hashcat-benchmark-linux570.txt
hashcat (v6.1.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
CUDA API (CUDA 11.2)
====================
* Device #1: GeForce RTX 2080 Ti, 10859/11016 MB, 68MCU
@cryptolok
cryptolok / nvidia-2080ti-zotac-amp-extreme-hashcat-benchmark-windows10.txt
Created February 8, 2021 15:32
nvidia-2080ti-zotac-amp-extreme-hashcat-benchmark-windows10.txt
hashcat (v6.1.1) starting in benchmark mode...
Benchmarking uses hand-optimized kernel code by default.
You can use it in your cracking session by setting the -O option.
Note: Using optimized kernel code limits the maximum supported password length.
To disable the optimized kernel code in benchmark mode, use the -w option.
* Device #1: WARNING! Kernel exec timeout is not disabled.
This may cause "CL_OUT_OF_RESOURCES" or related errors.
To disable the timeout, see: https://hashcat.net/q/timeoutpatch
@cryptolok
cryptolok / stm32f103c-blue-pill-overclock.sh
Last active February 7, 2021 02:07
stm32f103c-blue-pill-overclock.sh
#!/bin/bash
# you can use any desired programmer, like JTAG/ST-LINK
# assuming you're using Arduino IDE
# package : https://github.com/stm32duino/BoardManagerFiles/raw/master/STM32/package_stm_index.json
# the default library already should be at max stock clock (72MHz <=> RCC PLL multiplier of 9 for HSE crystal of 8MHz)
LIBVERSION=1.9.0
ARDVERSION=15
HOME=$HOME
BOARD=PILL_F103XX
#!/bin/bash
# vimdiff for assembly
# $ apt install vimdiff objdump
BIN1=$1
BIN2=$2
if [ ! "$BIN1" ] && [ ! "$BIN2" ]
then