Merge branch 'master' of https://github.com/JakeGinesin/nix-dots
This commit is contained in:
13
flake.nix
13
flake.nix
@@ -1,17 +1,6 @@
|
|||||||
{
|
{
|
||||||
description = "NixOS system configuration";
|
description = "NixOS system configuration";
|
||||||
|
|
||||||
nixConfig = {
|
|
||||||
# substituters = [
|
|
||||||
# "https://cache.nixos.org/"
|
|
||||||
# "https://nix-community.cachix.org"
|
|
||||||
# ];
|
|
||||||
# trusted-public-keys = [
|
|
||||||
# "cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
|
||||||
# "nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
||||||
# ];
|
|
||||||
};
|
|
||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||||
home-manager = {
|
home-manager = {
|
||||||
@@ -26,7 +15,7 @@
|
|||||||
nixpkgs,
|
nixpkgs,
|
||||||
home-manager,
|
home-manager,
|
||||||
agenix,
|
agenix,
|
||||||
}: let
|
} @ inputs: let
|
||||||
baseModule = {
|
baseModule = {
|
||||||
# imports = [
|
# imports = [
|
||||||
# home-manager.nixosModules.default
|
# home-manager.nixosModules.default
|
||||||
|
|||||||
20
home/scripts/security/subenum.sh
Normal file
20
home/scripts/security/subenum.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
if [ -z "$1" ]; then
|
||||||
|
echo "Usage: $0 <domain>"
|
||||||
|
echo "Example: $0 example.com"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
[ -f /tmp/domains ] && rm /tmp/domains
|
||||||
|
[ -f /tmp/subs ] && rm /tmp/subs
|
||||||
|
[ -f /tmp/jsonl ] && rm /tmp/jsonl
|
||||||
|
touch /tmp/domains
|
||||||
|
touch /tmp/subs
|
||||||
|
touch /tmp/jsonl
|
||||||
|
domain=$1
|
||||||
|
amass enum -d "$1" 2>&1 | tee /tmp/domains
|
||||||
|
cat /tmp/domains | grep '(FQDN)' | sed -E 's/\s*\(FQDN\).*//g' | grep "\.$1" | sort -u 2>&1 | tee /tmp/subs
|
||||||
|
httpx -l /tmp/subs -sc -cl -ct -title -server -ip -asn -cdn -jarm -favicon -wc -lc -rt -td -extract-fqdn -json -silent -ob -irh=false -irr=false -include-chain=false > /tmp/jsonl
|
||||||
|
cat /tmp/jsonl | jq -r '{input, title, url, port, timestamp, scheme, webserver, content_type, host, method, path, favicon_url, time, a, aaaa, tech: (.tech | join(", ")), words, lines, status_code, content_length, resolvers, body_fqdn: (.body_fqdn | join(", "))}'
|
||||||
|
rm /tmp/domains
|
||||||
|
rm /tmp/subs
|
||||||
|
rm /tmp/jsonl
|
||||||
3
home/scripts/security/subs2.txt
Normal file
3
home/scripts/security/subs2.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
jakegines.in
|
||||||
|
joselyn.ns.cloudflare.com
|
||||||
|
roman.ns.cloudflare.com
|
||||||
@@ -18,7 +18,7 @@
|
|||||||
# CPU_MIN_PERF_ON_BAT = 0;
|
# CPU_MIN_PERF_ON_BAT = 0;
|
||||||
|
|
||||||
CPU_MAX_PERF_ON_AC = 100;
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
CPU_MAX_PERF_ON_BAT = 100;
|
CPU_MAX_PERF_ON_BAT = 90;
|
||||||
|
|
||||||
# Platform Profile
|
# Platform Profile
|
||||||
PLATFORM_PROFILE_ON_AC = "performance";
|
PLATFORM_PROFILE_ON_AC = "performance";
|
||||||
|
|||||||
Reference in New Issue
Block a user