Skip to content

Commit

Permalink
Feature v2.4.17 修改部分问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Cl0udG0d committed Jul 30, 2024
1 parent dbdeadc commit ba1cce7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 37 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,6 @@

简体中文 | [English](./docs/EN_README.md)

### 公告
> [issue79](https://github.com/Cl0udG0d/Fofa-hack/issues/79)[issue78](https://github.com/Cl0udG0d/Fofa-hack/issues/78) 基础上的调研发现
>
> fofa对游客的请求进行了限制 , Fofa-hack 程序本身没有问题
>
> 如果你使用的时候发现获取不到数据 , 请使用最新版本中的多authorization实现数据获取
>
> python fofa.py -k index --authorization-file au.txt
>
> 以及... 如果大家有注册的多余没用的账号,也可以把authorization提交到 [issue](https://github.com/Cl0udG0d/Fofa-hack/issues/80)里面来实现共享

### 简介

Expand Down
2 changes: 0 additions & 2 deletions au.txt

This file was deleted.

4 changes: 4 additions & 0 deletions docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG 代码变更记录

### 2.4.17
+ 删除文档里面的存在问题的部分
+ 修改setup.py,更新fofa-hack包为0.02版本 [pip fofa-hack](https://pypi.org/manage/project/fofa-hack/release/0.0.2/)

### 2.4.16
+ 新增 --authorization-file 参数

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

setuptools.setup(
name="fofa_hack",
version="0.0.1",
version="0.0.2",
author="Cl0udG0d",
author_email="",
description="fofa hack", # 包简短的描述
Expand Down
31 changes: 8 additions & 23 deletions test.py
Original file line number Diff line number Diff line change
@@ -1,23 +1,8 @@
import json

import requests

from tookit import config, fofaUseragent


request_url="https://api.fofa.info/v1/m/profile"
# au = config.AUTHORIZATION_LIST[0]
# print(au)


rep = requests.get(request_url, headers=fofaUseragent.getFofaPageNumHeaders(), timeout=10)
print(json.loads(rep.text)["data"]["info"]["data_limit"])


request_url2 = "https://api.fofa.info/v1/m/data_usage/month"
rep = requests.get(request_url2, headers=fofaUseragent.getFofaPageNumHeaders(), timeout=10)
print(json.loads(rep.text)["data"])

# au = config.AUTHORIZATION_LIST.pop()
# print(au)
# print(config.AUTHORIZATION_LIST)
from fofa_hack import fofa
def main():
result_generator = fofa.api("thinkphp", endcount=100)
for data in result_generator:
print(data)

if __name__ == '__main__':
main()
2 changes: 1 addition & 1 deletion tookit/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# @File : config.py
# @Github: https://github.com/Cl0udG0d

VERSION_NUM = "2.4.16"
VERSION_NUM = "2.4.17"
ROOT_PATH=""
AUTHORIZATION = ""
AUTHORIZATION_LIST = [
Expand Down

0 comments on commit ba1cce7

Please sign in to comment.