Planet DesKel

DesKel's official page for CTF write-up, Electronic tutorial, review and etc.

5 September 2020

Webhacking.kr write-up: old-32

1 minutes to read
Link point tag
old-32 150 Scripting

Welcome and welcome back to another webhacking.kr CTF challenge. Today’s challenge is a bit interesting as you have to vote your way up.

question

Look like someone making their way up. Time to make ourselves top of the chart by using a simple python script.

import requests

url = "https://webhacking.kr/challenge/code-5/"
header = {'cookie':'PHPSESSID=<change your session ID>'}

for i in range(0,100):
        req = "?hit=DesKel"
        r = requests.get(url+req, headers=header)

Make sure you have changed the PHPSESSID before running the script. The username (DesKel in my case) is optional.

Try to refresh the page and you will see yourself climbing up the rank. After a few seconds, refresh the page and solve the challenge whenever you reached 100/100 votes.

solve

another solve

tags: webhacking.kr - scripting

Thanks for reading. Follow my twitter for latest update

If you like this post, consider a small donation. Much appreciated. :)


Vortex


© 2020 DesKel