EDIT: Commenting out the lines was not the correct approach, The error lies in line 85, a simple typo.
BEFORE - LINE 85
Code:
$int=$(ifconfig | grep $interface | awk '{print $1}')
AFTER - LINE 85
Code:
int=$(ifconfig | grep $interface | awk '{print $1}')
Then I ran into another error involving the $backdoorPath, This looked like a simple mistake on line 107 showed below..
BEFORE - LINE 107
Code:
if ! [ -d "$backdoorPath" ]; then
AFTER - LINE 107
Code:
if ! [ -e "$backdoorPath" ]; then
The -d conditional operator checks if a directory is a directory and if it exists, while -e checks if a file exists. After these couple changes I got it rolling, but I had to renew my internet connection on the victim to get the update spoof to go through.
Could it be possible to use aireplay-ng --deauth to force this automatically?