GithubHelp home page GithubHelp logo

athena-os / athena-nix Goto Github PK

View Code? Open in Web Editor NEW
104.0 7.0 9.0 246.03 MB

Athena OS Nix configuration files focused on Cybersecurity. Learn, practice and enjoy with any hacking tool!

Home Page: https://athenaos.org

License: MIT License

Shell 9.86% CSS 1.19% Lua 16.35% Nix 70.66% Scheme 1.01% SCSS 0.85% PowerShell 0.07%
cybersecurity hacking learning linux nix nixos os payload pentesting security security-tools

athena-nix's Introduction

Dive into a new Pentesting Experience with
Athena OS

Download Athena OS Download Athena OS

image

🏅Born for InfoSec Professionals, Bug Bounty Hunters, Passionate Students and Spicy Hackers🏅

Athena Nix

Athena Nix currently provides several configurations (still in test):

  • runtime

A configuration can be deployed in several ways:

Flakes

Remote

sudo nixos-rebuild switch --flake 'github:Athena-OS/athena-nix#runtime' --impure

Local

Running command inside athena-nix directory:

git clone https://github.com/Athena-OS/athena-nix
cd athena-nix
sudo nixos-rebuild switch --flake '.#runtime' --impure

Running command outside athena-nix directory:

sudo nixos-rebuild switch --flake '<local-path-to-dir-containing-flake.nix>/.#runtime' --impure

--impure is used because the deployment can be applied according to your hardware-configuration.nix.

Configuration

git clone https://github.com/Athena-OS/athena-nix
cd athena-nix
sudo nixos-rebuild switch -I nixos-config=nixos/configuration.nix

Notes

The default user and password in the configuration is athena:athena. Be sure to change user and password inside athena-nix/flake.nix file by editing username and hashed (or hashedRoot for your root account) attributes according to your needs when you deploy this configuration.

Passwords must be set as hash (i.e., SHA-512) instead of cleartext. To create it in a secure way run:

nix-shell -p openssl
openssl passwd -6 yourpassword

Finally, paste the generated hash in hashed or hashedRoot inside flake.nix.

The usage of nix-shell is important to create the password in an ephimeral environment, in order to not keep the command history stored in the system.

athena-nix's People

Contributors

akechishiro avatar d3vil0p3r avatar m15a avatar pinpox avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

athena-nix's Issues

[BUG]:

Athena OS version

Distributor ID: Athena OS Description: Athena OS 24.11 (Vicuña) Release: 24.11 Codename: vicuña

Which environment or technology are you using?

  • Baremetal
  • VirtualBox Virtual Machine
  • VMware Virtual Machine
  • Hyper-V Virtual Machine
  • QEMU/KVM
  • Parallels
  • UTM
  • Container
  • WSL

Kernel version

6.6.32

Involved software

No response

Repro steps

sudo nixos-rebuild switch --flake /etc/nixos#runtime --impure
error:
… while calling the 'seq' builtin

     at /nix/store/kp9wqy67xsqd2ccmyqr5zg2g90yjly73-source/lib/modules.nix:322:18:

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      323|         _module = checked (config._module);

   … while evaluating a branch condition

     at /nix/store/kp9wqy67xsqd2ccmyqr5zg2g90yjly73-source/lib/modules.nix:261:9:

      260|       checkUnmatched =
      261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
         |         ^
      262|           let

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: getting status of '/nix/store/nr3z3h2wb9cn5i1p7fs5m4dybpq8rvd0-source/nixos': No such file or directory

Expected behavior

No errors

Actual behavior

error:
… while calling the 'seq' builtin

     at /nix/store/kp9wqy67xsqd2ccmyqr5zg2g90yjly73-source/lib/modules.nix:322:18:

      321|         options = checked options;
      322|         config = checked (removeAttrs config [ "_module" ]);
         |                  ^
      323|         _module = checked (config._module);

   … while evaluating a branch condition

     at /nix/store/kp9wqy67xsqd2ccmyqr5zg2g90yjly73-source/lib/modules.nix:261:9:

      260|       checkUnmatched =
      261|         if config._module.check && config._module.freeformType == null && merged.unmatchedDefns != [] then
         |         ^
      262|           let

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: getting status of '/nix/store/nr3z3h2wb9cn5i1p7fs5m4dybpq8rvd0-source/nixos': No such file or directory

Diagnostic logs

No response

[BUG]: Athena OS is not going to install over NixOS (building problem)

Athena OS version

NixOS 23.11 (Tapir)

Which environment or technology are you using?

  • Baremetal
  • VirtualBox Virtual Machine
  • VMware Virtual Machine
  • Hyper-V Virtual Machine
  • QEMU/KVM
  • Parallels
  • UTM
  • Container
  • WSL

Kernel version

6.1.71

Involved software

No response

Repro steps

I used the commands:
sudo nix-channel --update,
nix-shell -p git,
git clone https://github.com/Athena-OS/athena-nix,
cd athena-nix/nixos,
sudo cp -rf home-manager hosts modules pkgs users configuration.nix default.nix /etc/nixos/,

and I get an error that reads:

The option `services.libinput' does not exist. Definition values:
       - In `/etc/nixos/modules/hardware':
           {
             enable = true;
           }

which prevented me from installing Athena OS over NixOS.
Zrzut ekranu z 2024-06-21 17-19-51

Expected behavior

I expect to see a properly built Athena operating system and zero errors while building it

Actual behavior

During the build process, the terminal returned several errors regarding the system build

Diagnostic logs

No response

[BUG]: the tools are not working and the welcome screen didn't show even

Athena OS version

\

Which environment or technology are you using?

  • Baremetal
  • VirtualBox Virtual Machine
  • VMware Virtual Machine
  • Hyper-V Virtual Machine
  • QEMU/KVM
  • Parallels
  • UTM
  • Container
  • WSL

Kernel version

[

Involved software

[

Repro steps

[

Expected behavior

[

Actual behavior

[

Diagnostic logs

[

[BUG]: Cannot install within Proxmox LXC due to lack of hardware-configuration.nix

Athena OS version

96cbc34

Which environment or technology are you using?

  • Baremetal
  • VirtualBox Virtual Machine
  • VMware Virtual Machine
  • Hyper-V Virtual Machine
  • QEMU/KVM
  • Parallels
  • UTM
  • Container
  • WSL

Kernel version

6.8.4-3-pve

Involved software

N/A

Repro steps

  1. Install NixOS on Proxmox with a generated LXC image
  2. Clone the athena-nix repo
  3. Run nixos-rebuild --flake .#runtime --impure

Expected behavior

Athena installs correctly

Actual behavior

error:
       Failed assertions:
       - The ‘fileSystems’ option does not specify your root file system.

This occurs due to a lack of hardware-configuration.nix (currently an empty attrset on my machine).

Diagnostic logs

No response

[ENHANCEMENT]: Forensics tools suggestion

  • acquire : Tool to quickly gather forensic artifacts from disk images or a live system
  • fatcat : FAT filesystems explore, extract, repair, and forensic tool
  • file : A program that shows the type of files
  • hstsparser : Tool to parse Firefox and Chrome HSTS databases into forensic artifacts
  • mac-robber : A digital investigation tool that collects data from allocated files in a mounted file system
  • ntfs-3g : FUSE-based NTFS driver with full write support
  • osquery : SQL powered operating system instrumentation, monitoring, and analytics
  • prowler : Security tool for AWS, Azure and GCP to perform Cloud Security best practices assessments
  • scalpel : Recover files based on their headers, footers and internal data structures, based on Foremost
  • tracee : Linux Runtime Security and Forensics using eBPF

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.