PWNAManagerGrabScriptGenerator.java 2.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. package QuickVerifyCrap;
  2. import java.io.FileOutputStream;
  3. import java.io.PrintStream;
  4. public class PWNAManagerGrabScriptGenerator {
  5. public static void main(String[] args) throws Exception {
  6. PrintStream ps = new PrintStream(new FileOutputStream("C:\\lmaa\\scriptgen.txt"));
  7. ps.println("#!/bin/bash");
  8. for(int i=1;i<=4;i++)
  9. {
  10. for(int j=0;j<10;j++)
  11. {
  12. for(int k=0;k<25;k++)
  13. {
  14. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaBluetoothDeviceManagerForWindows-v"+i+"."+j+"."+k+"-setup.exe");
  15. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaBluetoothDeviceManagerForWindows-v"+i+"."+j+"."+k+"-setup_x64.exe");
  16. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SENABluetoothDeviceManagerForMAC-v"+i+"."+j+"."+k+".pkg");
  17. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SENADeviceManagerForMAC-v"+i+"."+j+"."+k+".pkg");
  18. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaDeviceManagerForWindows-v"+i+"."+j+"."+k+"-setup_x64.exe");
  19. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaDeviceManagerForWindows-v"+i+"."+j+"."+k+"-setup.exe");
  20. if(k==0)
  21. {
  22. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaBluetoothDeviceManagerForWindows-v"+i+"."+j+"-setup.exe");
  23. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaBluetoothDeviceManagerForWindows-v"+i+"."+j+"-setup_x64.exe");
  24. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SENABluetoothDeviceManagerForMAC-v"+i+"."+j+".pkg");
  25. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SENADeviceManagerForMAC-v"+i+"."+j+".pkg");
  26. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaDeviceManagerForWindows-v"+i+"."+j+"-setup_x64.exe");
  27. ps.println("wget -nc https://firmware.sena.com/senabluetoothmanager/SenaDeviceManagerForWindows-v"+i+"."+j+"-setup.exe");
  28. }
  29. }
  30. }
  31. }
  32. ps.close();
  33. }
  34. }