> For the complete documentation index, see [llms.txt](https://donghyunlee.gitbook.io/write-up/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://donghyunlee.gitbook.io/write-up/wargame/webhacking.kr/old-32-150.md).

# old-32 (150)

첫 화면이다.

![](/files/-M1sY2PBW2D5K-_-Jyor)

Hit 순으로 정렬되는 것 같은데 나는 맨 아래에 위치해있다.

![](/files/-M1sYHj2Kz7YiaW6NfiT)

페이지 소스의 일부는 아래와 같다.

```markup
<tr onmouseover="this.style.background='gray'" onmouseout=
"this.style.background='black'" onclick= "location.href='?hit=dominic20'" style=
"background: black;">
    <td>852</td>
    <td>dominic20</td>
    <td align="center">0 / 100</td>
</tr>
```

이름을 클릭하면 Hit가 1 증가한다.

다시 클릭하면 아래와 같이 알림이 뜨면서 Hit가 증가하지 않는다.

![](/files/-M1sbQ7vij7sNDL37GbS)

쿠키를 확인하면 아래와 같이 `vote_check` 라는 쿠키가 생성되어 있다.

![](/files/-M1sbsF3lYZM8fIC6gvh)

해당 쿠키를 금지한다.

![](/files/-M1sbzBWeEccXkUtwv0M)

그러면 아무리 이름을 클릭을 해도 알림이 뜨지 않고 Hit가 계속 증가한다.

Hit 수를 증가시키는 파이썬 코드를 짜면 아래와 같다.

```python
import requests

URL = 'https://webhacking.kr/challenge/code-5/?hit=donghyunlee00'
PHPSESSID = 'MY_PHPSESSID'

for i in range(100):
    requests.get(URL, cookies={'PHPSESSID': PHPSESSID})

```
