Strange problem in my new program, dealing with variables.
Hey, so I've been writing this new program to help me run aircrack-ng a little faster. Here is what I have thus far.
Here is what I get when I input 00:11:22:33:44:55 for the BSSID FakeNet for the ESSID and 6 for the CHANNEL.
printf("sudo airodump-ng -c %d -d %s -w %s mon0",&channel,bssid,essid);
printf("sudo aireplay-ng -1 0 -e '%s' -a %s -h 00:19:7E:71:C0:2D mon0",essid,bssid);
printf("sudo aireplay-ng -3 -b %s -h 00:19:7E:71:C0:2D mon0",bssid);
printf("sudo aircrack-ng -z -b %s %s*.cap",bssid,essid);
as you can see it dose not put each line of code on a line by itself, its all jumbled, and if u noticed, my channel number is ridiculously NOT what I assigned it. Any advice?
sudo airodump-ng -c -1082094220 -d 00:11:22:33:44:55
mon0sudo aireplay-ng -1 0 -e 'FakeNet
' -a 00:11:22:33:44:55
-h 00:19:7E:71:C0:2D mon0sudo aireplay-ng -3 -b 00:11:22:33:44:55
-h 00:19:7E:71:C0:2D mon0sudo aircrack-ng -z -b 00:11:22:33:44:55
P.S. Comment for the admins, I run aircrack-ng on my own home network, for security purposes ;)