I am trying to understand how a Wifi analyzer works. As i am currently doing a security project, i am required to check for Access Points for it's IP address and Mac Address of their BSSID.
Do i require any libraries to have/allow myself to have the same ability to scan for Networks and IP Address/Mac Addresses?
Or do i have to move into a different language such as C# as it is a windows environment
The project i am doing is an Evil Twin detection/warning. where
Tried calling system command "netsh wlan show profiles" & "netsh wlan show networks =Bssid" both outputs what i want except for the AP's IP Address
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Execute shell commands test");
System.out.println();
try {
String cmd = "cmd /c netsh wlan show profiles ";
System.out.println("Execute command: " + cmd);
Process p = Runtime.getRuntime().exec(cmd);
int result = p.waitFor();
System.out.println("Process exit code: " + result);
System.out.println();
System.out.println("Result: ");
BufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));
String line = "" ;
while ((line = reader.readLine()) != null) {
System.out.println(line);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}