Skip to content

Commit

Permalink
Update IWCON_CTF_2023.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Aftab700 authored Dec 14, 2023
1 parent fbd38c1 commit 4ecee8c
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions CTF/ctfs/IWCON_CTF_2023.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

### WARMUP
- [Socialize](#socialize)
- [runme](#runme)

<br>

Expand All @@ -29,3 +30,55 @@ Flag is in `iwcon-ctf` channel
Flag: `IWCON{y0u_w3r3_h3r3_f!rst}`


## runme

- code me!
- Flag format: IWCON{}
- [runme.class](../files/runme.class)

using online decompiler we get [java code](https://www.decompiler.com/jar/6ae10a74e255424f99b8b8b431e7975b/runme.java)

<details><summary markdown="span">Click to see code :diamond_shape_with_a_dot_inside: </summary>

```java

import java.util.Arrays;
import java.util.Base64;

public class iwcon {
public static String get_flag() {
byte[] var0 = "YPSiRhFjpXbIfgVc]NnHoeWlJ_mOEUQT[L`^kKGMda\\Z".getBytes();
byte[] var1 = "c54h1dW2z1yVNTdfzRITS9MJMnj53ByM3Xz0D7azN9Xe".getBytes();
byte[] var2 = new byte[var1.length];

for(int var3 = 0; var3 < var1.length; ++var3) {
var2[var3] = var1[var0[var3] - 69];
}

System.out.println(Arrays.toString(Base64.getDecoder().decode(var2)));
return new String(Base64.getDecoder().decode(var2));
}

public static void main(String[] var0) {
System.out.println();
}
}

```
</details>


in this code we modify main function to add call to `get_flag()`

```java
public static void main(String[] var0) {
System.out.println(get_flag());
}
```

<img width="586" alt="image" src="https://github.com/Aftab700/Writeups/assets/79740895/5887d9de-d232-4534-8825-6c621f3551bc">

Flag: `IWCON{y0u_4r3_a_r3v3rs3_3ngin33r}`



0 comments on commit 4ecee8c

Please sign in to comment.