Skip to content

Commit

Permalink
add some prints
Browse files Browse the repository at this point in the history
  • Loading branch information
CunningLogic committed Jul 5, 2018
1 parent c3926b5 commit 324dd80
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .idea/artifacts/UberSploits_jar.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Manifest-Version: 1.0
Main-Class: com.cunninglogic.ubersploits.Main

11 changes: 8 additions & 3 deletions src/com/cunninglogic/ubersploits/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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 {
Expand All @@ -120,6 +120,7 @@ public static void main(String[] args) {
e.printStackTrace();
}

System.out.println("Sending filesize");
write(UPGRADE_DATA(payload.length));

try {
Expand All @@ -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);
Expand All @@ -147,6 +149,7 @@ public static void main(String[] args) {
e.printStackTrace();
}

System.out.println("Executing update");
write(UPGRADE_FINISH_DATA(payload));


Expand All @@ -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();
Expand Down

0 comments on commit 324dd80

Please sign in to comment.