aartaka / chur-guix

A collection of pentesting packages for Guix package manager
GNU General Public License v3.0
5 stars 0 forks source link

Access crawl subdir of RED_HAWK elegantly #2

Closed aartaka closed 4 years ago

aartaka commented 4 years ago

To go around the File Not Found, Aborting Crawl .... a relatively unpleasant cd out && exec php rhawk.php... hack is used.

Is there a better way to temporarily set the working directory for a running script?

aartaka commented 4 years ago

Given that the workind directory changes back to the pre-script state after bin/rhawk ends, it's not harmful to use cd here.

If there'd be a need, pushd and popd are the commands to use, but this case is too simple for this.