I want to create a script (script.sh) to change the contents of /etc/proxychains.conf. I would like to do it in the form of a menu though, so something like this:
After runing ./script.sh
[1] Add Proxychain
[2] Start Proxychains
[3] Exit
Please select an option:
If the user selects [1] I would like to to ask for these inputs:
Type of Proxy:
Proxy IP Address:
Proxy Port:
And use these inputs in this form: (socks5 127.0.0.1 9050) at the bottom of the file /etc/proxychains.conf where you would normally add your proxy info. I was thinking of maybe assigning each input like $type $ip $port (so you can display each field next to each other). But how can I make it so it automatically finds that spot in the file proxychains.conf and adds those fields to it under any other ones priviously added.
And After I would like to return back to the option menu where if the user presses [2] then it would run:
proxychains firefox
And of course after firefox closes I would like to bring back the menu where if the user selects [3] the it would echo "Goodbye" sleep 1s and exit.