Skip to content

Instantly share code, notes, and snippets.

View n0kovo's full-sized avatar
SEIZE THE MEANS OF COMPUTATION

n0kovo n0kovo

SEIZE THE MEANS OF COMPUTATION
View GitHub Profile
@n0kovo
n0kovo / html_out.py
Last active February 2, 2024 21:39
quick text formatter for Colab
import subprocess
from IPython.display import display, HTML
class StatusRunner:
def __init__(self, success_message="Command executed successfully, no output.", error_critical=True):
self.success_message = success_message
self.error_critical = error_critical
def __enter__(self):
@n0kovo
n0kovo / sickpipezm8.md
Created August 31, 2023 22:01
SICK PIPEZ M8 (1337 h4x0r edition)

SICK PIPEZ M8!

or: "A growing bunch of pseudo-one-liners from when I needed to accomplish something that turned into a shell scripting practice sesh instead because ADHD."


  • Get all subdomains from ProjectDiscovery Chaos

Parallel download jobs + extraction & parsing (pretty fucking fast). Requires: jq, unfurl

CORES_X2=$(( $(nproc) * 2 )); \
CORES_HALF=$(( $(nproc) / 2 )); \
LINES_PER_BLOCK=100000; \
@n0kovo
n0kovo / resolve.sh
Last active February 27, 2023 06:46
#!/usr/bin/env bash
# Description: Resolve domains from stdin and print the IPs to stdout (with progress bar)
# Example: cat domains.txt | ./resolve.sh | sort | uniq -c | sort -nr
# Progress bar printing to stderr
function progress_bar {
progress=$(( (${1} * 100 / ${2} * 100) / 100 ))
done=$(( (${progress} * 6) / 10 ))
left=$((60 - $done))
# Build progressbar string lengths

Keybase proof

I hereby claim:

  • I am n0kovo on github.
  • I am n0kovo (https://keybase.io/n0kovo) on keybase.
  • I have a public key ASBbzPD-6DO5PkQ_9zb-gCEPl2YMA8mSi8kXbnGohZ_RRAo

To claim this, I am signing this object:

@n0kovo
n0kovo / stream_download_to_webdav.zsh
Last active May 14, 2021 13:56
Download and stream a list of remote files to a WebDAV host using cURL, showing progress using Pipe Viewer
#!/bin/zsh
url_list_file="urls.txt"
total_urls=$(wc -l < $url_list_file)
webdav_url="https://webdav.somehost.com/directory"
webdav_user="[email protected]"
webdav_pass="YourPassword"
http_cookie_header="Cookie: foo=bar; bar=foo"
// ==UserScript==
// @name Make YouSee Modem (Kaon DG3420TD) Web Interface Username Field Editable
// @version 1.0
// @description Removes the readonly attribute from the router username input field, allowing you to log in as other users. Probably works for Orange Livebox, Swisscom and other devices running SoftAtHome firmware.
// @author narkopolo
// @match *://192.168.1.1/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require https://gist.github.com/raw/2625891/waitForKeyElements.js
// ==/UserScript==

Installing OpenSSL 1.0.2t (or any older version) on MacOS 11.1 Big Sur using Homebrew

Go to Homebrew dir:

cd /usr/local/Homebrew/

Checkout Brew version that will allow git install:

git checkout 2.3.0

@n0kovo
n0kovo / quantumblind.py
Last active November 13, 2020 14:03
Randonautica Quantum Blind Spot Implementation
import random
import math
import matplotlib.pyplot as plt
import quantumrandom
from global_land_mask import globe
import numpy as np
import argparse
import sys