女人自慰AV免费观看内涵网,日韩国产剧情在线观看网址,神马电影网特片网,最新一级电影欧美,在线观看亚洲欧美日韩,黄色视频在线播放免费观看,ABO涨奶期羡澄,第一导航fulione,美女主播操b

0
  • 聊天消息
  • 系統(tǒng)消息
  • 評(píng)論與回復(fù)
登錄后你可以
  • 下載海量資料
  • 學(xué)習(xí)在線課程
  • 觀看技術(shù)視頻
  • 寫文章/發(fā)帖/加入社區(qū)
會(huì)員中心
創(chuàng)作中心

完善資料讓更多小伙伴認(rèn)識(shí)你,還能領(lǐng)取20積分哦,立即完善>

3天內(nèi)不再提示

新一代爬蟲工具katana

jf_hKIAo4na ? 來源:菜鳥學(xué)安全 ? 2023-04-20 10:43 ? 次閱讀
91efbea4-df24-11ed-bfe3-dac502259ad0.png
  • 快速且完全可配置的網(wǎng)絡(luò)爬行

  • 標(biāo)準(zhǔn)和無外設(shè)模式支持

  • JavaScript 解析/爬網(wǎng)

  • 可定制的自動(dòng)表單填寫

  • 范圍控制 - 預(yù)配置字段/正則表達(dá)式

  • 可自定義的輸出 - 預(yù)配置字段

  • 輸入 - 標(biāo)準(zhǔn)輸入、URL 和列表

  • 輸出 - 標(biāo)準(zhǔn)輸出、文件和 JSON

0x01 工具安裝

Katana需要Go 1.18才能成功安裝。要安裝,只需運(yùn)行以下命令或從發(fā)布頁面下載預(yù)編譯的二進(jìn)制文件。

go install github.com/projectdiscovery/katana/cmd/katana@latest

Docker安裝:

docker pull projectdiscovery/katana:latest
docker run projectdiscovery/katana:latest -u https://tesla.com
docker run projectdiscovery/katana:latest -u https://tesla.com -system-chrome -headless

Ubuntu安裝:

sudo apt update
sudo snap refresh
sudo apt install zip curl wget git
sudo snap install golang --classic
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - 
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
sudo apt update 
sudo apt install google-chrome-stable
go install github.com/projectdiscovery/katana/cmd/katana@latest

0x02 工具使用

Katana需要URL或端點(diǎn)進(jìn)行爬網(wǎng),并接受單個(gè)或多個(gè)輸入。

可以使用-u 選項(xiàng)提供輸入 URL,可以使用逗號(hào)分隔的輸入提供多個(gè)值,同樣使用-list 選項(xiàng)支持文件輸入,并且還支持額外的管道輸入 (stdin)。

katana -u https://tesla.com

多個(gè) URL 輸入(逗號(hào)分隔):

katana -u https://tesla.com,https://google.com

文件輸入:

$ cat url_list.txt


https://tesla.com
https://google.com
katana -list url_list.txt

管道輸入:

echo https://tesla.com | katana
cat domains | httpx | katana

運(yùn)行實(shí)例:

katana -u https://youtube.com


  __    __        
 / /_____ _/ /____ ____ ___ _
 / '_/ _ / __/ _ / _ / _ /
/_/\_\_,_/\__/\_,_/_//_/\_,_/ v0.0.1           


   projectdiscovery.io


[WRN] Use with caution. You are responsible for your actions.
[WRN] Developers assume no liability and are not responsible for any misuse or damage.
https://www.youtube.com/
https://www.youtube.com/about/
https://www.youtube.com/about/press/
https://www.youtube.com/about/copyright/
https://www.youtube.com/t/contact_us/
https://www.youtube.com/creators/
https://www.youtube.com/ads/
https://www.youtube.com/t/terms
https://www.youtube.com/t/privacy
https://www.youtube.com/about/policies/
https://www.youtube.com/howyoutubeworks?utm_campaign=ytgen&utm_source=ythp&utm_medium=LeftNav&utm_content=txt&u=https%3A%2F%2Fwww.youtube.com%2Fhowyoutubeworks%3Futm_source%3Dythp%26utm_medium%3DLeftNav%26utm_campaign%3Dytgen
https://www.youtube.com/new
https://m.youtube.com/
https://www.youtube.com/s/desktop/4965577f/jsbin/desktop_polymer.vflset/desktop_polymer.js
https://www.youtube.com/s/desktop/4965577f/cssbin/www-main-desktop-home-page-skeleton.css
https://www.youtube.com/s/desktop/4965577f/cssbin/www-onepick.css
https://www.youtube.com/s/_/ytmainappweb/_/ss/k=ytmainappweb.kevlar_base.0Zo5FUcPkCg.L.B1.O/am=gAE/d=0/rs=AGKMywG5nh5Qp-BGPbOaI1evhF5BVGRZGA
https://www.youtube.com/opensearch?locale=en_GB
https://www.youtube.com/manifest.webmanifest
https://www.youtube.com/s/desktop/4965577f/cssbin/www-main-desktop-watch-page-skeleton.css
https://www.youtube.com/s/desktop/4965577f/jsbin/web-animations-next-lite.min.vflset/web-animations-next-lite.min.js
https://www.youtube.com/s/desktop/4965577f/jsbin/custom-elements-es5-adapter.vflset/custom-elements-es5-adapter.js
https://www.youtube.com/s/desktop/4965577f/jsbin/webcomponents-sd.vflset/webcomponents-sd.js
https://www.youtube.com/s/desktop/4965577f/jsbin/intersection-observer.min.vflset/intersection-observer.min.js
https://www.youtube.com/s/desktop/4965577f/jsbin/scheduler.vflset/scheduler.js
https://www.youtube.com/s/desktop/4965577f/jsbin/www-i18n-constants-en_GB.vflset/www-i18n-constants.js
https://www.youtube.com/s/desktop/4965577f/jsbin/www-tampering.vflset/www-tampering.js
https://www.youtube.com/s/desktop/4965577f/jsbin/spf.vflset/spf.js
https://www.youtube.com/s/desktop/4965577f/jsbin/network.vflset/network.js
https://www.youtube.com/howyoutubeworks/
https://www.youtube.com/trends/
https://www.youtube.com/jobs/
https://www.youtube.com/kids/

0x03 爬蟲模式

標(biāo)準(zhǔn)模式:

標(biāo)準(zhǔn)爬網(wǎng)模式使用底層的標(biāo)準(zhǔn) go http 庫來處理 HTTP 請求/響應(yīng)。這種模式要快得多,因?yàn)樗鼪]有瀏覽器開銷。盡管如此,它仍然按原樣分析 HTTP 響應(yīng)正文,沒有任何 javascript 或 DOM 渲染,可能會(huì)缺少 dom 渲染后的端點(diǎn)或異步端點(diǎn)調(diào)用,這些調(diào)用可能發(fā)生在復(fù)雜的 Web 應(yīng)用程序中,例如,依賴于特定于瀏覽器的事件。

無頭模式:

無頭模式掛鉤內(nèi)部無頭調(diào)用,以直接在瀏覽器上下文中處理 HTTP 請求/響應(yīng)。這有兩個(gè)優(yōu)點(diǎn):

  • HTTP 指紋(TLS 和用戶代理)將客戶端完全標(biāo)識(shí)為合法瀏覽器

  • 更好的覆蓋范圍,因?yàn)槎它c(diǎn)是分析標(biāo)準(zhǔn)原始響應(yīng)的,就像在前面的模式中一樣,以及啟用了javascript的瀏覽器渲染的響應(yīng)。

無頭爬網(wǎng)是可選的,可以使用-headless 選項(xiàng)啟用。

以下是其他無頭 CLI 選項(xiàng) -

katana -h headless


Flags:
HEADLESS:
  -hl, -headless          enable headless hybrid crawling (experimental)
  -sc, -system-chrome        use local installed chrome browser instead of katana installed
  -sb, -show-browser        show the browser on the screen with headless mode
  -ho, -headless-options string[]  start headless chrome with additional options
  -nos, -no-sandbox         start headless chrome in --no-sandbox mode
  -cdd, -chrome-data-dir string   path to store chrome browser data
  -scp, -system-chrome-path string use specified chrome browser for headless crawling
  -noi, -no-incognito        start headless chrome without incognito mode

無沙盒模式:

使用無沙盒選項(xiàng)運(yùn)行無頭 chrome 瀏覽器,在以 root 用戶身份運(yùn)行時(shí)很有用。

katana -u https://tesla.com -headless -no-sandbox

無運(yùn)行頭模式:

在沒有隱身模式的情況下運(yùn)行無頭 chrome 瀏覽器,這在使用本地瀏覽器時(shí)很有用。

katana -u https://tesla.com -headless -no-incognito
工具下載:
https://github.com/projectdiscovery/katana

審核編輯 :李倩
聲明:本文內(nèi)容及配圖由入駐作者撰寫或者入駐合作網(wǎng)站授權(quán)轉(zhuǎn)載。文章觀點(diǎn)僅代表作者本人,不代表電子發(fā)燒友網(wǎng)立場。文章及其配圖僅供工程師學(xué)習(xí)之用,如有內(nèi)容侵權(quán)或者其他違規(guī)問題,請聯(lián)系本站處理。 舉報(bào)投訴
  • HTTP
    +關(guān)注

    關(guān)注

    0

    文章

    520

    瀏覽量

    32440
  • URL
    URL
    +關(guān)注

    關(guān)注

    0

    文章

    139

    瀏覽量

    15778
  • 爬蟲
    +關(guān)注

    關(guān)注

    0

    文章

    83

    瀏覽量

    7346

原文標(biāo)題:新一代爬蟲工具 katana

文章出處:【微信號(hào):菜鳥學(xué)安全,微信公眾號(hào):菜鳥學(xué)安全】歡迎添加關(guān)注!文章轉(zhuǎn)載請注明出處。

收藏 人收藏

    評(píng)論

    相關(guān)推薦
    熱點(diǎn)推薦

    基于4G和Beyond 3G的新一代移動(dòng)通信系統(tǒng)討論

    1、引言隨著科學(xué)技術(shù)的發(fā)展和社會(huì)的進(jìn)步,移動(dòng)通信技術(shù)正在經(jīng)歷著日新月異的變化。當(dāng)人們還在研究和部署第三移動(dòng)通信系統(tǒng)的同時(shí),為了適應(yīng)將來通信的要求,國際通信界已經(jīng)開始著手研究新一代的移動(dòng)通信系統(tǒng)
    發(fā)表于 07-17 06:47

    新一代音頻DAC的架構(gòu)介紹

    本文介紹了歐勝微電子公司最新一代音頻數(shù)字-模擬轉(zhuǎn)換器(DAC)的架構(gòu),專注于設(shè)計(jì)用于消費(fèi)電子應(yīng)用中提供高電壓線驅(qū)動(dòng)器輸出的新器件系列。
    發(fā)表于 07-22 06:45

    LXI新一代測試自動(dòng)化平臺(tái)

    LXI新一代測試自動(dòng)化平臺(tái)
    發(fā)表于 10-12 15:01

    爬蟲可以采集哪些數(shù)據(jù)

    。   2.驗(yàn)證碼識(shí)別工具-OCR   現(xiàn)在驗(yàn)證碼幾乎在任何個(gè)網(wǎng)站的交互界面中都存在,目的當(dāng)然是為了防止惡意程序的攻擊。   在使用爬蟲時(shí),如果獲取速度過快,通常會(huì)出現(xiàn)驗(yàn)證碼驗(yàn)證當(dāng)前訪問的是人還是
    發(fā)表于 10-15 17:25

    PLC新一代超小型控制器怎么編程?

    PLC新一代超小型控制器(LOGO!)的編程方法與操作
    發(fā)表于 04-07 09:00

    MIMO之新一代移動(dòng)通信核心技術(shù)

    MIMO:新一代移動(dòng)通信核心技術(shù)
    發(fā)表于 07-17 16:38

    斯巴魯新一代安全系統(tǒng)搶先看

    斯巴魯近日宣布將從明年起運(yùn)用其新一代EyeSight安全系統(tǒng),并在10月2日首先透露了新一代產(chǎn)品的細(xì)節(jié)。
    發(fā)表于 08-26 07:28

    新一代納秒級(jí)高帶寬仿真工具平臺(tái)HAC Express的優(yōu)勢

    新一代納秒級(jí)高帶寬仿真工具平臺(tái)——HAC Express
    發(fā)表于 01-11 06:47

    新一代軍用通信系統(tǒng)的挑戰(zhàn)

    新一代軍用通信系統(tǒng)挑戰(zhàn)
    發(fā)表于 03-02 06:21

    如何去設(shè)計(jì)新一代自動(dòng)化測試系統(tǒng)?

    自動(dòng)化測試系統(tǒng)的設(shè)計(jì)挑戰(zhàn)有哪些?如何去設(shè)計(jì)新一代自動(dòng)化測試系統(tǒng)?
    發(fā)表于 05-11 06:52

    如何去推進(jìn)新一代數(shù)據(jù)中心的發(fā)展?

    新一代數(shù)據(jù)中心有哪些實(shí)踐操作范例?如何去推進(jìn)新一代數(shù)據(jù)中心的發(fā)展? 
    發(fā)表于 05-25 06:16

    新一代視頻編碼器怎么樣?

    新一代視頻編碼器怎么樣?
    發(fā)表于 06-02 06:39

    新一代PON以及云數(shù)據(jù)中心的未來

    新一代PON以及云數(shù)據(jù)中心的未來
    發(fā)表于 06-07 06:30

    爬蟲是如何實(shí)現(xiàn)數(shù)據(jù)的獲取爬蟲程序如何實(shí)現(xiàn)

    進(jìn)入大數(shù)據(jù)時(shí)代,爬蟲技術(shù)越來越重要,因?yàn)樗谦@取數(shù)據(jù)的個(gè)重要手段,是大數(shù)據(jù)和云計(jì)算的基礎(chǔ)。那么,爬蟲到底是如何實(shí)現(xiàn)數(shù)據(jù)的獲取的呢?今天和大家分享的就是個(gè)系統(tǒng)學(xué)習(xí)
    發(fā)表于 01-02 16:30 ?10次下載
    <b class='flag-5'>爬蟲</b>是如何實(shí)現(xiàn)數(shù)據(jù)的獲取<b class='flag-5'>爬蟲</b>程序如何實(shí)現(xiàn)

    Cloud Katana云環(huán)境安全評(píng)估工具

    Cloud-Katana.zip
    發(fā)表于 05-06 09:35 ?0次下載
    Cloud <b class='flag-5'>Katana</b>云環(huán)境安全評(píng)估<b class='flag-5'>工具</b>