Ubuntu – airodump-ng fopen failed: No such file or directory

aircrack-ngnetwork-managernetworking

I was trying to test a wpa wifi network. I wrote the following command

airodump-ng -c 11 --bssid 34:5B:34:7B:AC:66 -w /root/Desktop/ mon2

Note: The BSSID I have posted here is wrong for of course reasons. And I get the following errors:

fopen failed: No such file or directory
Could not create "/root/Desktop/-01.csv"

I can clearly see that is there is C language fopen error. Its trying create a csv file. I think mainly for maintaining the passowords it tests. I don't know what is this csv files for just made a guess.

I tried to create a simple .csv file with C Program using fopen and the csv file got created. So, there is not problem with C env is guess.

I need help how do I fix this error?

Best Answer

The -w parameter of airodump-ng is for specifying a file prefix, not a folder.

The right command would be:

airodump-ng -c 11 --bssid 34:5B:34:7B:AC:66 -w /root/Desktop/capture_file mon2

This will create a file on this path:

/root/Desktop/capture_file-01.csv

Quote from the airodump-ng man page:

-w , --write Is the dump file prefix to use. If this option is not given, it will only show data on the screen.

Related Question