Emdee five for life

syicoma@scorp:~/Desktop$ time python3.5 htb.py
Too slow!

real 0m0.288s
user 0m0.196s
sys 0m0.024s

Could you please explain further. I am new to python so…

I have place the script within a function which seems to help a bit with speed but still nowhere near getting a huge difference in the run time .

@cyberus said:
Type your comment> @syicoma said:

Hi there,

The script I have compiled it functional and completes within
0:00:00.098590
[Finished in 0.7s]

However I am still getting TOO SLOW!!!

Could anyone please assist with this.
If you message or reply I can show/describe the script I have compiled in Pyhton

Try the speed of light function

@cyberus

Finally got it. :slight_smile: took so revising on my scripting but got it :slight_smile:

Did this yesterday via PowerShell (mostly because my Python just isn’t there yet and I had limited time before I left work).
Thankyou @L4mpje That was fun!

Type your comment> @h3iron said:

You can use your shell knowledge too. I created a one-liner and it was fast enough.

That sounds cool!

As others have said, python, easy challenge.

Type your comment> @m4nu said:

@H0plite don’t miss https://www.youtube.com/watch?v=I5e6ftNpGsU

nice hint :slight_smile:

Internet speed matters…
I had to run my Python script several times because it said too slow the previous times.

There is no need for something more than your browser… you can always run js on web console which means no need for cookie fights

I’m by no means a python expert (more like a noob to it), but it took me some 10 mins to get it done.

Just 2 libs (hashlib and requests).

Good fun optimizing the code for speed… good old days :slight_smile:

Feel free to PM me for a nudge.

Hi everyone ! I’ve got the flag with “request”, “hashlib” and “re”. But, in the first place, I tried with BeautifoulSoup instead of “re” and its not working.
I’d like to figure out why, can someone contact me in private ? :smile:

Has anyone successfully completed this with a bash script? It runs quickly but I must be missing something essential.

Type your comment> @taylnick said:

Has anyone successfully completed this with a bash script? It runs quickly but I must be missing something essential.

I guess curl is just slow compared to python. I thought it didn’t work because of the use of cookies but I didn’t test further.

Small hint. Use hexdigest()…

Type your comment> @taylnick said:

Has anyone successfully completed this with a bash script? It runs quickly but I must be missing something essential.

Just solved it using bash/curl :blush: Script runtime ~250ms
Was a bit of a pain in the a**, as I started on macOS and then ported the script to Kali, but some “macOS specialities” broke the script there in just too many ways :wink:
So, in the end I did a lot of debugging using Wireshark, to get it working. Big thanks for that tip anyway (was mentioned somewhere here before), I really can just recommend it.

Although I found the flag using Python, I am really interested in the solution in bash using curl, sed and md5sum. I just can’t seem to get it fast enough, or I made an error somewhere…

good early challenge for scripting.

I tried to get the answer using a bash terminal , but i cant seem to get it wo work.
curl (get) > grep > cut > md5sum > awk > curl (post)

The GET curl has the -c cookie jar, and the POST curl has the -b cookie flags

edit Just tried timing the bash script and it takes .44s so im assuming thats why im getting to slow :neutral:

I finally did it! Learnt a lot about Python and BeautifulSoup.

one extra space character cost me several hours in my bash script :frowning: but got there in the end :smile:

just completed using plain old javascript :stuck_out_tongue:

for php script , its slow, but good enough
real 0m0.588s
user 0m0.001s
sys 0m0.022s