@Slim
I was trying out Frankenscript with my new adapter which arrived in the mail. I had the -1 error and could not capture any handshakes.
I added a one liner at line 232 which looks like this
Enable_Attack_Mode(){
<-snip out all of the attack mode section until the last few lines as I'm not copying and pasting ->
clear
ifconfig $wlanX down
airmon-ng start $wlanX
MAC_Address_Options(){
I only inserted the line ifconfig $wlanX down. This has fixed the -1 error and i'm capturing handshakes again. I can't see this change causing any errors down the road but it's not fully tested. Would you consider adding it in to the script as I doubt i'm the only person who will run into it.
Edit:
@Slim again
Mate, I was just trying to do an iw dev scan from the menu. It failed so I added a catch so I could see the error and go have a read.
I have two wifi adapters and am using wlan1 to scan the network. At line 334 you have defined wlan0 as the adapter so it can't detect if I selected a seperate one. I changed the start of this line to:
iw dev $wlanX scan
and the problem was solved.