Skip to content

Pre req Configuration

brav0hax edited this page Oct 30, 2012 · 1 revision

With the latest version of easy-creds (v3.7) I attempted to make it possible to run the script on several different distros & flavors instead of just backtrack. I wanted to get away from the hardcoded paths for program calls so I started using 'locate' to identify paths. I found this attempt would work, but appeared to be quite clugy. After working on the pwnie edition, I decided that hardcoded paths are of course best, but wanted to give the users some control. What I ended up doing was setting up the path variables with paths that you can set properly. This allows easy-creds to operate properly and allows some level of flexibility.

Starting on line 118 in the script code, you will need to set your variable paths. This will only need to be done once. After you run the installer, all the prereqs should be installed. (If not you may have to do it manually) Just fire up easy-creds.sh in your favorite text editor (I use either nano of geany) and make the necessary changes.

You can use the following command to identify the necessary paths, which .

Example: root@bt:~# which asleap /usr/bin/asleap

Based on the information provided back, I would set the variable accordingly: asleappath="/usr/bin"

You'll notice I strip off "/asleap" as all we need to designate is the folder the executable exists within.

You may still have to use 'locate' or 'find' for non-executables. If you try to run 'locate' and you get an error, first make sure you are executing as root, second make sure its installed. If not, install it and run updatedb at a command prompt. This will build a database of everything on your system and make search extremely fast.

You will need to use this for the following path variables: freeradiuslog pathtoradiusconf

Here is an example with 'locate': root@bt:~# locate freeradius-server-wpe.log /usr/local/var/log/radius/freeradius-server-wpe.log

Set variable to: freeradiuslog="/usr/local/var/log/radius/freeradius-server-wpe.log"

  • This is the only variable that requires the file name.

root@bt:~# locate radiusd.conf /usr/local/etc/raddb/radiusd.conf

Set variable to: pathtoradiusconf="/usr/local/etc/raddb"

Happy Hunting!!

Clone this wiki locally