FisherMan:通過Selenium收集Facebook用戶資料
VSole2022-08-28 07:48:45
關于FisherMan
FisherMan是一款功能強大的社交媒體信息收集工具,FisherMan基于Selenium實現其功能,可以幫助廣大研究人員利用Selenium來收集Facebook用戶的個人資料信息。
工具安裝
FisherMan基于Python開發,因此我們需要在本地設備上安裝并配置好Python環境。
接下來,我們需要使用下列命令將該項目源碼克隆至本地:
$ git clone https://github.com/Godofcoffe/FisherMan
在命令行窗口中,切換至項目根目錄,并安裝好工具所需的依賴組件:
$ cd FisherMan$ python3 -m pip install -r requeriments.txt
工具使用
$ python3 fisherman.py --help
usage: fisherman.py [-h] [--version] [-u USERNAME [USERNAME ...] | -i ID
[ID ...] | --use-txt TXT_FILE | -S USER] [-v | -q] [-sf]
[--specify {0,1,2,3,4,5} [{0,1,2,3,4,5} ...]] [-s]
[--filters]
[-work WORK | -education EDUCATION | -city CITY] [-b]
[--email EMAIL] [--password PASSWORD] [-o | -c]
FisherMan: Extract information from facebook profiles. (Version 3.6.0)
optional arguments:
-h, --help show this help message and exit
--version Shows the current version of the program.
-u USERNAME [USERNAME ...], --username USERNAME [USERNAME ...]
Defines one or more users for the search.
-i ID [ID ...], --id ID [ID ...]
Set the profile identification number.
--use-txt TXT_FILE Replaces the USERNAME parameter with a user list in a
txt.
-S USER, --search USER
It does a shallow search for the username. Replace the
spaces with '.'(period).
-v, -d, --verbose, --debug
It shows in detail the data search process.
-q, --quiet Eliminates and simplifies some script outputs for a
simpler and more discrete visualization.
-b, --browser Opens the browser/bot.
search options:
--filters Shows the list of available filters.
-work WORK Sets the work filter.
-education EDUCATION Sets the education filter.
-city CITY Sets the city filter.
profile options:
-sf, --scrape-family If this parameter is passed, the information from
family members will be scraped if available.
--specify {0,1,2,3,4,5} [{0,1,2,3,4,5} ...]
Use the index number to return a specific part of the
page. about: 0, about_contact_and_basic_info: 1,
about_family_and_relationships: 2, about_details: 3,
about_work_and_education: 4, about_places: 5.
-s, --several Returns extra data like profile picture, number of
followers and friends.
credentials:
--email EMAIL If the profile is blocked, you can define your
account, however you have the search user in your
friends list.
--password PASSWORD Set the password for your facebook account, this
parameter has to be used with --email.
output:
-o, --file-output Save the output data to a .txt file.
-c, --compact Save the output data to a .txt file and compress.
搜索目標用戶
用戶名搜索:
python3 fisherman.py -u name name.profile name.profile2
ID搜索:
python3 fisherman.py -i 000000000000
我們也可以通過一個.txt文件加載多個目標用戶名,這種情況適用于暴力破解輸出類型:
python3 fisherman.py --use-txt filename.txt
注意:某些賬號只能搜索有限的信息,并且受限于用戶的好友列表:
python3 fisherman.py --email youremail@email.com --password yourpass
大規模信息收集
python3 fisherman.py --use-txt file -c -sf
基礎數據收集
python3 fisherman.py -u name --specify 0
家庭和關系收集
python3 -u name --specify 2
獲取額外信息(例如用戶頭像、粉絲和好友)
python3 fisherman.py -u name [-s | --several]
過濾搜索結果
python3 fisherman.py -S name -work fisherman
VSole
網絡安全專家