Giter VIP home page Giter VIP logo

asaotomo / fofamap Goto Github PK

View Code? Open in Web Editor NEW
449.0 11.0 63.0 63.07 MB

FofaMap是一款基于Python3开发的跨平台FOFA API数据采集器,支持普通查询、网站存活检测、统计聚合查询、Host聚合查询、网站图标查询、批量查询等查询功能。同时FofaMap还能够自定义查询FOFA数据,并根据查询结果自动去重和筛选关键字,生成对应的Excel表格。另外春节特别版还可以调用Nuclei对FofaMap查询出来的目标进行漏洞扫描,让你在挖洞路上快人一步。

License: Apache License 2.0

Python 100.00%
python3 fofa spider api nuclei scan excel bat

fofamap's Introduction

Hello everyone, I am Asaotomo from Hx0TEAM 👋

Github stats

Anurag's GitHub stats

Visitors

Visitor Count

fofamap's People

Contributors

asaotomo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

fofamap's Issues

批量查询不能快速定位原

能否添加下打映输出到 log.txt 批量的时候没法在xlsx快速定位原资产 或都不要输出xlsx 直接以追加的方式写入txt

如下报错

执行命令

python3 fofamap.py -bq bb.txt

bb.txt内容为

domain="xxx"
domain="xxx"
domain="xxx"
.....

报错内容为

  File "FofaMap-1.1.3/fofamap.py", line 646, in <module>
    bat_query(bat_query_file, scan_format)
  File "FofaMap-1.1.3/fofamap.py", line 401, in bat_query
    print_result(database, fields, scan_format)
  File "FofaMap-1.1.3/fofamap.py", line 377, in print_result
    table.add_row(item)
  File "/Library/Python/3.9/site-packages/prettytable/prettytable.py", line 1345, in add_row
    raise Exception(
Exception: Row has incorrect number of values, (actual) 8!=2 (expected)

执行批量查询数据时执行:txt文本中,ip="211.45.30.16/24",生成表格出现异常

91684985709_ pic
Traceback (most recent call last):
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 324, in close
self._store_workbook()
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 659, in _store_workbook
raise e
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 656, in _store_workbook
xlsx_file = ZipFile(self.filename, "w", compression=ZIP_DEFLATED,
File "/Users/.pyenv/versions/3.10.4/lib/python3.10/zipfile.py", line 1249, in init
self.fp = io.open(file, filemode)
FileNotFoundError: [Errno 2] No such file or directory: 'task-2-【ip="211.45.30.16/24"】.xlsx'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 631, in
bat_query(bat_query_file, scan_format)
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 386, in bat_query
out_file_excel(filename, database, scan_format, fields)
File "/Users/PycharmProjects/FofaMap/fofa_search.py", line 227, in out_file_excel
workbook.close()
File "/Users/PycharmProjects/FofaMap/project/lib/python3.10/site-packages/xlsxwriter/workbook.py", line 326, in close
raise FileCreateError(e)
xlsxwriter.exceptions.FileCreateError: [Errno 2] No such file or directory: 'task-2-【ip="211.45.30.16/24"】.xlsx'

bug

xlsxwriter.exceptions.InvalidWorksheetName: Invalid Excel character '[]:*?/' in sheetname '1.【

使用bq功能,输出结果时提示该错误

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.