I’ve done quite a few CTF challenges which often include modifying files in your preferred distro in order to simplify access or make things accessible.
I’m talking about adding subdomains, variables for IP addresses, PoC’s filed away, files from the target that I deemed useful, scripts etc. What I found was doing these things repetitively in the beginning was helpful in developing immutable knowledge about commands and directories, but after a time it became a bit of a drag going editor by editor, command by command, to fully setup your environment to target whatever CTF you were going after.
This is why I created setup_env.
Press enter or click to view image in full size

The concept is simple, you have a script that can on the fly add hostnames to your /etc/hosts file, create a variable for the IP address of the target, and even create a directory with three subdirectories to organize your information.
Press enter or click to view image in full size

There are hundreds of different ways to achieve any of these things. But this way worked for me so I decided to share it for those that may just be getting started out or might want an easy to use tool to perform some environmental changes without opening editors or using commands to develop directories.
Sure, you can do any of those things relatively quickly…but I’m lazy lol. I hope this tool brings some help to my fellow lazy hackers. There was a link earlier in this post, but you can find setup_env here » https://github.com/tacitPanda/setup_env.git
Just use git clone [https://github.com/tacitPanda/setup_env.git](https://github.com/tacitPanda/setup_env.git') to get started.
From there, cd to the sertup_env folder and make the script executable using chmod +x setup_env.sh .
After you complete that step you can use mv to move the executable script to any folder within your $PATH, which you can find by using echo $PATH .
Whether you’re new to this or true to this when it comes to CTF’s and hacking I hope you find this tool useful. Eventually I may move into some more automation but for now this tool does exactly what it says, sets up your environment :)
I am completely open to suggestions and modifications because hacking is a team sport. See you at /root!