Skip to content

Instantly share code, notes, and snippets.

@foo0x29a
foo0x29a / recon_automation
Last active September 2, 2021 19:43
Create links from Sublist3r
python sublist3r.py -n -d domain.com | tee domain.com \
&& awk '{print "<li><a href=\"https://"$1"\">"$1"</a></li>" }' domain.com > links.html
# gitleaks
curl https://api.github.com/orgs/line/repos?per_page=100 | jq ".[].html_url" | tr -d \" > repos.txt
# OPS
## Networking troubleshooting
https://www.redhat.com/sysadmin/beginners-guide-network-troubleshooting-linux
## Slow server
https://www.redhat.com/sysadmin/troubleshooting-slow-servers
## Load
http://www.brendangregg.com/blog/2017-08-08/linux-load-averages.html
https://www.tldp.org/LDP/intro-linux/html/sect_04_03.html#sect_04_03_04
@foo0x29a
foo0x29a / sort.go
Last active March 17, 2019 05:26
Sorting in Golang
package main
import (
"fmt"
)
func bubbleSort(s[]int) []int {
A := make([]int, len(s))
copy(A, s)
@foo0x29a
foo0x29a / Dockerfile
Created February 24, 2019 14:00
BIND9
FROM ubuntu:bionic
RUN apt-get update \
&& apt-get install -y \
bind9 \
bind9utils \
bind9-doc
# Enable IPv4
RUN sed -i 's/OPTIONS=.*/OPTIONS="-4 -u bind"/' /etc/default/bind9
@foo0x29a
foo0x29a / db.nagoya-foundation.com
Created February 24, 2019 13:37
/etc/bind/zones/db.nagoya-foundation.com
$TTL 604800
@ IN SOA ns1.nagoya-foundation.com. root.nagoya-foundation.com. (
3 ; Serial
604800 ; Refresh
86400 ; Retry
2419200 ; Expire
604800 ) ; Negative Cache TTL
;
; name servers - NS records
IN NS ns1.nagoya-foundation.com.
@foo0x29a
foo0x29a / named.conf.local
Last active February 24, 2019 13:08
/etc/bind/named.conf.local
zone "nagoya-foundation.com" {
type master;
file "/etc/bind/zones/db.nagoya-foundation.com";
};
@foo0x29a
foo0x29a / named.conf.options
Created February 24, 2019 13:05
/etc/bind/named.conf.options
options {
directory "/var/cache/bind";
recursion yes;
listen-on { any; };
forwarders {
8.8.8.8;
8.8.4.4;
};
predicted: [1 1 0 0 1]
true: [1 0 0 1 1]
confusion matrix:
[[1 1]
[1 2]]
digraph Tree {
node [shape=box] ;
0 [label="H <= 0.5\nentropy = 0.996\nsamples = 13\nvalue = [6, 7]\nclass = 1"] ;
1 [label="Idade <= 28.5\nentropy = 0.971\nsamples = 10\nvalue = [6, 4]\nclass = 0"] ;
0 -> 1 [labeldistance=2.5, labelangle=45, headlabel="True"] ;
2 [label="B <= 0.5\nentropy = 0.918\nsamples = 6\nvalue = [2, 4]\nclass = 1"] ;
1 -> 2 ;
3 [label="Idade <= 26.0\nentropy = 0.918\nsamples = 3\nvalue = [2, 1]\nclass = 0"] ;
2 -> 3 ;
4 [label="entropy = 0.0\nsamples = 2\nvalue = [2, 0]\nclass = 0"] ;
k = 1
predicted: [1 1 0 0 0]
true: [1 0 0 1 1]
confusion matrix:
[[1 1]
[2 1]]
k = 2
predicted: [1 1 0 0 0]
true: [1 0 0 1 1]