Skip to content

DouglasFreshHabian/Bash_Scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

86 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

License: MIT Size Maintained Shell Script Using Linux Status: Stable Kali Linux

Header

Typing SVG

πŸ“œ A Small Collection of Very Basic Bash Scripts πŸ“œ

Summary of each Bash Script:

Script Summary:

This Bash script automates the process of gathering detailed system information for an AMD GPU setup. It collects basic configuration details, creates logs on system status, and performs in-depth analysis using commands like lshw, lspci, dmidecode, and more. It saves all collected data in a designated directory for future reference and troubleshooting.

πŸ”­ Lookup.sh

Script Summary:

This Bash script processes a log file to extract unique IP addresses, then performs geoiplookup and whois lookups for each address. It prints the results to the terminal and saves them to a file, while filtering and formatting the output for readability. It also checks for internet connectivity and handles errors, such as IP addresses with no information available. The script generates a detailed report, including any IP addresses that returned no data, and saves the results with a timestamped filename.

Script Summary:

This Bash script generates multiple random passwords using OpenSSL. The user is prompted to specify the desired password length, and the script then generates and displays 10 passwords, each with the specified length, using base64-encoded random data.

🐠 cheat.fish

Script Summary:

This Bash script provides shell autocompletion for the cheat command in the Fish shell. It defines auto-completion for various cheat command options like list, search, edit, and tags, enhancing the user's experience by suggesting valid arguments and options based on existing cheatsheets and available commands.

Script Summary:

This Bash script automates the setup of a Raspberry Pi development environment for programming the Raspberry Pi Pico. It installs dependencies, clones necessary Git repositories, and builds essential tools like the SDK, examples, picotool, picoprobe, and OpenOCD. It also configures the Raspberry Pi for UART usage and optionally installs Visual Studio Code with relevant extensions for development. The script handles all tasks, including dependency management and environment configuration, ensuring a smooth development setup.

βš™οΈ sysbenchtest.sh

Script Summary:

This Bash script runs a series of performance benchmarks using sysbench to test the CPU, file I/O, and memory performance of the system. It performs CPU stress tests with different thread configurations, evaluates file I/O with sequential write operations on a large file, and checks memory performance with a set memory block size. The script also cleans up the file I/O test data after completion.

πŸšΆβ€firmwalker.sh

Script Summary:

A simple bash script for searching the extracted or mounted firmware file system.

It will search through the extracted or mounted firmware file system for things of interest such as:

  • etc/shadow and etc/passwd
  • list out the etc/ssl directory
  • search for SSL related files such as .pem, .crt, etc.
  • search for configuration files
  • look for script files
  • search for other .bin files
  • look for keywords such as admin, password, remote, etc.
  • search for common web servers used on IoT devices
  • search for common binaries such as ssh, tftp, dropbear, etc.
  • search for URLs, email addresses and IP addresses
  • Experimental support for making calls to the Shodan API using the Shodan CLI

πŸ“› hostname.sh

Script Summary:

A Bash script that offers many different ways to change the hostname of a linux machine including:

  • randomnly using a built in random name generator
  • manually by providing a hostname
  • using included wordlists

🏴 banner.sh

Script Summary:

Randomly produce a different colored banner each time you run it. Replace the banner and enjoy. Great for use inside of other scripts.

🌐 encrypt.sh

Script Summary:

A simple bash script that can both encrypt and decrypt a file using gpg.

🀡 freshcrypt.sh

Script Summary:

A simple bash script based off of encrypt.sh that encrypts or decrypts a file on the command line using gpg with added details including ascii art.

Script Summary:

A simple bash script based off of passwordGenerator.sh that allows you to set not only the number of characters in each password but also the number of passwords generated. As with all fresh scripts, it includes custom ascii art...

πŸš€ freshsh33t.sh

Script Summary:

This is a Bash script designed to manage personal cheat sheets in the cheat command-line utility. It allows users to copy, remove, verify the path, or view an ASCII banner for their cheat sheets. The script includes fun features like color-coded output and lolcat-generated messages.

πŸ’£ freshmac.sh

Script Summary:

A Simple Bash Script that lists interfaces, brings down the interface of choosing, changes its mac address, removes any blocks and brings the interface back up.

Script Summary:

The script performs a network health check by testing connectivity, DNS resolution, and bandwidth usage, while displaying the results with colored output and a random ASCII banner.

πŸŒ€ cloneRepo

Script Summary:

This script allows you to interactively browse and selectively clone public repositories from any GitHub user by leveraging the GitHub REST API and jq.

πŸ“‘ udevMagic

Script Summary:

A script to easily rename external network adapters by creating and managing Udev rules based on MAC addresses.

Script Summary:

A unified, powerful script to securely erase your shell history and replace it with realistic fake entries. Supports Bash, Zsh, Fish, Ksh, and Tcsh automatically. Includes randomized cronjob support for ongoing protection!

Script Summary:

A simple Bash script with colorization that attempts to install every single tool inside of the TOOLS array. Add tools to the array or remove tools from the array.

πŸ”Œ io-ng.sh

Script Summary:

A simple Bash script that monitors USB device connections in real-time, displaying color-coded vendor and product IDs.

πŸ” extract.sh

Script Summary:

A compact forensic helper script that performs a quick, non-invasive snapshot of an Android device via adb. Collects device identifiers, build info, installed packages, battery and basic dumpsys outputs, and a snapshot of logcat. Results are saved into a timestamped folder.

πŸ“± dumpsys.sh

Script Summary:

A more thorough forensic capture for Android devices. Designed to extract extended diagnostics and accessible app/system artifacts, perform detailed dumpsys for key services, and organize results for later analysis. Intended for situations where more context and deeper system snapshots are required.

✈️ AirScope.sh

Script Summary:

Colorful, ADB-powered Wi-Fi radar that scans, sorts, and visualizes nearby networks by signal strength, band, and channel right from your terminal.

Script Summary:

A bash script that uses ADB to scan installed Android packages and extract any secret dialer codes, logging them with device info to a timestamped file.

πŸ“ gpsExtract.sh

Script Summary:

This script extracts the GPS latitude and longitude from a single image using exiftool and outputs the coordinates along with a ready-to-use Google Maps link.

πŸ—ΊοΈ gps.sh

Script Summary:

Simple Bash script scans a folder of images, extracts their GPS coordinates with exiftool, and saves filenames, latitude/longitude, and Google Maps links into a CSV file.

Script Summary:

A playful Bash script that mimics Linux package updates and installations with dynamic, fully cosmetic terminal output.

🐍 customOIDs.py

Script Summary:

This Python script generates and prints all Object Identifiers (OIDs) in the hexadecimal range 0x5f0000 to 0x5fffff, formatted as six-digit hex values.

πŸ’‘Remember: Make each script executable with chmod +x

Interested In More Bash? Check out my Bash Equalizer called BashBeats

asciicast

About

A Small Collection of Very Basic Bash Scripts That I Use Regularly. πŸͺ™πŸ’²πŸ’°

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published