added support to path injection

Updated code to enable attack to change the path and incorporate
injection.