Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Commit

Permalink
update readme and writeup
Browse files Browse the repository at this point in the history
  • Loading branch information
willbarkoff committed Jun 6, 2020
1 parent e8bff19 commit 35090aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# HackDalton: Decompile

## Problem:
I found this program online, but it just seems to spit out garbage whenever I run it. Can you find the flag?
I found this program online, but I keep getting unlucky and not getting a flag. Can you help?
16 changes: 9 additions & 7 deletions WRITEUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,17 @@ class Program {
}

public static void main(String[] var0) {
String var1 = "hackDalton{just_4_l1ttl3_j4v4_nfM-qY3Nr5}";
StringBuilder var2 = new StringBuilder();
Random var3 = new Random();

for(int var4 = 0; var4 < var1.length(); ++var4) {
var2.appendCodePoint(var1.charAt(var4) + (char)var3.nextInt(255));
int[] var1 = new int[]{164, 157, 159, 167, 128, 157, 168, 176, 171, 170, 183, 166, 177, 175, 176, 155, 112, 155, 168, 109, 176, 176, 168, 111, 155, 166, 112, 178, 112, 155, 170, 162, 137, 105, 173, 149, 111, 138, 174, 113, 185};
Random var2 = new Random();
if (var2.nextInt(256) == 257) {
for(int var3 = 0; var3 < var1.length; ++var3) {
int var4 = var1[var3] - 60;
System.out.print((char)var4);
}
} else {
System.out.println("Sorry, you got unlucky, no flag for you.");
}

System.out.println(var2);
}
}

Expand Down

0 comments on commit 35090aa

Please sign in to comment.