Skip to content

Instantly share code, notes, and snippets.

@saikyun
saikyun / zig_watch.clj
Last active April 8, 2021 09:40
babashka command to watch a folder for changes to .zig-files
#!/usr/bin/env bb
(if *command-line-args*
(def in (str (first *command-line-args*)))
(do
(println "Which bin to run?")
(def in (str *input*))))
(println "Watching" "*.zig" "->" (str "./" in))
@liquidz
liquidz / aws_logs_core.clj
Last active June 3, 2021 18:55
AWS CLI wrapping script by Babashka
(ns aws.logs.core
"AWS CLI wrapper for `logs` service
https://docs.aws.amazon.com/cli/latest/reference/logs/index.html
You need to install AWS CLI and run `aws configure` beforehand."
(:require
[cheshire.core :as json]
[clojure.java.shell :as shell]
[clojure.string :as str]))
package news
// FuncNews ...
type FuncNews struct {
Get func() ([]string, error)
}
// News ...
type News *FuncNews
@jhaddix
jhaddix / Github bash generated search links (from hunter.sh)
Created January 12, 2020 19:55
Github bash generated search links (from hunter.sh)
import typing as t
from handofcats import as_command
@as_command
def hello(name: str, nick_name: t.Optional[str] = None) -> None:
print(f"hello {name}")
if nick_name is not None:
print(f" {nick_name}?")
@jerblack
jerblack / tee.go
Last active May 7, 2025 20:18
Golang: Mirror all writes to stdout and stderr in program to log file
package main
import (
"fmt"
"io"
"log"
"os"
)
func main() {
@jhaddix
jhaddix / amass_intel_for_loop
Created November 21, 2019 05:29
Foir loop to run amass intel for easy killing of single thread
for i in $(cat yahoobgp); do echo""; echo "ASN $i";echo ""; amass.netdomains -asn $i;echo ""; done
@gabemarshall
gabemarshall / zgrab.sh
Created November 7, 2019 21:39
Zgrab2 helper script to include the http(s) port in the output
#!/bin/bash
#
# ex: ./zgrab.sh www.contoso.com 443
echo $1 | zgrab2 http --retry-https --port $2 | awk '{first=substr($0,1,1);gsub(/./,"{\"port\":'"$2"',",first);end=substr($0,2);print first end}'
@0xdeadbife
0xdeadbife / ASN_discovery.md
Last active August 12, 2020 09:05
ASN discovery checklist/cheatsheet to get some juicy web targets for bug hunting purposes.

ASN Discovery

Checklist

  • Get ASN of target
  • Get IP ranges
  • Masscan all the ranges (common web ports)
  • Double check to verify hosts alive
  • Generate URL list
  • Bruteforce all the URLs
@voluntas
voluntas / shiguredo_slack.rst
Last active October 29, 2020 20:21
時雨堂を支える Slack 運用方法

時雨堂を支える Slack 運用方法

日時:2020-04-21
作:時雨堂
バージョン:2020.1
URL:https://shiguredo.jp/

日々追記していきます。