Skip to content

Instantly share code, notes, and snippets.

View hellresistor's full-sized avatar
💭
I may be slow to respond.

hellresistor hellresistor

💭
I may be slow to respond.
View GitHub Profile
@recluze
recluze / asterisk-installation-steps
Created June 25, 2018 12:40
asterisk-installation
First, update and upgrade all packages:
sudo apt-get update
sudo apt-get upgrade
sudo -i # Change to root
cd /usr/local/src
Main docs:
https://wiki.asterisk.org/wiki/display/AST/Installing+Asterisk+From+Source
@jamesbrink
jamesbrink / README.md
Created July 8, 2019 21:16
DDOS Iptables rules

Aggresive IPTables Rules

echo "service iptables restart"| at now + 2 min

iptables --flush

### Drop invalid packets ### 
iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
@HacKanCuBa
HacKanCuBa / find-https-debian-archives.py
Last active May 26, 2024 03:45 — forked from eighthave/find-https-debian-archives.py
Script to find official Debian mirrors that support HTTPS
#!/usr/bin/env python3
"""Find Debian HTTPS archives.
Script based on https://gist.github.com/eighthave/7285154
I made it asynchronous and parallel, so overall I measured it to be 6 times faster or more.
Requires Python 3.7+
Additional resources not exactly related to this script but could be helpful for
@jaonoctus
jaonoctus / secp256k1_key_recover.sage
Last active July 22, 2025 20:25
How can you extract secret keys from ECDSA by doing: d = (((s1 * k) - h1) * r^-1) % n and how RFC6979 fix it
# Import needed libraries
import hashlib
# secp256k1 parameters
p = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F
a = 0
b = 7
n = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141
Gx = 55066263022277343669578718895168534326250603453777594175500187360389116729240
Gy = 32670510020758816978083085130507043184471273380659243275938904335757337482424