From 9ac74d731c61b630b944dce3f0326755d75fbc99 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Mon, 19 May 2025 17:31:04 -0400 Subject: [PATCH 1/4] 395 current 2025-05-19 17:24:37 25.05.20250424.f771eb4 6.12.24 * --- flake.nix | 11 ----------- home/scripts/security/subenum.sh | 20 ++++++++++++++++++++ home/scripts/security/subs2.txt | 3 +++ hosts/rq/configuration.nix | 3 +++ 4 files changed, 26 insertions(+), 11 deletions(-) create mode 100644 home/scripts/security/subenum.sh create mode 100644 home/scripts/security/subs2.txt diff --git a/flake.nix b/flake.nix index 329860c..9f0d4e0 100644 --- a/flake.nix +++ b/flake.nix @@ -1,17 +1,6 @@ { 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 = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; home-manager = { diff --git a/home/scripts/security/subenum.sh b/home/scripts/security/subenum.sh new file mode 100644 index 0000000..7ed5760 --- /dev/null +++ b/home/scripts/security/subenum.sh @@ -0,0 +1,20 @@ +if [ -z "$1" ]; then + echo "Usage: $0 " + 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 diff --git a/home/scripts/security/subs2.txt b/home/scripts/security/subs2.txt new file mode 100644 index 0000000..adf66ae --- /dev/null +++ b/home/scripts/security/subs2.txt @@ -0,0 +1,3 @@ +jakegines.in +joselyn.ns.cloudflare.com +roman.ns.cloudflare.com diff --git a/hosts/rq/configuration.nix b/hosts/rq/configuration.nix index 41241a4..6eae446 100644 --- a/hosts/rq/configuration.nix +++ b/hosts/rq/configuration.nix @@ -2,6 +2,7 @@ config, pkgs, lib, + # inputs, ... }: let pkg_with_working_nitrogen = import (builtins.fetchTarball { @@ -61,6 +62,8 @@ in { identityPaths = ["/home/synchronous/.ssh/id_ed25519"]; }; + # nix.channels = {inherit nixpkgs;}; + # config = { # res = "1366x768"; # }; From 8b616ba7fe21a812e44776a603b23be286857274 Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Mon, 19 May 2025 18:50:55 -0400 Subject: [PATCH 2/4] 395 current 2025-05-19 17:24:37 25.05.20250424.f771eb4 6.12.24 * --- flake.nix | 2 +- hosts/rq/configuration.nix | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/flake.nix b/flake.nix index 9f0d4e0..33fc5c0 100644 --- a/flake.nix +++ b/flake.nix @@ -15,7 +15,7 @@ nixpkgs, home-manager, agenix, - }: let + } @ inputs: let baseModule = { # imports = [ # home-manager.nixosModules.default diff --git a/hosts/rq/configuration.nix b/hosts/rq/configuration.nix index 6eae446..41241a4 100644 --- a/hosts/rq/configuration.nix +++ b/hosts/rq/configuration.nix @@ -2,7 +2,6 @@ config, pkgs, lib, - # inputs, ... }: let pkg_with_working_nitrogen = import (builtins.fetchTarball { @@ -62,8 +61,6 @@ in { identityPaths = ["/home/synchronous/.ssh/id_ed25519"]; }; - # nix.channels = {inherit nixpkgs;}; - # config = { # res = "1366x768"; # }; From ba3e1397ebab318b8059af88fb6f752bf9c821bc Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Tue, 20 May 2025 13:22:17 -0400 Subject: [PATCH 3/4] 396 current 2025-05-20 13:21:28 25.05.20250424.f771eb4 6.12.24 * --- system/hardware/power-management/default.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/system/hardware/power-management/default.nix b/system/hardware/power-management/default.nix index 5fa97bd..5f0e742 100644 --- a/system/hardware/power-management/default.nix +++ b/system/hardware/power-management/default.nix @@ -5,13 +5,13 @@ settings = { # Performance Policy CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "performance"; - # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + # CPU_SCALING_GOVERNOR_ON_BAT = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; # Intel-pstate gives sluggish performance CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - # CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + # CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; # CPU Performance Caps # CPU_MIN_PERF_ON_AC = 0; @@ -22,8 +22,8 @@ # Platform Profile PLATFORM_PROFILE_ON_AC = "performance"; - # PLATFORM_PROFILE_ON_BAT = "low-power"; - PLATFORM_PROFILE_ON_BAT = "performance"; + PLATFORM_PROFILE_ON_BAT = "low-power"; + # PLATFORM_PROFILE_ON_BAT = "performance"; # Boost CPU_BOOST_ON_AC = 1; From b2cb768f56472baacd30ce4dfddf704a6eb4088a Mon Sep 17 00:00:00 2001 From: Jake Ginesin Date: Tue, 20 May 2025 13:30:31 -0400 Subject: [PATCH 4/4] 397 current 2025-05-20 13:29:53 25.05.20250424.f771eb4 6.12.24 * --- system/hardware/power-management/default.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/system/hardware/power-management/default.nix b/system/hardware/power-management/default.nix index 5f0e742..9268dd9 100644 --- a/system/hardware/power-management/default.nix +++ b/system/hardware/power-management/default.nix @@ -5,25 +5,25 @@ settings = { # Performance Policy CPU_SCALING_GOVERNOR_ON_AC = "performance"; - # CPU_SCALING_GOVERNOR_ON_BAT = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + CPU_SCALING_GOVERNOR_ON_BAT = "performance"; + # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; # Intel-pstate gives sluggish performance CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - # CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; + # CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_BAT = "performance"; # CPU Performance Caps # CPU_MIN_PERF_ON_AC = 0; # CPU_MIN_PERF_ON_BAT = 0; CPU_MAX_PERF_ON_AC = 100; - CPU_MAX_PERF_ON_BAT = 100; + CPU_MAX_PERF_ON_BAT = 90; # Platform Profile PLATFORM_PROFILE_ON_AC = "performance"; - PLATFORM_PROFILE_ON_BAT = "low-power"; - # PLATFORM_PROFILE_ON_BAT = "performance"; + # PLATFORM_PROFILE_ON_BAT = "low-power"; + PLATFORM_PROFILE_ON_BAT = "performance"; # Boost CPU_BOOST_ON_AC = 1;