Skip to main content

Posts

Showing posts from December, 2024

Linux Terminologies

Linux Commands: From Basic to Advanced Linux Commands: From Basic to Advanced This post explores essential Linux commands, covering everything from navigating the file system to managing processes and more. It's a journey from basic to advanced usage. I. Basic File System Navigation These commands are your bread and butter for navigating the Linux file system: Command Description ls Lists files and directories in the current directory. Use ls -l for detailed information, ls -a to show hidden files, and ls -h for human-readable file sizes. cd Changes the current directory. cd .. goes up one directory, cd ~ goes to your home directory. pwd Prints the current working directory. mkdir Creates a new directory (e.g., mkdir my_directory ). Use mkdir -p path/to/new/directory to create parent directories as needed. rm Removes files (e.g., rm my_file.txt ). Use rm -r directory to remove a directory and its contents (be very careful with this!). rm -rf...

DAMN BASH

Bash Scripting: From Basic to Advanced Bash Scripting: From Basic to Advanced Bash (Bourne Again SHell) is a powerful command-line interpreter and scripting language commonly used in Linux and macOS environments. This post covers Bash scripting from basic commands to more advanced techniques. I. Basic Commands These commands are the building blocks of Bash scripting: Command Description ls Lists files and directories. cd Changes the current directory. pwd Prints the current working directory. mkdir Creates a new directory. rm Removes files or directories (use with caution!). cp Copies files or directories. mv Moves or renames files or directories. cat Displays file content. echo Prints text to the console. II. Variables Variables store data that can be used in your scripts: name="John Doe" echo "Hello, $name!" age=30 echo $((age + 5)) # Arithmetic operations III. Input/Output Redirection Redirect input an...

Git Basics Part 1

Git Basics Cheatsheet Git Basics Cheatsheet This cheatsheet covers essential Git commands for version control. These commands are fundamental for managing code and collaborating with others. Configuration Command Description git config --global user.name "Your Name" Sets your global username for Git commits. git config --global user.email "your.email@example.com" Sets your global email address for Git commits. git config --global core.editor "vim" Sets your default text editor for Git (e.g., vim, nano, code). Initializing a Repository Command Description git init Initializes a new Git repository in the current directory. git clone <repository_url> Clones a remote repository to your local machine. Working with Changes Command Description git status Shows the status of your working director...

Powershell Automation Basics - Part 1

Pentest Notes: PowerShell Automation - Basics Pentest Notes: PowerShell Automation - Basics These notes cover PowerShell automation for penetration testing, focusing on practical applications and techniques. What is PowerShell? A powerful scripting language and command-line shell built on the .NET framework, heavily integrated with Windows. Ideal for system administration and automation, making it a valuable tool for pentesters. Why PowerShell for Pentesting? Native to Windows: Pre-installed on most Windows systems. Object-oriented: Allows for complex data manipulation and interaction with APIs. Access to .NET Framework: Enables interaction with a vast library of classes and functions. Remoting capabilities: Execute commands on remote systems. Bypass security restrictions: Can be used to circumvent some security measures if not properly configured. Basic Syntax Cmdlets: Commands in PowerShell (e.g., Get-Process , Get-Service , Get-ChildItem ). P...