Skip to content

Commit 9a7618d

Browse files
committed
now not refreshing every time & add args
Signed-off-by: Hadi <112569860+anotherhadi@users.noreply.github.com>
1 parent 1b95ed0 commit 9a7618d

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

index.md

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,20 @@ nav_order: 1
1010

1111
# Nix 4 cyber 🛡️
1212

13-
**Nix 4 Cyber** (or n4c) is a framework that uses the **Nix package manager** to provide reproducible cybersecurity **toolkits**. The project is organized into categories (e.g., OSINT, Web, Networking), each with a shell.nix file that defines its specific software environment.
13+
**Nix 4 Cyber** (or n4c) is a framework that uses the **Nix package manager** to
14+
provide reproducible cybersecurity **toolkits**. The project is organized into
15+
categories (e.g., OSINT, Web, Networking), each with a shell.nix file that
16+
defines its specific software environment.
1417

15-
This approach ensures that all dependencies are isolated and consistent, allowing users to perform security tasks with a predictable set of tools. The official documentation, including a full tool list and **usage examples**, is available at [n4c.hadi.diy](https://n4c.hadi.diy).
18+
This approach ensures that all dependencies are isolated and consistent,
19+
allowing users to perform security tasks with a predictable set of tools. The
20+
official documentation, including a full tool list and **usage examples**, is
21+
available at [n4c.hadi.diy](https://n4c.hadi.diy).
1622

1723
## 🚀 Usage
1824

19-
To use Nix 4 cyber, you need to have Nix installed on your system. You can then start the shell with the following command:
25+
To use Nix 4 cyber, you need to have Nix installed on your system. You can then
26+
start the shell with the following command:
2027

2128
```bash
2229
nix develop --refresh github:nix4cyber/n4c#<toolkit>
@@ -30,17 +37,19 @@ nix develop --refresh github:nix4cyber/n4c#osint
3037

3138
## 🧰 Available Toolkits
3239

33-
Here are the currently available environments, each providing a curated set of tools for its specific domain:
40+
Here are the currently available environments, each providing a curated set of
41+
tools for its specific domain:
3442

3543
### 🕸️ Web (web)
3644

37-
For web application penetration testing, including directory busting, spidering, and vulnerability analysis.
45+
For web application penetration testing, including directory busting, spidering,
46+
and vulnerability analysis.
3847
[See tools and guides &rarr;](https://n4c.hadi.diy/web/)
3948

4049
### 🕵️ OSINT (osint)
4150

42-
A collection of tools for Open Source Intelligence gathering from public sources.
43-
[See tools and guides &rarr;](https://n4c.hadi.diy/osint/)
51+
A collection of tools for Open Source Intelligence gathering from public
52+
sources. [See tools and guides &rarr;](https://n4c.hadi.diy/osint/)
4453

4554
### 🌐 Network (network)
4655

@@ -54,8 +63,8 @@ Tools focused on password and hash cracking.
5463

5564
### 👑 Privilege Escalation (privesc)
5665

57-
Scripts and tools to help with enumerating and exploiting privilege escalation vectors.
58-
[See tools and guides &rarr;](https://n4c.hadi.diy/privesc/)
66+
Scripts and tools to help with enumerating and exploiting privilege escalation
67+
vectors. [See tools and guides &rarr;](https://n4c.hadi.diy/privesc/)
5968

6069
### 🔍 Forensics (forensics)
6170

@@ -78,7 +87,10 @@ Add the following in your shell config:
7887

7988
```bash
8089
function n4c() {
81-
nix develop --refresh "github:nix4cyber/n4c#${1:-all}" # -c zsh # Escape the $ with ''$ in nix
90+
category=${1:-all}
91+
shift
92+
args=${*}
93+
nix develop "github:nix4cyber/n4c#${category}" ${args} # -c zsh # Escape the $ with ''$ in nix
8294
# mkdir -p /tmp/$(date +"%d%m%y") && cd /tmp/$(date +"%d%m%y") # To create a temporary directory
8395
}
8496
```
@@ -91,8 +103,15 @@ n4c <category>
91103

92104
## ⚖️ Disclaimer
93105

94-
Nix 4 Cyber is intended solely for lawful, ethical, and educational purposes. It is designed to assist cybersecurity professionals, researchers, and students in conducting authorized security assessments, penetration testing, and digital forensics within environments where they have explicit permission to operate.
106+
Nix 4 Cyber is intended solely for lawful, ethical, and educational purposes. It
107+
is designed to assist cybersecurity professionals, researchers, and students in
108+
conducting authorized security assessments, penetration testing, and digital
109+
forensics within environments where they have explicit permission to operate.
95110

96-
By using this project, you agree to comply with all applicable laws and regulations. The maintainers of Nix 4 Cyber are not responsible for any misuse of the tools or scripts provided. Unauthorized or malicious use of this project is strictly prohibited and may violate local, national, or international laws.
111+
By using this project, you agree to comply with all applicable laws and
112+
regulations. The maintainers of Nix 4 Cyber are not responsible for any misuse
113+
of the tools or scripts provided. Unauthorized or malicious use of this project
114+
is strictly prohibited and may violate local, national, or international laws.
97115

98-
Use responsibly. Always obtain proper authorization before conducting any security testing.
116+
Use responsibly. Always obtain proper authorization before conducting any
117+
security testing.

0 commit comments

Comments
 (0)