-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Cl0udG0d
committed
Jul 30, 2024
1 parent
dbdeadc
commit ba1cce7
Showing
6 changed files
with
14 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters