Universal code (3.7>) (PUBLIC)
Wachtwoord : su9TmZFDbK
https://pastebin.com/Yg0tcPH1
Target: "ls -l /tmp"
Wrong: ["ls -l /tmp"]
Right: ["ls", "-l", "/tmp"]
voorbeelden:
Add User : ["useradd", "-m", "username"]
Change Permissions : ["chmod", "755", "/path/to/file"]
Change Owner : ["chown", "user:group", "/path"]
Check Disk Space : ["df", "-h"]
Check Connectivity : ["ping", "-c", "3", "8.8.8.8"]
Create Directory : ["mkdir", "-p", "/path/to/dir"]
template: ["bash", "-c", "*command*"]
Count how many times each line appears: "bash", "-c", "sort names.txt | uniq -c | sort -nr"
Merge two files side-by-side: "bash", "-c", "paste file1.txt file2.txt > merged.txt"
Get any range of lines and redirect: "bash", "-c", "sed -n '2,10p' system.log > line_10_only.txt"
Get the first 10 lines and redirect: "bash", "-c", "head -n 10 large_file.log > output.txt""
Get the last 5 lines (latest logs) and append: "bash", "-c", "tail -n 5 system.log >> archive.log"
Count total lines in a file: "wc", "-l", "/etc/passwd"
Find and save to new file: "bash", "-c", "grep 'Failed' auth.log > failed_attempts.txt"
Get the 3rd column of a CSV (comma-separated): "cut", "-d,", "-f3", "data.csv"