Skip to content

Instantly share code, notes, and snippets.

View aidoskz's full-sized avatar

Aidos aidoskz

  • Kazakhstan, Astana
View GitHub Profile
@aidoskz
aidoskz / README.md
Created January 13, 2022 11:52 — forked from jamesbrink/README.md
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
@aidoskz
aidoskz / sign.c
Created September 18, 2019 17:41 — forked from lattera/sign.c
Create a digital signature with an RSA private key and verify that signature against the RSA public key exported as an x509 cert. This is just a PoC and the code is pretty ugly.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <openssl/ssl.h>
#include <openssl/err.h>
@aidoskz
aidoskz / ducks.sh
Created October 29, 2018 11:39 — forked from thebouv/ducks.sh
ducks: linux command for the 10 largest files in current directory
du -cks * | sort -rn | head -11
# Usually set this up in my bash profile as an alias:
# alias ducks='du -cks * | sort -rn | head -11'
# Because it is fun to type ducks on the command line. :)