Press "Enter" to skip to content

[H4CK1T]Fucking russian programmers – 100pts

Description:
The program has gone crazy and outputs completely unbalanced answers 🙁 Help to correct the error and send the correct data until they not obsolete...

http://91.231.84.36:9200/
h4ck1t{}

Solution:

Open the web, we can see it:
1

The main point is here:

If he gave you ])[[ , the answer should be []()[][] , ([])[[]] or [(])[][].
So you need to automatic complete the brackets if it has opened or closed.

NOTE: THERE MAY BE A EASY WAY IN PYTHON USE LIBRARY TO DO THIS. BUT I AM LEARNING JAVA NOW, I HAVE ALREADY TRY MY BEST TO CODE IT SIMPLIFY.
If you have different ideas, welcome comment to tell me 🙂
The most difficult point is that how to know the ([{ has been closed. So I write a loop to find if it has been closed put a "/" before ([{ and )]}, when I run the add function, ignore added when "/" before the ([{. )]} is the same way to make it.
Take some times to write the java code:

We get back to the web:

Put the question into the script Finally we got the flag:

flag:

Comments