yass
0.11.7
YASS เป็นปลั๊กอินที่ใช้ปลั๊กอินใช้งาน Search Engine เป้าหมายคือการให้เครื่องมือในการสอบถามอะไรก็ตามที่คุณต้องการและแยกวิเคราะห์การตอบกลับ HTML การเขียน โค้ดน้อยกว่า 10 บรรทัด
usage: yass [-g] [-d] [-l {debug,info,warning,error,critical}] [-c | -nc] [-h]
[-u] [-v]
DOMAIN [SUBDOMAIN [SUBDOMAIN ...]]
positional arguments:
DOMAIN the domain to search for
SUBDOMAIN the list of subdomains to exclude
Output arguments:
-g, --grepable output results in grepable format (default: False)
-d, --debug set output format to a more verbose one, for debugging
purpose (default: False)
-l {debug,info,warning,error,critical}, --level {debug,info,warning,error,critical}
set output verbosity (default: info)
-c, --color use color in the output (default: True)
-nc, --no-color do not use color in the output
Informations:
-h, --help show this help and exit
-u, --usage show the usage and exit
-v, --version show the framework version an exit
$ yass microsoft.com
________________________________________________
YASS - Yet Another Subdomainer Software (v0.11.7)
by Francesco Marano (@mrnfrancesco)
________________________________________________
[INFO ] Collecting subdomains with Aol
[INFO ] (1/1) www.catalog.update.microsoft.com
[INFO ] (2/2) partner.microsoft.com
[INFO ] (3/3) docs.microsoft.com
[INFO ] (4/4) account.microsoft.com
[...]
[INFO ] (64/64) techcommunity.microsoft.com
[INFO ] Collecting subdomains with Ask
[INFO ] (1/65) imaginecup.microsoft.com
[INFO ] (2/66) office.microsoft.com
[INFO ] (3/67) customers.microsoft.com
[INFO ] (4/68) privacy.microsoft.com
[INFO ] (5/69) grv.microsoft.com
[INFO ] (6/70) channel9.microsoft.com
[INFO ] (7/71) datamigration.microsoft.com
[INFO ] (8/72) edusupport.microsoft.com
[INFO ] (9/73) forms.microsoft.com
[INFO ] (10/74) visualstudiogallery.msdn.microsoft.com
[INFO ] Collecting subdomains with Bing
[INFO ] Collecting subdomains with StartPage
[INFO ] Collecting subdomains with WebCrawler
[INFO ] Collecting subdomains with Yahoo
Collected 74 subdomains
academy.microsoft.com, account.microsoft.com, admin.manage.microsoft.com, admin.powerplatform.microsoft.com, answers.microsoft.com, apportal.microsoft.com, appsource.microsoft.com, azure.microsoft.com, bingads.microsoft.com, businessaccount.microsoft.com, businesscenter.mbs.microsoft.com, careers.microsoft.com, channel9.microsoft.com, client.dtmnebula.microsoft.com, cmat.tools.cp.microsoft.com, cmt3.research.microsoft.com, customers.microsoft.com, datamigration.microsoft.com, demos.microsoft.com, devblogs.microsoft.com, developer.microsoft.com, docs.microsoft.com, dotnet.microsoft.com, dynamics.microsoft.com, education.microsoft.com, edusupport.microsoft.com, einvoice.microsoft.com, events.microsoft.com, expertzone.microsoft.com, findtime.microsoft.com, flow.microsoft.com, forms.microsoft.com, formspro.microsoft.com, gallery.technet.microsoft.com, grv.microsoft.com, home.microsoft.com, imaginecup.microsoft.com, mail.exchange.microsoft.com, mbs.microsoft.com, mbspartner.microsoft.com, military.microsoft.com, mla.microsoft.com, mvp.microsoft.com, myinspire.microsoft.com, myprofile.microsoft.com, news.microsoft.com, nonprofit.microsoft.com, office.microsoft.com, partner.microsoft.com, partneruniversity.microsoft.com, paymentcentral.microsoft.com, plmt.microsoft.com, powerapps.microsoft.com, powerbi.microsoft.com, privacy.microsoft.com, referencesource.microsoft.com, register.ignite.microsoft.com, secure.bingads.microsoft.com, servicedesk.microsoft.com, serviceshub.microsoft.com, social.technet.microsoft.com, support.microsoft.com, teams.microsoft.com, techcommunity.microsoft.com, testconnectivity.microsoft.com, todo.microsoft.com, update.microsoft.com, visualstudio.microsoft.com, visualstudiogallery.msdn.microsoft.com, whiteboard.microsoft.com, windowsupdate.microsoft.com, www.catalog.update.microsoft.com, www.commerce.microsoft.com, www.microsoft.com Yass ยังสามารถใช้ในสคริปต์ด้วยตัวเลือก -g/--grepable :
$ yass -g microsoft.com
academy.microsoft.com|account.microsoft.com|admin.manage.microsoft.com|admin.powerplatform.microsoft.com|answers.microsoft.com|apportal.microsoft.com|appsource.microsoft.com|azure.microsoft.com|bingads.microsoft.com|businessaccount.microsoft.com|businesscenter.mbs.microsoft.com|careers.microsoft.com|channel9.microsoft.com|client.dtmnebula.microsoft.com|cmat.tools.cp.microsoft.com|cmt3.research.microsoft.com|customers.microsoft.com|datamigration.microsoft.com|demos.microsoft.com|devblogs.microsoft.com|developer.microsoft.com|docs.microsoft.com|dotnet.microsoft.com|dynamics.microsoft.com|education.microsoft.com|edusupport.microsoft.com|einvoice.microsoft.com|events.microsoft.com|expertzone.microsoft.com|findtime.microsoft.com|flow.microsoft.com|formspro.microsoft.com|gallery.technet.microsoft.com|grv.microsoft.com|home.microsoft.com|imaginecup.microsoft.com|mail.exchange.microsoft.com|mbs.microsoft.com|mbspartner.microsoft.com|military.microsoft.com|mla.microsoft.com|mvp.microsoft.com|myinspire.microsoft.com|myorder.microsoft.com|myprofile.microsoft.com|news.microsoft.com|nonprofit.microsoft.com|office.microsoft.com|partner.microsoft.com|partneruniversity.microsoft.com|paymentcentral.microsoft.com|plmt.microsoft.com|powerapps.microsoft.com|powerbi.microsoft.com|privacy.microsoft.com|referencesource.microsoft.com|register.ignite.microsoft.com|secure.bingads.microsoft.com|servicedesk.microsoft.com|serviceshub.microsoft.com|social.technet.microsoft.com|support.microsoft.com|teams.microsoft.com|techcommunity.microsoft.com|testconnectivity.microsoft.com|todo.microsoft.com|update.microsoft.com|visualstudio.microsoft.com|visualstudiogallery.msdn.microsoft.com|whiteboard.microsoft.com|windowsupdate.microsoft.com|www.catalog.update.microsoft.com|www.commerce.microsoft.com|www.microsoft.comYass มาพร้อมกับปลั๊กอินที่สร้างไว้ล่วงหน้า:
คุณสามารถดูได้ใน yass/plugins.py
ปลั๊กอิน Yass ทำตามกฎเพียงไม่กี่ข้อ:
ปลั๊กอินทั้งหมดจะถูกเก็บไว้ใน yass/plugins.py โมดูล
ปลั๊กอินทุกตัวจะต้องมี subclass yass.models.PluginBase และกำหนดคลาสชั้นในชื่อ Meta ที่มีแอตทริบิวต์ต่อไปนี้:
search_url [บังคับ], สตริงที่แสดงถึง URL พื้นฐานสำหรับเครื่องมือค้นหาquery_param [ค่าเริ่มต้น: 'q' ] พารามิเตอร์ที่ใช้ในการจัดเก็บแบบสอบถามinclude_param [ค่าเริ่มต้น: 'site%3A' ] พารามิเตอร์ที่จะใช้ในเครื่องมือค้นหาเพื่อค้นหาโดเมนเฉพาะexclude_param [ค่าเริ่มต้น: '-site%3A' ] พารามิเตอร์ที่ใช้ในเครื่องมือค้นหาเพื่อแยกโดเมนเฉพาะออกจากผลลัพธ์subdomains_selector [บังคับ], ตัวเลือก jQuery (ใช่, jQuery) ที่จะค้นหาโดเมนย่อยจากหน้าผลลัพธ์request_delay [ค่าเริ่มต้น: .250 ] จำนวนวินาทีที่จะรอหลังจากการสืบค้นทุกครั้งก่อนที่จะสอบถามอีกครั้งคุณสามารถใช้พฤติกรรมปลั๊กอินเริ่มต้นในกรณีส่วนใหญ่ แต่ถ้าคุณต้องการเปลี่ยนคุณสามารถแทนที่วิธีเหล่านี้เท่านั้น:
url(self, exclude_subdomain=None) , มันให้สตริงการสืบค้นตามแอตทริบิวต์ Metaextract(self, elements) , มันแยกสตริง URL จากรายการ Element ของวัตถุ (ดูที่ PyQuery เพื่อทราบว่ามันทำงานอย่างไร)clean(self, urls) , มันลบชิ้นส่วนที่ไร้ประโยชน์ออกจากรายการ URL เพื่อรับสตริงย่อยโดเมนเท่านั้น Yass เข้ากันได้อย่างเต็มที่กับ Python 3.7 และมีเพียงสองข้อกำหนด:
ในการติดตั้ง Yass และข้อกำหนด:
$ git clone https://github.com/mrnfrancesco/yass.git # or download and unzip release archive
$ cd yass
$ ./setup.py installหรือคุณสามารถใช้ Docker:
# Download YASS' Dockerfile
$ wget " https://raw.githubusercontent.com/mrnfrancesco/yass/master/Dockerfile "
# Build the latest version of YASS (use YASS_VERSION arg to build specific version)
$ docker build -t mrnfrancesco/yass:latest .
$ docker run --rm -ti mrnfrancesco/yass:latest /bin/sh
/yass # yass --version
YASS v0.11.7