{"repo":"merces/bashacks","free":true,"listed":false,"github":"https://github.com/merces/bashacks","clone":"git clone https://github.com/merces/bashacks.git","description":"A set of functions to increase productivity while hacking with Bash","language":"Shell","stars":210,"topics":["bash-hacks","malware-analysis","command-line","oneliners"],"license":"GPL-3.0","category":"security-tools","readme_excerpt":"bashacks What? bashacks is a collection of bash functions likely to be useful for programmers, security analysts, and general users who need low-level operations. In fact, there is nothing really new in bashacks; all functions are written using existing software in UNIX-like systems. However, it lets you use shorter commands to perform tasks that would normally require multiple commands. Requirements bash = 4 bc binutils coreutils curl file grep hexdump html2text perl sed wget xxd zip Building Use the make command to generate a single file containing all functions and source it: That's all. You can now check the available functions from a new terminal typing bh and pressing Tab . If you want to make it persistent, add it to your /.bash profile : Documentation There's some, but it is outdated. PRs are welcome! Usage What is the current time in Epoch? Alphabetically add 4 to 'f' Check my external IP address Create a basic C program skeleton This would output: Calculate common checksums for files Find files by MIME type (ignores file extension): You could pipe the results to xargs in order to calculate checksums quickly: Convert a string to hex in various output formats There is very basic error handling in bashacks. If a function does not receive the arguments it needs, it just returns 1 . There's much more. Install it and see for yourself. :) Known issues String escape In some string functions you have to escape special characters because bash will try to interpret them. See t","default_branch":null,"files":null,"tree":[],"storefront":"/r/merces","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/merces/bashacks/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}