# -*- coding: utf-8 -*-
import requests
header = {
'Host': 'vulfocus.fofa.so',
'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en-US;q=0.7,en;q=0.6',
'Cookie': 'Hm_lvt_9490413c5eebdadf757c2be2c816aedf=1604481443,1604498870,1604573777,1605258962; Hm_lpvt_9490413c5eebdadf757c2be2c816aedf=1605274448',
'Content-Length': '41',
}
def vulfoceLogin(account, password):
#登录
print("开始登录vulfoce")
postUrl = "http://vulfocus.fofa.so/api/user/login"
postData = {
"username": account,
"password": password,
}
responseRes = requests.post(postUrl, data=postData, headers=header)
print(f"statusCode = {responseRes.status_code}")
print(f"text = {responseRes.text}")
if __name__ == "__main__":
# 从返回结果来看,有登录成功
mafengwoLogin("hahah", "hehehe")
pytho登录vulfocus
猜你喜欢
转载自blog.csdn.net/Candyys/article/details/109683780
今日推荐
周排行