From 324dd802bc1d98307d9d047e2f29b755206d3b50 Mon Sep 17 00:00:00 2001 From: Jon Sawyer Date: Thu, 5 Jul 2018 16:27:23 -0700 Subject: [PATCH] add some prints --- .idea/artifacts/UberSploits_jar.xml | 10 ++++++++++ src/META-INF/MANIFEST.MF | 3 +++ src/com/cunninglogic/ubersploits/Main.java | 11 ++++++++--- 3 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .idea/artifacts/UberSploits_jar.xml create mode 100644 src/META-INF/MANIFEST.MF diff --git a/.idea/artifacts/UberSploits_jar.xml b/.idea/artifacts/UberSploits_jar.xml new file mode 100644 index 0000000..3816bb4 --- /dev/null +++ b/.idea/artifacts/UberSploits_jar.xml @@ -0,0 +1,10 @@ + + + $PROJECT_DIR$/out/artifacts/UberSploits_jar + + + + + + + \ No newline at end of file diff --git a/src/META-INF/MANIFEST.MF b/src/META-INF/MANIFEST.MF new file mode 100644 index 0000000..ca00e39 --- /dev/null +++ b/src/META-INF/MANIFEST.MF @@ -0,0 +1,3 @@ +Manifest-Version: 1.0 +Main-Class: com.cunninglogic.ubersploits.Main + diff --git a/src/com/cunninglogic/ubersploits/Main.java b/src/com/cunninglogic/ubersploits/Main.java index 178c380..7d5e0af 100644 --- a/src/com/cunninglogic/ubersploits/Main.java +++ b/src/com/cunninglogic/ubersploits/Main.java @@ -100,9 +100,7 @@ public static void main(String[] args) { activePort.setBaudRate(115200); - - - + System.out.println("Reading payload"); InputStream is = classLoader.getResourceAsStream("resources/payload.bin"); byte[] payload = null; @@ -112,6 +110,8 @@ public static void main(String[] args) { } catch (IOException e) { e.printStackTrace(); } + + System.out.println("Entering upgrade mode"); write(UPGRADE_MODE_ENTER()); try { @@ -120,6 +120,7 @@ public static void main(String[] args) { e.printStackTrace(); } + System.out.println("Sending filesize"); write(UPGRADE_DATA(payload.length)); try { @@ -128,6 +129,7 @@ public static void main(String[] args) { e.printStackTrace(); } + System.out.println("Uploading payload"); ftpClient = new FTPClient(); try { ftpClient.connect("192.168.42.2", 21); @@ -147,6 +149,7 @@ public static void main(String[] args) { e.printStackTrace(); } + System.out.println("Executing update"); write(UPGRADE_FINISH_DATA(payload)); @@ -156,6 +159,8 @@ public static void main(String[] args) { e.printStackTrace(); } + System.out.println("Finished (system may still be processing the update)"); + try { ftpClient.disconnect(); activePort.closePort();