Full Code of qi4L/qscan for AI

master 4825e3745cf3
550 files
7.0 MB
1.9M tokens
Showing preview only (7,432K chars total). The displayed content is truncated. Use the JSON API for full output.
Repository: qi4L/qscan
Branch: master
Commit: 4825e3745cf3
Files: 550
Total size: 7.0 MB

Directory structure:
gitextract_idmpnoum/

├── .github/
│   ├── conf/
│   │   └── .goreleaser.yml
│   └── workflows/
│       └── release.yml
├── .gitignore
├── LICENSE
├── README.en.md
├── README.md
├── app/
│   ├── type-args.go
│   ├── type-config.go
│   ├── type-csvwriter.go
│   └── type-jsonwriter.go
├── core/
│   ├── appfinger/
│   │   ├── appfinger.go
│   │   ├── appfinger_test.go
│   │   ├── database.go
│   │   ├── gorpc/
│   │   │   ├── rpc.go
│   │   │   └── rpc_test.go
│   │   ├── httpfinger/
│   │   │   └── http.go
│   │   ├── iconhash/
│   │   │   └── iconhash.go
│   │   ├── type-banner.go
│   │   └── type-fingerprint.go
│   ├── gonmap/
│   │   ├── gonmap.go
│   │   ├── gonmap_test.go
│   │   ├── nmap-customize-probes.go
│   │   ├── nmap-service-probes.go
│   │   ├── nmap-services.go
│   │   ├── simplenet/
│   │   │   ├── send_test.go
│   │   │   └── simplenet.go
│   │   ├── type-fingerprint.go
│   │   ├── type-match.go
│   │   ├── type-nmap.go
│   │   ├── type-portlist.go
│   │   ├── type-probe.go
│   │   ├── type-probelist.go
│   │   └── type-response.go
│   ├── hydra/
│   │   ├── cracker.go
│   │   ├── default_common_passwords.go
│   │   ├── default_ftp_authlist.go
│   │   ├── default_mssql_authlist.go
│   │   ├── default_mysql_authlist.go
│   │   ├── default_oracle_authlist.go
│   │   ├── default_postgresql_authlist.go
│   │   ├── default_rdp_authlist.go
│   │   ├── default_redis_authlist.go
│   │   ├── default_smb_authlist.go
│   │   ├── default_ssh_authlist.go
│   │   ├── default_telnet_authlist.go
│   │   ├── defuault_mongodb_authlist.go
│   │   ├── ftp/
│   │   │   └── ftp.go
│   │   ├── hydra.go
│   │   ├── mongodb/
│   │   │   └── mongodb.go
│   │   ├── mssql/
│   │   │   └── mssql.go
│   │   ├── mysql/
│   │   │   └── mysql.go
│   │   ├── oracle/
│   │   │   ├── oracle.go
│   │   │   └── oracle_test.go
│   │   ├── postgresql/
│   │   │   └── postgresql.go
│   │   ├── rdp/
│   │   │   └── grdp.go
│   │   ├── redis/
│   │   │   └── redis.go
│   │   ├── smb/
│   │   │   ├── smb.go
│   │   │   └── smb_test.go
│   │   ├── ssh/
│   │   │   └── ssh.go
│   │   ├── telnet/
│   │   │   └── telnet.go
│   │   ├── type-auth.go
│   │   ├── type-authinfo.go
│   │   ├── type-authlist.go
│   │   └── web/
│   │       └── web.go
│   ├── pocScan/
│   │   ├── POC.go
│   │   ├── Plugins/
│   │   │   ├── ActiveMQ.go
│   │   │   ├── Cassandra.go
│   │   │   ├── Elasticsearch.go
│   │   │   ├── FcgiScan.go
│   │   │   ├── IMAP.go
│   │   │   ├── InfoScan.go
│   │   │   ├── Kafka.go
│   │   │   ├── LDAP.go
│   │   │   ├── Memcached.go
│   │   │   ├── Modbus.go
│   │   │   ├── Neo4j.go
│   │   │   ├── NetBIOS.go
│   │   │   ├── POP3.go
│   │   │   ├── RabbitMQ.go
│   │   │   ├── Rsync.go
│   │   │   ├── SMTP.go
│   │   │   ├── SNMP.go
│   │   │   ├── SmbGhost.go
│   │   │   ├── VNC.go
│   │   │   ├── findnet.go
│   │   │   └── ms17010.go
│   │   ├── info/
│   │   │   └── rules.go
│   │   ├── lib/
│   │   │   ├── check.go
│   │   │   ├── client.go
│   │   │   ├── eval.go
│   │   │   ├── http.pb.go
│   │   │   ├── http.proto
│   │   │   ├── proxy.go
│   │   │   └── shiro.go
│   │   ├── pocs/
│   │   │   ├── 74cms-sqli-1.yml
│   │   │   ├── 74cms-sqli-2.yml
│   │   │   ├── 74cms-sqli.yml
│   │   │   ├── CVE-2017-7504-Jboss-serialization-RCE.yml
│   │   │   ├── CVE-2022-22947.yml
│   │   │   ├── CVE-2022-22954-VMware-RCE.yml
│   │   │   ├── CVE-2022-26134.yml
│   │   │   ├── Hotel-Internet-Manage-RCE.yml
│   │   │   ├── Struts2-062-cve-2021-31805-rce.yml
│   │   │   ├── active-directory-certsrv-detect.yml
│   │   │   ├── activemq-cve-2016-3088.yml
│   │   │   ├── activemq-default-password.yml
│   │   │   ├── airflow-unauth.yml
│   │   │   ├── alibaba-canal-default-password.yml
│   │   │   ├── alibaba-canal-info-leak.yml
│   │   │   ├── alibaba-nacos-v1-auth-bypass.yml
│   │   │   ├── alibaba-nacos.yml
│   │   │   ├── amtt-hiboss-server-ping-rce.yml
│   │   │   ├── apache-ambari-default-password.yml
│   │   │   ├── apache-axis-webservice-detect.yml
│   │   │   ├── apache-druid-cve-2021-36749.yml
│   │   │   ├── apache-flink-upload-rce.yml
│   │   │   ├── apache-httpd-cve-2021-40438-ssrf.yml
│   │   │   ├── apache-httpd-cve-2021-41773-path-traversal.yml
│   │   │   ├── apache-httpd-cve-2021-41773-rce.yml
│   │   │   ├── apache-kylin-unauth-cve-2020-13937.yml
│   │   │   ├── apache-nifi-api-unauthorized-access.yml
│   │   │   ├── apache-ofbiz-cve-2018-8033-xxe.yml
│   │   │   ├── apache-ofbiz-cve-2020-9496-xml-deserialization.yml
│   │   │   ├── aspcms-backend-leak.yml
│   │   │   ├── backup-file.yml
│   │   │   ├── bash-cve-2014-6271.yml
│   │   │   ├── bt742-pma-unauthorized-access.yml
│   │   │   ├── cacti-weathermap-file-write.yml
│   │   │   ├── chinaunicom-modem-default-password.yml
│   │   │   ├── cisco-cve-2020-3452-readfile.yml
│   │   │   ├── citrix-cve-2019-19781-path-traversal.yml
│   │   │   ├── citrix-cve-2020-8191-xss.yml
│   │   │   ├── citrix-cve-2020-8193-unauthorized.yml
│   │   │   ├── citrix-xenmobile-cve-2020-8209.yml
│   │   │   ├── coldfusion-cve-2010-2861-lfi.yml
│   │   │   ├── confluence-cve-2015-8399.yml
│   │   │   ├── confluence-cve-2019-3396-lfi.yml
│   │   │   ├── confluence-cve-2021-26084.yml
│   │   │   ├── confluence-cve-2021-26085-arbitrary-file-read.yml
│   │   │   ├── consul-rexec-rce.yml
│   │   │   ├── consul-service-rce.yml
│   │   │   ├── coremail-cnvd-2019-16798.yml
│   │   │   ├── couchcms-cve-2018-7662.yml
│   │   │   ├── couchdb-cve-2017-12635.yml
│   │   │   ├── couchdb-unauth.yml
│   │   │   ├── craftcms-seomatic-cve-2020-9757-rce.yml
│   │   │   ├── datang-ac-default-password-cnvd-2021-04128.yml
│   │   │   ├── dedecms-carbuyaction-fileinclude.yml
│   │   │   ├── dedecms-cve-2018-6910.yml
│   │   │   ├── dedecms-cve-2018-7700-rce.yml
│   │   │   ├── dedecms-guestbook-sqli.yml
│   │   │   ├── dedecms-membergroup-sqli.yml
│   │   │   ├── dedecms-url-redirection.yml
│   │   │   ├── discuz-ml3x-cnvd-2019-22239.yml
│   │   │   ├── discuz-v72-sqli.yml
│   │   │   ├── discuz-wechat-plugins-unauth.yml
│   │   │   ├── discuz-wooyun-2010-080723.yml
│   │   │   ├── django-CVE-2018-14574.yml
│   │   │   ├── dlink-850l-info-leak.yml
│   │   │   ├── dlink-cve-2019-16920-rce.yml
│   │   │   ├── dlink-cve-2019-17506.yml
│   │   │   ├── dlink-cve-2020-25078-account-disclosure.yml
│   │   │   ├── dlink-cve-2020-9376-dump-credentials.yml
│   │   │   ├── dlink-dsl-2888a-rce.yml
│   │   │   ├── docker-api-unauthorized-rce.yml
│   │   │   ├── docker-registry-api-unauth.yml
│   │   │   ├── dotnetcms-sqli.yml
│   │   │   ├── draytek-cve-2020-8515.yml
│   │   │   ├── druid-monitor-unauth.yml
│   │   │   ├── drupal-cve-2014-3704-sqli.yml
│   │   │   ├── drupal-cve-2018-7600-rce.yml
│   │   │   ├── drupal-cve-2019-6340.yml
│   │   │   ├── dubbo-admin-default-password.yml
│   │   │   ├── duomicms-sqli.yml
│   │   │   ├── dvr-cve-2018-9995.yml
│   │   │   ├── e-office-v10-sql-inject.yml
│   │   │   ├── e-office-v9-upload-cnvd-2021-49104.yml
│   │   │   ├── e-zkeco-cnvd-2020-57264-read-file.yml
│   │   │   ├── ecology-arbitrary-file-upload.yml
│   │   │   ├── ecology-filedownload-directory-traversal.yml
│   │   │   ├── ecology-javabeanshell-rce.yml
│   │   │   ├── ecology-springframework-directory-traversal.yml
│   │   │   ├── ecology-syncuserinfo-sqli.yml
│   │   │   ├── ecology-v8-sqli.yml
│   │   │   ├── ecology-validate-sqli.yml
│   │   │   ├── ecology-workflowcentertreedata-sqli.yml
│   │   │   ├── ecology-workflowservicexml.yml
│   │   │   ├── ecshop-cnvd-2020-58823-sqli.yml
│   │   │   ├── ecshop-collection-list-sqli.yml
│   │   │   ├── ecshop-login-sqli.yml
│   │   │   ├── ecshop-rce.yml
│   │   │   ├── eea-info-leak-cnvd-2021-10543.yml
│   │   │   ├── elasticsearch-cve-2014-3120.yml
│   │   │   ├── elasticsearch-cve-2015-1427.yml
│   │   │   ├── elasticsearch-cve-2015-3337-lfi.yml
│   │   │   ├── elasticsearch-cve-2015-5531.yml
│   │   │   ├── elasticsearch-unauth.yml
│   │   │   ├── etcd-unauth.yml
│   │   │   ├── etcd-v3-unauth.yml
│   │   │   ├── etouch-v2-sqli.yml
│   │   │   ├── exchange-cve-2021-26855-ssrf.yml
│   │   │   ├── eyou-rce.yml
│   │   │   ├── ezoffice-dpwnloadhttp.jsp-filedownload.yml
│   │   │   ├── f5-cve-2021-22986.yml
│   │   │   ├── f5-cve-2022-1388.yml
│   │   │   ├── f5-tmui-cve-2020-5902-rce.yml
│   │   │   ├── fangweicms-sqli.yml
│   │   │   ├── fckeditor-info.yml
│   │   │   ├── feifeicms-lfr.yml
│   │   │   ├── finecms-sqli.yml
│   │   │   ├── finereport-directory-traversal.yml
│   │   │   ├── finereport-v8-arbitrary-file-read.yml
│   │   │   ├── flexpaper-cve-2018-11686.yml
│   │   │   ├── flink-jobmanager-cve-2020-17519-lfi.yml
│   │   │   ├── fortigate-cve-2018-13379-readfile.yml
│   │   │   ├── frp-dashboard-unauth.yml
│   │   │   ├── gateone-cve-2020-35736.yml
│   │   │   ├── gilacms-cve-2020-5515.yml
│   │   │   ├── gitlab-graphql-info-leak-cve-2020-26413.yml
│   │   │   ├── gitlab-ssrf-cve-2021-22214.yml
│   │   │   ├── gitlist-rce-cve-2018-1000533.yml
│   │   │   ├── glassfish-cve-2017-1000028-lfi.yml
│   │   │   ├── go-pprof-leak.yml
│   │   │   ├── gocd-cve-2021-43287.yml
│   │   │   ├── h2-database-web-console-unauthorized-access.yml
│   │   │   ├── h3c-imc-rce.yml
│   │   │   ├── h3c-secparh-any-user-login.yml
│   │   │   ├── h5s-video-platform-cnvd-2020-67113-unauth.yml
│   │   │   ├── hadoop-yarn-unauth.yml
│   │   │   ├── hanming-video-conferencing-file-read.yml
│   │   │   ├── harbor-cve-2019-16097.yml
│   │   │   ├── hikvision-cve-2017-7921.yml
│   │   │   ├── hikvision-gateway-data-file-read.yml
│   │   │   ├── hikvision-info-leak.yml
│   │   │   ├── hikvision-intercom-service-default-password.yml
│   │   │   ├── hikvision-showfile-file-read.yml
│   │   │   ├── hikvision-unauthenticated-rce-cve-2021-36260.yml
│   │   │   ├── hjtcloud-arbitrary-fileread.yml
│   │   │   ├── hjtcloud-directory-file-leak.yml
│   │   │   ├── huawei-home-gateway-hg659-fileread.yml
│   │   │   ├── ifw8-router-cve-2019-16313.yml
│   │   │   ├── iis-put-getshell.yml
│   │   │   ├── influxdb-unauth.yml
│   │   │   ├── inspur-tscev4-cve-2020-21224-rce.yml
│   │   │   ├── jboss-cve-2010-1871.yml
│   │   │   ├── jboss-unauth.yml
│   │   │   ├── jeewms-showordownbyurl-fileread.yml
│   │   │   ├── jellyfin-file-read-cve-2021-21402.yml
│   │   │   ├── jenkins-cve-2018-1000600.yml
│   │   │   ├── jenkins-cve-2018-1000861-rce.yml
│   │   │   ├── jenkins-unauthorized-access.yml
│   │   │   ├── jetty-cve-2021-28164.yml
│   │   │   ├── jira-cve-2019-11581.yml
│   │   │   ├── jira-cve-2019-8442.yml
│   │   │   ├── jira-cve-2019-8449.yml
│   │   │   ├── jira-cve-2020-14179.yml
│   │   │   ├── jira-cve-2020-14181.yml
│   │   │   ├── jira-ssrf-cve-2019-8451.yml
│   │   │   ├── joomla-cnvd-2019-34135-rce.yml
│   │   │   ├── joomla-component-vreview-sql.yml
│   │   │   ├── joomla-cve-2015-7297-sqli.yml
│   │   │   ├── joomla-cve-2017-8917-sqli.yml
│   │   │   ├── joomla-cve-2018-7314-sql.yml
│   │   │   ├── joomla-ext-zhbaidumap-cve-2018-6605-sqli.yml
│   │   │   ├── jumpserver-unauth-rce.yml
│   │   │   ├── jupyter-notebook-unauthorized-access.yml
│   │   │   ├── kafka-manager-unauth.yml
│   │   │   ├── kibana-cve-2018-17246.yml
│   │   │   ├── kibana-unauth.yml
│   │   │   ├── kingdee-eas-directory-traversal.yml
│   │   │   ├── kingsoft-v8-default-password.yml
│   │   │   ├── kingsoft-v8-file-read.yml
│   │   │   ├── kong-cve-2020-11710-unauth.yml
│   │   │   ├── kubernetes-unauth.yml
│   │   │   ├── kyan-network-monitoring-account-password-leakage.yml
│   │   │   ├── landray-oa-custom-jsp-fileread.yml
│   │   │   ├── lanproxy-cve-2021-3019-lfi.yml
│   │   │   ├── laravel-cve-2021-3129.yml
│   │   │   ├── laravel-debug-info-leak.yml
│   │   │   ├── laravel-improper-webdir.yml
│   │   │   ├── maccms-rce.yml
│   │   │   ├── maccmsv10-backdoor.yml
│   │   │   ├── metinfo-cve-2019-16996-sqli.yml
│   │   │   ├── metinfo-cve-2019-16997-sqli.yml
│   │   │   ├── metinfo-cve-2019-17418-sqli.yml
│   │   │   ├── metinfo-file-read.yml
│   │   │   ├── metinfo-lfi-cnvd-2018-13393.yml
│   │   │   ├── minio-default-password.yml
│   │   │   ├── mongo-express-cve-2019-10758.yml
│   │   │   ├── mpsec-isg1000-file-read.yml
│   │   │   ├── msvod-sqli.yml
│   │   │   ├── myucms-lfr.yml
│   │   │   ├── nagio-cve-2018-10735.yml
│   │   │   ├── nagio-cve-2018-10736.yml
│   │   │   ├── nagio-cve-2018-10737.yml
│   │   │   ├── nagio-cve-2018-10738.yml
│   │   │   ├── natshell-arbitrary-file-read.yml
│   │   │   ├── netentsec-icg-default-password.yml
│   │   │   ├── netentsec-ngfw-rce.yml
│   │   │   ├── netgear-cve-2017-5521.yml
│   │   │   ├── nextjs-cve-2017-16877.yml
│   │   │   ├── nexus-cve-2019-7238.yml
│   │   │   ├── nexus-cve-2020-10199.yml
│   │   │   ├── nexus-cve-2020-10204.yml
│   │   │   ├── nexus-default-password.yml
│   │   │   ├── nexusdb-cve-2020-24571-path-traversal.yml
│   │   │   ├── nhttpd-cve-2019-16278.yml
│   │   │   ├── node-red-dashboard-file-read-cve-2021-3223.yml
│   │   │   ├── novnc-url-redirection-cve-2021-3654.yml
│   │   │   ├── nps-default-password.yml
│   │   │   ├── ns-asg-file-read.yml
│   │   │   ├── nsfocus-uts-password-leak.yml
│   │   │   ├── nuuo-file-inclusion.yml
│   │   │   ├── odoo-file-read.yml
│   │   │   ├── openfire-cve-2019-18394-ssrf.yml
│   │   │   ├── opentsdb-cve-2020-35476-rce.yml
│   │   │   ├── panabit-gateway-default-password.yml
│   │   │   ├── panabit-ixcache-default-password.yml
│   │   │   ├── pandorafms-cve-2019-20224-rce.yml
│   │   │   ├── pbootcms-database-file-download.yml
│   │   │   ├── php-cgi-cve-2012-1823.yml
│   │   │   ├── phpcms-cve-2018-19127.yml
│   │   │   ├── phpmyadmin-cve-2018-12613-file-inclusion.yml
│   │   │   ├── phpmyadmin-setup-deserialization.yml
│   │   │   ├── phpok-sqli.yml
│   │   │   ├── phpshe-sqli.yml
│   │   │   ├── phpstudy-backdoor-rce.yml
│   │   │   ├── phpstudy-nginx-wrong-resolve.yml
│   │   │   ├── phpunit-cve-2017-9841-rce.yml
│   │   │   ├── powercreator-arbitrary-file-upload.yml
│   │   │   ├── prometheus-url-redirection-cve-2021-29622.yml
│   │   │   ├── pulse-cve-2019-11510.yml
│   │   │   ├── pyspider-unauthorized-access.yml
│   │   │   ├── qibocms-sqli.yml
│   │   │   ├── qilin-bastion-host-rce.yml
│   │   │   ├── qizhi-fortressaircraft-unauthorized.yml
│   │   │   ├── qnap-cve-2019-7192.yml
│   │   │   ├── rabbitmq-default-password.yml
│   │   │   ├── rails-cve-2018-3760-rce.yml
│   │   │   ├── razor-cve-2018-8770.yml
│   │   │   ├── rconfig-cve-2019-16663.yml
│   │   │   ├── resin-cnnvd-200705-315.yml
│   │   │   ├── resin-inputfile-fileread-or-ssrf.yml
│   │   │   ├── resin-viewfile-fileread.yml
│   │   │   ├── rockmongo-default-password.yml
│   │   │   ├── ruijie-eg-cli-rce.yml
│   │   │   ├── ruijie-eg-file-read.yml
│   │   │   ├── ruijie-eg-info-leak.yml
│   │   │   ├── ruijie-eweb-rce-cnvd-2021-09650.yml
│   │   │   ├── ruijie-nbr1300g-cli-password-leak.yml
│   │   │   ├── ruijie-uac-cnvd-2021-14536.yml
│   │   │   ├── ruoyi-management-fileread.yml
│   │   │   ├── saltstack-cve-2020-16846.yml
│   │   │   ├── saltstack-cve-2021-25282-file-write.yml
│   │   │   ├── samsung-wea453e-default-pwd.yml
│   │   │   ├── samsung-wea453e-rce.yml
│   │   │   ├── samsung-wlan-ap-wea453e-rce.yml
│   │   │   ├── sangfor-ad-download.php-filedownload.yml
│   │   │   ├── sangfor-ba-rce.yml
│   │   │   ├── sangfor-edr-arbitrary-admin-login.yml
│   │   │   ├── sangfor-edr-cssp-rce.yml
│   │   │   ├── sangfor-edr-tool-rce.yml
│   │   │   ├── satellian-cve-2020-7980-rce.yml
│   │   │   ├── seacms-before-v992-rce.yml
│   │   │   ├── seacms-rce.yml
│   │   │   ├── seacms-sqli.yml
│   │   │   ├── seacms-v654-rce.yml
│   │   │   ├── seacmsv645-command-exec.yml
│   │   │   ├── secnet-ac-default-password.yml
│   │   │   ├── seeyon-a6-employee-info-leak.yml
│   │   │   ├── seeyon-a6-test-jsp-sql.yml
│   │   │   ├── seeyon-ajax-unauthorized-access.yml
│   │   │   ├── seeyon-cnvd-2020-62422-readfile.yml
│   │   │   ├── seeyon-oa-a8-m-information-disclosure.yml
│   │   │   ├── seeyon-oa-cookie-leak.yml
│   │   │   ├── seeyon-session-leak.yml
│   │   │   ├── seeyon-setextno-jsp-sql.yml
│   │   │   ├── seeyon-unauthoried.yml
│   │   │   ├── seeyon-wooyun-2015-0108235-sqli.yml
│   │   │   ├── seeyon-wooyun-2015-148227.yml
│   │   │   ├── shiro-key.yml
│   │   │   ├── shiziyu-cms-apicontroller-sqli.yml
│   │   │   ├── shopxo-cnvd-2021-15822.yml
│   │   │   ├── showdoc-default-password.yml
│   │   │   ├── showdoc-uploadfile.yml
│   │   │   ├── skywalking-cve-2020-9483-sqli.yml
│   │   │   ├── solarwinds-cve-2020-10148.yml
│   │   │   ├── solr-cve-2017-12629-xxe.yml
│   │   │   ├── solr-cve-2019-0193.yml
│   │   │   ├── solr-fileread.yml
│   │   │   ├── solr-velocity-template-rce.yml
│   │   │   ├── sonarqube-cve-2020-27986-unauth.yml
│   │   │   ├── sonicwall-ssl-vpn-rce.yml
│   │   │   ├── spark-api-unauth.yml
│   │   │   ├── spark-webui-unauth.yml
│   │   │   ├── spon-ip-intercom-ping-rce.yml
│   │   │   ├── spring-actuator-heapdump-file.yml
│   │   │   ├── spring-cloud-cve-2020-5405.yml
│   │   │   ├── spring-cloud-cve-2020-5410.yml
│   │   │   ├── spring-core-rce.yml
│   │   │   ├── spring-cve-2016-4977.yml
│   │   │   ├── springboot-cve-2021-21234.yml
│   │   │   ├── springboot-env-unauth.yml
│   │   │   ├── springcloud-cve-2019-3799.yml
│   │   │   ├── sql-file.yml
│   │   │   ├── struts2-045.yml
│   │   │   ├── struts2-046-1.yml
│   │   │   ├── supervisord-cve-2017-11610.yml
│   │   │   ├── swagger-ui-unauth.yml
│   │   │   ├── tamronos-iptv-rce.yml
│   │   │   ├── telecom-gateway-default-password.yml
│   │   │   ├── tensorboard-unauth.yml
│   │   │   ├── terramaster-cve-2020-15568.yml
│   │   │   ├── terramaster-tos-rce-cve-2020-28188.yml
│   │   │   ├── thinkadmin-v6-readfile.yml
│   │   │   ├── thinkcmf-lfi.yml
│   │   │   ├── thinkcmf-write-shell.yml
│   │   │   ├── thinkphp-v6-file-write.yml
│   │   │   ├── thinkphp5-controller-rce.yml
│   │   │   ├── thinkphp5023-method-rce.yml
│   │   │   ├── tianqing-info-leak.yml
│   │   │   ├── tomcat-cve-2017-12615-rce.yml
│   │   │   ├── tomcat-cve-2018-11759.yml
│   │   │   ├── tomcat-manager-weak.yml
│   │   │   ├── tongda-insert-sql-inject.yml
│   │   │   ├── tongda-meeting-unauthorized-access.yml
│   │   │   ├── tongda-oa-v11.9-api.ali.php-upload.yml
│   │   │   ├── tongda-user-session-disclosure.yml
│   │   │   ├── tongda-v2017-uploadfile.yml
│   │   │   ├── tpshop-directory-traversal.yml
│   │   │   ├── tpshop-sqli.yml
│   │   │   ├── tvt-nvms-1000-file-read-cve-2019-20085.yml
│   │   │   ├── typecho-rce.yml
│   │   │   ├── ueditor-cnvd-2017-20077-file-upload.yml
│   │   │   ├── uwsgi-cve-2018-7490.yml
│   │   │   ├── vbulletin-cve-2019-16759-bypass.yml
│   │   │   ├── vbulletin-cve-2019-16759.yml
│   │   │   ├── vmware-vcenter-arbitrary-file-read.yml
│   │   │   ├── vmware-vcenter-cve-2021-21985-rce.yml
│   │   │   ├── vmware-vcenter-unauthorized-rce-cve-2021-21972.yml
│   │   │   ├── vmware-vrealize-cve-2021-21975-ssrf.yml
│   │   │   ├── weaver-E-Cology-getSqlData-sqli.yml
│   │   │   ├── weaver-ebridge-file-read.yml
│   │   │   ├── weaver-oa-eoffice-v9-upload-getshell.yml
│   │   │   ├── weblogic-console-weak.yml
│   │   │   ├── weblogic-cve-2017-10271.yml
│   │   │   ├── weblogic-cve-2019-2725.yml
│   │   │   ├── weblogic-cve-2019-2729-1.yml
│   │   │   ├── weblogic-cve-2019-2729-2.yml
│   │   │   ├── weblogic-cve-2020-14750.yml
│   │   │   ├── weblogic-ssrf.yml
│   │   │   ├── webmin-cve-2019-15107-rce.yml
│   │   │   ├── weiphp-path-traversal.yml
│   │   │   ├── weiphp-sql.yml
│   │   │   ├── wifisky-default-password-cnvd-2021-39012.yml
│   │   │   ├── wordpress-cve-2019-19985-infoleak.yml
│   │   │   ├── wordpress-ext-adaptive-images-lfi.yml
│   │   │   ├── wordpress-ext-mailpress-rce.yml
│   │   │   ├── wuzhicms-v410-sqli.yml
│   │   │   ├── xdcms-sql.yml
│   │   │   ├── xiuno-bbs-cvnd-2019-01348-reinstallation.yml
│   │   │   ├── xunchi-cnvd-2020-23735-file-read.yml
│   │   │   ├── yapi-rce.yml
│   │   │   ├── yccms-rce.yml
│   │   │   ├── yonyou-grp-u8-sqli-to-rce.yml
│   │   │   ├── yonyou-grp-u8-sqli.yml
│   │   │   ├── yonyou-nc-arbitrary-file-upload.yml
│   │   │   ├── yonyou-nc-bsh-servlet-bshservlet-rce.yml
│   │   │   ├── yonyou-u8-oa-sqli.yml
│   │   │   ├── youphptube-encoder-cve-2019-5127.yml
│   │   │   ├── youphptube-encoder-cve-2019-5128.yml
│   │   │   ├── youphptube-encoder-cve-2019-5129.yml
│   │   │   ├── yungoucms-sqli.yml
│   │   │   ├── zabbix-authentication-bypass.yml
│   │   │   ├── zabbix-cve-2016-10134-sqli.yml
│   │   │   ├── zabbix-default-password.yml
│   │   │   ├── zcms-v3-sqli.yml
│   │   │   ├── zeit-nodejs-cve-2020-5284-directory-traversal.yml
│   │   │   ├── zeroshell-cve-2019-12725-rce.yml
│   │   │   ├── zimbra-cve-2019-9670-xxe.yml
│   │   │   └── zzcms-zsmanage-sqli.yml
│   │   └── webtitle.go
│   ├── scanner/
│   │   ├── type-client-exp.go
│   │   ├── type-client-httppoc.go
│   │   ├── type-client-hydra.go
│   │   ├── type-client-ip.go
│   │   ├── type-client-port.go
│   │   ├── type-client.go
│   │   ├── type-clinet-url.go
│   │   ├── type-config.go
│   │   └── type-response.go
│   ├── slog/
│   │   └── slog.go
│   ├── spy/
│   │   └── spy.go
│   └── stdio/
│       ├── chinese/
│       │   ├── chinese.go
│       │   └── chinese_test.go
│       └── stdio.go
├── go.mod
├── go.sum
├── lib/
│   ├── color/
│   │   ├── color.go
│   │   └── color_test.go
│   ├── dns/
│   │   ├── dns.go
│   │   └── dns_test.go
│   ├── gosmb/
│   │   ├── gosmb.go
│   │   └── gosmb_test.go
│   ├── gotelnet/
│   │   ├── telnet.go
│   │   └── telnet_test.go
│   ├── grdp/
│   │   ├── LICENSE
│   │   ├── README.md
│   │   ├── core/
│   │   │   ├── io.go
│   │   │   ├── io_test.go
│   │   │   ├── rle.go
│   │   │   ├── rle_test.go
│   │   │   ├── socket.go
│   │   │   ├── types.go
│   │   │   └── util.go
│   │   ├── emission/
│   │   │   └── emitter.go
│   │   ├── glog/
│   │   │   └── log.go
│   │   ├── grdp.go
│   │   ├── grdp_test.go
│   │   └── protocol/
│   │       ├── lic/
│   │       │   └── lic.go
│   │       ├── nla/
│   │       │   ├── cssp.go
│   │       │   ├── encode.go
│   │       │   ├── encode_test.go
│   │       │   ├── ntlm.go
│   │       │   └── ntlm_test.go
│   │       ├── pdu/
│   │       │   ├── caps.go
│   │       │   ├── cliprdr.go
│   │       │   ├── data.go
│   │       │   └── pdu.go
│   │       ├── rfb/
│   │       │   └── rfb.go
│   │       ├── sec/
│   │       │   └── sec.go
│   │       ├── t125/
│   │       │   ├── ber/
│   │       │   │   └── ber.go
│   │       │   ├── gcc/
│   │       │   │   └── gcc.go
│   │       │   ├── mcs.go
│   │       │   └── per/
│   │       │       └── per.go
│   │       ├── tpkt/
│   │       │   └── tpkt.go
│   │       └── x224/
│   │           └── x224.go
│   ├── misc/
│   │   ├── misc.go
│   │   └── misc_test.go
│   ├── osping/
│   │   └── osping.go
│   ├── pool/
│   │   ├── pool.go
│   │   └── pool_test.go
│   ├── sflag/
│   │   └── sflag.go
│   ├── simplehttp/
│   │   ├── simplehttp.go
│   │   └── simplehttp_test.go
│   ├── tcpping/
│   │   └── tcpping.go
│   └── uri/
│       └── uri.go
├── qscan.go
├── run/
│   └── run.go
└── static/
    └── fingerprint.txt

================================================
FILE CONTENTS
================================================

================================================
FILE: .github/conf/.goreleaser.yml
================================================
before:
  hooks:
    - go mod tidy
builds:
  -
    id: default
    env:
      - CGO_ENABLED=0
    goos:
      - windows
      - linux
      - darwin
      - freebsd
      - solaris
    goarch:
      - amd64
      - "386"
      - arm
      - arm64
      - mips
      - mipsle
      - mips64
    goarm:
      - "6"
      - "7"
    flags:
      - -trimpath
    ldflags:
      - -s -w
upx:
  -
    ids: [ default ]
    enabled: true
    goos: ["windows", "linux"]
    goarch: ["amd64", "386"]
    compress: best
#    lzma: true
#    brute: true
archives:
  -
    format: binary
    allow_different_binary_count: true
    name_template: >-
      {{- .ProjectName }}
      {{- if eq .Os "darwin"}}_mac
      {{- else if eq .Os "linux"}}
      {{- else if eq .Os "windows"}}
      {{- else }}_{{ .Os }}{{ end }}
      {{- if eq .Arch "amd64" }}
      {{- else if eq .Arch "386" }}32
      {{- else }}_{{ .Arch }}{{ end }}
      {{- if .Arm }}v{{ .Arm }}{{ end -}}
checksum:
  name_template: 'checksums.txt'
snapshot:
  name_template: "{{ incpatch .Version }}-next"
changelog:
  sort: asc
  filters:
    exclude:
      - '^docs:'
      - '^test:'
      - "^*.md"
      - "^*.ya?ml"


================================================
FILE: .github/workflows/release.yml
================================================
name: goreleaser

on:
  push:
    tags:
      - '*'

permissions:
  contents: write

jobs:
  goreleaser:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    steps:
      - name: "Check out code"
        uses: actions/checkout@v3
        with:
          fetch-depth: 0

      - name: "Set up Go"
        uses: actions/setup-go@v4
        with:
          go-version: 1.22.x
      -
        name: Install UPX
        uses: crazy-max/ghaction-upx@v3
        with:
          install-only: true

      - name: UPX version
        run: upx --version

      -
        name: "Create release on GitHub"
        uses: goreleaser/goreleaser-action@v4
        with:
          distribution: goreleaser
          version: latest
          args: "release --clean -f .github/conf/.goreleaser.yml"
          workdir: .
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

================================================
FILE: .gitignore
================================================
.idea/


================================================
FILE: LICENSE
================================================
                    GNU GENERAL PUBLIC LICENSE
                       Version 3, 29 June 2007

 Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
 Everyone is permitted to copy and distribute verbatim copies
 of this license document, but changing it is not allowed.

                            Preamble

  The GNU General Public License is a free, copyleft license for
software and other kinds of works.

  The licenses for most software and other practical works are designed
to take away your freedom to share and change the works.  By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users.  We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors.  You can apply it to
your programs, too.

  When we speak of free software, we are referring to freedom, not
price.  Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.

  To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights.  Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.

  For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received.  You must make sure that they, too, receive
or can get the source code.  And you must show them these terms so they
know their rights.

  Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.

  For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software.  For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.

  Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so.  This is fundamentally incompatible with the aim of
protecting users' freedom to change the software.  The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable.  Therefore, we
have designed this version of the GPL to prohibit the practice for those
products.  If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.

  Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary.  To prevent this, the GPL assures that
patents cannot be used to render the program non-free.

  The precise terms and conditions for copying, distribution and
modification follow.

                       TERMS AND CONDITIONS

  0. Definitions.

  "This License" refers to version 3 of the GNU General Public License.

  "Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.

  "The Program" refers to any copyrightable work licensed under this
License.  Each licensee is addressed as "you".  "Licensees" and
"recipients" may be individuals or organizations.

  To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy.  The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.

  A "covered work" means either the unmodified Program or a work based
on the Program.

  To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy.  Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.

  To "convey" a work means any kind of propagation that enables other
parties to make or receive copies.  Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.

  An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License.  If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.

  1. Source Code.

  The "source code" for a work means the preferred form of the work
for making modifications to it.  "Object code" means any non-source
form of a work.

  A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.

  The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form.  A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.

  The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities.  However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work.  For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.

  The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.

  The Corresponding Source for a work in source code form is that
same work.

  2. Basic Permissions.

  All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met.  This License explicitly affirms your unlimited
permission to run the unmodified Program.  The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work.  This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.

  You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force.  You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright.  Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.

  Conveying under any other circumstances is permitted solely under
the conditions stated below.  Sublicensing is not allowed; section 10
makes it unnecessary.

  3. Protecting Users' Legal Rights From Anti-Circumvention Law.

  No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.

  When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.

  4. Conveying Verbatim Copies.

  You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.

  You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.

  5. Conveying Modified Source Versions.

  You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:

    a) The work must carry prominent notices stating that you modified
    it, and giving a relevant date.

    b) The work must carry prominent notices stating that it is
    released under this License and any conditions added under section
    7.  This requirement modifies the requirement in section 4 to
    "keep intact all notices".

    c) You must license the entire work, as a whole, under this
    License to anyone who comes into possession of a copy.  This
    License will therefore apply, along with any applicable section 7
    additional terms, to the whole of the work, and all its parts,
    regardless of how they are packaged.  This License gives no
    permission to license the work in any other way, but it does not
    invalidate such permission if you have separately received it.

    d) If the work has interactive user interfaces, each must display
    Appropriate Legal Notices; however, if the Program has interactive
    interfaces that do not display Appropriate Legal Notices, your
    work need not make them do so.

  A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit.  Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.

  6. Conveying Non-Source Forms.

  You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:

    a) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by the
    Corresponding Source fixed on a durable physical medium
    customarily used for software interchange.

    b) Convey the object code in, or embodied in, a physical product
    (including a physical distribution medium), accompanied by a
    written offer, valid for at least three years and valid for as
    long as you offer spare parts or customer support for that product
    model, to give anyone who possesses the object code either (1) a
    copy of the Corresponding Source for all the software in the
    product that is covered by this License, on a durable physical
    medium customarily used for software interchange, for a price no
    more than your reasonable cost of physically performing this
    conveying of source, or (2) access to copy the
    Corresponding Source from a network server at no charge.

    c) Convey individual copies of the object code with a copy of the
    written offer to provide the Corresponding Source.  This
    alternative is allowed only occasionally and noncommercially, and
    only if you received the object code with such an offer, in accord
    with subsection 6b.

    d) Convey the object code by offering access from a designated
    place (gratis or for a charge), and offer equivalent access to the
    Corresponding Source in the same way through the same place at no
    further charge.  You need not require recipients to copy the
    Corresponding Source along with the object code.  If the place to
    copy the object code is a network server, the Corresponding Source
    may be on a different server (operated by you or a third party)
    that supports equivalent copying facilities, provided you maintain
    clear directions next to the object code saying where to find the
    Corresponding Source.  Regardless of what server hosts the
    Corresponding Source, you remain obligated to ensure that it is
    available for as long as needed to satisfy these requirements.

    e) Convey the object code using peer-to-peer transmission, provided
    you inform other peers where the object code and Corresponding
    Source of the work are being offered to the general public at no
    charge under subsection 6d.

  A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.

  A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling.  In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage.  For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product.  A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.

  "Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source.  The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.

  If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information.  But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).

  The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed.  Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.

  Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.

  7. Additional Terms.

  "Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law.  If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.

  When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it.  (Additional permissions may be written to require their own
removal in certain cases when you modify the work.)  You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.

  Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:

    a) Disclaiming warranty or limiting liability differently from the
    terms of sections 15 and 16 of this License; or

    b) Requiring preservation of specified reasonable legal notices or
    author attributions in that material or in the Appropriate Legal
    Notices displayed by works containing it; or

    c) Prohibiting misrepresentation of the origin of that material, or
    requiring that modified versions of such material be marked in
    reasonable ways as different from the original version; or

    d) Limiting the use for publicity purposes of names of licensors or
    authors of the material; or

    e) Declining to grant rights under trademark law for use of some
    trade names, trademarks, or service marks; or

    f) Requiring indemnification of licensors and authors of that
    material by anyone who conveys the material (or modified versions of
    it) with contractual assumptions of liability to the recipient, for
    any liability that these contractual assumptions directly impose on
    those licensors and authors.

  All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10.  If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term.  If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.

  If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.

  Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.

  8. Termination.

  You may not propagate or modify a covered work except as expressly
provided under this License.  Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).

  However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.

  Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.

  Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License.  If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.

  9. Acceptance Not Required for Having Copies.

  You are not required to accept this License in order to receive or
run a copy of the Program.  Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance.  However,
nothing other than this License grants you permission to propagate or
modify any covered work.  These actions infringe copyright if you do
not accept this License.  Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.

  10. Automatic Licensing of Downstream Recipients.

  Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License.  You are not responsible
for enforcing compliance by third parties with this License.

  An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations.  If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.

  You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License.  For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.

  11. Patents.

  A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based.  The
work thus licensed is called the contributor's "contributor version".

  A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version.  For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.

  Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.

  In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement).  To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.

  If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients.  "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.

  If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.

  A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License.  You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.

  Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.

  12. No Surrender of Others' Freedom.

  If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License.  If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all.  For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.

  13. Use with the GNU Affero General Public License.

  Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work.  The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.

  14. Revised Versions of this License.

  The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time.  Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.

  Each version is given a distinguishing version number.  If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation.  If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.

  If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.

  Later license versions may give you additional or different
permissions.  However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.

  15. Disclaimer of Warranty.

  THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU.  SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.

  16. Limitation of Liability.

  IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.

  17. Interpretation of Sections 15 and 16.

  If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.

                     END OF TERMS AND CONDITIONS

            How to Apply These Terms to Your New Programs

  If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.

  To do so, attach the following notices to the program.  It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.

    <one line to give the program's name and a brief idea of what it does.>
    Copyright (C) <year>  <name of author>

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program.  If not, see <https://www.gnu.org/licenses/>.

Also add information on how to contact you by electronic and paper mail.

  If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:

    <program>  Copyright (C) <year>  <name of author>
    This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type `show c' for details.

The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License.  Of course, your program's commands
might be different; for a GUI interface, you would use an "about box".

  You should also get your employer (if you work as a programmer) or school,
if any, to sign a "copyright disclaimer" for the program, if necessary.
For more information on this, and how to apply and follow the GNU GPL, see
<https://www.gnu.org/licenses/>.

  The GNU General Public License does not permit incorporating your program
into proprietary programs.  If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library.  If this is what you want to do, use the GNU Lesser General
Public License instead of this License.  But first, please read
<https://www.gnu.org/licenses/why-not-lgpl.html>.


================================================
FILE: README.en.md
================================================
<h1 align="center"> Qscan </h1>

<p align="center">
<img src="https://img.shields.io/badge/go-1.23-blue"  alt=""/>

<p align="center"> An ultra-fast intranet scanner featuring port scanning, protocol detection, fingerprint identification, brute force cracking, and vulnerability detection. Supports 1200+ protocols, 10,000+ protocol fingerprints, 20,000+ application fingerprints, and over 10 brute force protocols. </p>

<p align="center"> <a href="README.md">Chinese Documentation</a> | English </p>

# 🚀 Quick Start Guide

📢 Please take a moment to read this documentation—it will help you quickly get familiar with JYso!

🧐 Usage documentation available on [Wiki](https://github.com/qi4L/qscan/wiki).

✔ Download the latest version from [Releases](https://github.com/qi4L/qscan/releases).

# 👍 Key Features

+ Spy mode enables ultra-fast scanning of common B-segments, significantly faster than conventional sequential scanning;
+ Combines precise port identification with blazing-fast speed:
    + Thread pool optimization: Reduces memory allocation and GC overhead;
    + Template caching: Minimizes redundant construction;
    + Parallel transmission: Maximizes multi-core CPU utilization;
    + Batch processing: Reduces system calls;
    + Parallel processing pipeline: Parallel receiving, parsing, and processing for maximum efficiency;
    + Buffer optimization: Increased channel buffer size to prevent blocking;

# ✨ 404Starlink
<img src="https://raw.githubusercontent.com/knownsec/404StarLink-Project/master/logo.png" alt="404StarLink Project Logo" width="30%" loading="lazy">

Qscan has joined [404Starlink](https://github.com/knownsec/404StarLink)

# Advantages Over Fscan

+ Speed comparison with the same number of ports and threads:

QScan
![img.png](assets/qscan速度.png)

FScan
![img.png](assets/FScan.png)

# References

https://github.com/lcvvvv/kscan

https://github.com/shadow1ng/fscan

================================================
FILE: README.md
================================================
<h1 align="center"> Qscan </h1>

<p align="center">
<img src="https://img.shields.io/badge/go-1.23-blue" />

<p align="center"> 一个速度极快的内网扫描器,具备端口扫描、协议检测、指纹识别,暴力破解,漏洞探测等功能。支持协议1200+,协议指纹10000+,应用指纹20000+,暴力破解协议10余种 </p>

<p align="center"> 中文文档 | <a href="README.en.md">English</a> </p>

# 🚀 上手指南

📢 请务必花一点时间阅读此文档,有助于你快速熟悉JYso!

🧐 使用文档[Wiki](https://github.com/qi4L/qscan/wiki)。

✔ 下载最新版本的[Releases](https://github.com/qi4L/qscan/releases)。

# 👍 特点

+ spy 模式极速遍历常见B段,比常见的一个一个遍历,快上很多倍;
+ 在精确识别端口的同时,又拥有极快的速度;
  + 线程池优化:减少内存分配和 GC 开销;
  + 模板缓存:减少重复构建;
  + 并行发送:榨干多核 CPU;
  + 批量处理:减少系统调用;
  + 并行处理管道: 接收、解析、处理三阶段并行,效率最大化;
  + 缓冲区优化: 增加 Channel 缓冲区,避免阻塞;

# ✨ 404星链计划
<img src="https://raw.githubusercontent.com/knownsec/404StarLink-Project/master/logo.png" alt="404StarLink Project Logo" width="30%" loading="lazy">

Qscan 现已加入 [404星链计划](https://github.com/knownsec/404StarLink)

# 和Fscan对比的优势

+ 同端口数,同线程数下的速度对比:

QScan
![img.png](assets/qscan速度.png)

FScan
![img.png](assets/FScan.png)

# 参考

https://github.com/lcvvvv/kscan

https://github.com/shadow1ng/fscan

================================================
FILE: app/type-args.go
================================================
package app

import (
	"Qscan/lib/sflag"
	"fmt"
	"github.com/gookit/color"
	"os"
	"strings"
	"time"
)

type args struct {
	USAGE, HELP, LOGO, SYNTAX string
	//qscan模块
	Help, Debug, ClosePing, Check, CloseColor, Scan bool
	ScanVersion, DownloadQQwry, CloseCDN            bool
	Output, Proxy, Encoding                         string
	ExcludedIp                                      []string
	Port, ExcludedPort                              []int
	Path, Host, Target                              []string
	OutputJson, OutputCSV                           string
	Spy, Touch                                      string
	Top, Threads, Timeout                           int
	//hydra模块
	Hydra, HydraUpdate             bool
	HydraUser, HydraPass, HydraMod []string
	//exploit模块
	Exploit, DnsLog, PocFull bool
	Cookie                   string
	PocNum, WebTimeout       int
}

var (
	green  = []*color.Style256{color.S256(46), color.S256(47), color.S256(48), color.S256(49), color.S256(50), color.S256(51)}
	pink   = []*color.Style256{color.S256(214), color.S256(215), color.S256(216), color.S256(217), color.S256(218), color.S256(219)}
	yellow = []*color.Style256{color.S256(226), color.S256(227), color.S256(228), color.S256(229), color.S256(230), color.S256(231)}
)

var (
	UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
	Accept    = "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9"
)

type PocInfo struct {
	Target  string
	PocName string
}

type HostInfo struct {
	Host    string
	Ports   string
	Url     string
	Infostr []string
}

var Args = args{}

// Parse 初始化参数
func (o *args) Parse() {
	//自定义Usage
	sflag.SetUsage(o.LOGO)
	//定义参数
	o.define()
	//实例化参数值
	sflag.Parse()
	//输出LOGO
	o.printBanner()
}

// 定义参数
func (o *args) define() {
	sflag.BoolVar(&o.Help, "h", false)
	sflag.BoolVar(&o.Help, "help", false)
	sflag.BoolVar(&o.Debug, "debug", false)
	sflag.BoolVar(&o.Debug, "d", false)
	//spy模块
	sflag.AutoVarString(&o.Spy, "spy", "None")
	//hydra模块
	sflag.BoolVar(&o.Hydra, "hydra", false)
	sflag.BoolVar(&o.Hydra, "hY", false)
	sflag.BoolVar(&o.HydraUpdate, "hydra-update", false)
	sflag.StringSpliceVar(&o.HydraUser, "hydra-user")
	sflag.StringSpliceVar(&o.HydraPass, "hydra-pass")
	sflag.StringSpliceVar(&o.HydraMod, "hydra-mod")
	//exploit
	sflag.BoolVar(&o.Exploit, "eX", false)
	sflag.BoolVar(&o.Exploit, "exploit", false)
	sflag.StringVar(&o.Cookie, "cookie", "")
	sflag.IntVar(&o.PocNum, "num", 20)
	sflag.IntVar(&o.WebTimeout, "wt", 5)
	sflag.BoolVar(&o.DnsLog, "dns", false)
	sflag.BoolVar(&o.PocFull, "full", false)
	//qscan模块
	sflag.StringSpliceVar(&o.Target, "target")
	sflag.StringSpliceVar(&o.Target, "t")
	sflag.IntSpliceVar(&o.Port, "port")
	sflag.IntSpliceVar(&o.Port, "p")
	sflag.IntSpliceVar(&o.ExcludedPort, "eP")
	sflag.IntSpliceVar(&o.ExcludedPort, "excluded-port")
	sflag.StringSpliceVar(&o.ExcludedIp, "eI")
	sflag.StringSpliceVar(&o.ExcludedIp, "excluded-ip")
	sflag.StringSpliceVar(&o.Path, "path")
	sflag.StringSpliceVar(&o.Host, "host")
	sflag.StringVar(&o.Proxy, "proxy", "")
	sflag.IntVar(&o.Top, "top", 400)
	sflag.IntVar(&o.Threads, "threads", 800)
	sflag.IntVar(&o.Timeout, "timeout", 3)
	sflag.BoolVar(&o.ClosePing, "Pn", false)
	sflag.BoolVar(&o.Check, "check", false)
	sflag.BoolVar(&o.ScanVersion, "sV", false)
	//输出模块
	sflag.StringVar(&o.Encoding, "encoding", "utf-8")
	sflag.StringVar(&o.Output, "o", "")
	sflag.StringVar(&o.Output, "output", "")
	sflag.StringVar(&o.OutputJson, "oJ", "")
	sflag.StringVar(&o.OutputCSV, "oC", "")
	sflag.BoolVar(&o.CloseColor, "Cn", false)
}

func (o *args) SetLogo(logo string) {
	o.LOGO = logo
}

func (o *args) SetUsage(usage string) {
	o.USAGE = usage
}

func (o *args) SetSyntax(syntax string) {
	o.SYNTAX = syntax
}

func (o *args) SetHelp(help string) {
	o.HELP = help
}

// CheckArgs 校验参数真实性
func (o *args) CheckArgs() {
	if len(o.Port) > 0 && o.Top != 400 {
		fmt.Print("--port、--top参数不能同时使用")
		os.Exit(0)
	}
	//判断内容
	if o.Top != 0 && (o.Top > 1000 || o.Top < 1) {
		fmt.Print("TOP参数输入错误,TOP参数应为1-1000之间的整数。")
		os.Exit(0)
	}
	if o.Proxy != "" && sflag.ProxyStrVerification(o.Proxy) {
		fmt.Print("--proxy参数输入错误,其格式应为:http://ip:port,支持socks5/4")
	}
	if o.Threads != 0 && o.Threads > 2048 {
		fmt.Print("--threads参数最大值为2048")
		os.Exit(0)
	}
}

// 输出LOGO
func (o *args) printBanner() {
	if len(os.Args) == 1 {
		fmt.Println(gradient(o.LOGO, pink))
		fmt.Print(o.USAGE)
		os.Exit(0)
	}
	if o.Help {
		fmt.Println(gradient(o.LOGO, pink))
		fmt.Print(o.USAGE)
		fmt.Print(o.HELP)
		os.Exit(0)
	}
	//打印logo
	fmt.Println(gradient(o.LOGO, pink))
}

func gradient(text string, coloRR []*color.Style256) string {
	lines := strings.Split(text, "\n")

	var output string

	t := len(text) / 6
	i := 0
	j := 0
	for l := 0; l < len(lines); l++ {
		str := strings.Split(lines[l], "")
		for _, x := range str {
			j++
			output += coloRR[i].Sprint(x)
			if j > t {
				i++
				j = 0
			}
		}
		if len(lines) != 0 {
			output += "\n"
		}
	}

	return strings.TrimRight(output, "\n")
}

// CheckErrs 检查是否为需要重试的错误
func CheckErrs(err error) error {
	if err == nil {
		return nil
	}

	// 已知需要重试的错误列表
	errs := []string{
		"closed by the remote host", "too many connections",
		"EOF", "A connection attempt failed",
		"established connection failed", "connection attempt failed",
		"Unable to read", "is not allowed to connect to this",
		"no pg_hba.conf entry",
		"No connection could be made",
		"invalid packet size",
		"bad connection",
	}

	// 检查错误是否匹配
	errLower := strings.ToLower(err.Error())
	for _, key := range errs {
		if strings.Contains(errLower, strings.ToLower(key)) {
			time.Sleep(3 * time.Second)
			return err
		}
	}

	return nil
}

var Userdict = map[string][]string{
	"elastic":   {"elastic", "admin", "kibana"},
	"rabbitmq":  {"guest", "admin", "administrator", "rabbit", "rabbitmq", "root"},
	"kafka":     {"admin", "kafka", "root", "test"},
	"activemq":  {"admin", "root", "activemq", "system", "user"},
	"ldap":      {"admin", "administrator", "root", "cn=admin", "cn=administrator", "cn=manager"},
	"smtp":      {"admin", "root", "postmaster", "mail", "smtp", "administrator"},
	"imap":      {"admin", "mail", "postmaster", "root", "user", "test"},
	"pop3":      {"admin", "root", "mail", "user", "test", "postmaster"},
	"zabbix":    {"Admin", "admin", "guest", "user"},
	"rsync":     {"rsync", "root", "admin", "backup"},
	"cassandra": {"cassandra", "admin", "root", "system"},
	"neo4j":     {"neo4j", "admin", "root", "test"},
}

var Passwords = []string{"123456", "admin", "admin123", "root", "", "pass123", "pass@123", "password", "Password", "P@ssword123", "123123", "654321", "111111", "123", "1", "admin@123", "Admin@123", "admin123!@#", "{user}", "{user}1", "{user}111", "{user}123", "{user}@123", "{user}_123", "{user}#123", "{user}@111", "{user}@2019", "{user}@123#4", "P@ssw0rd!", "P@ssw0rd", "Passw0rd", "qwe123", "12345678", "test", "test123", "123qwe", "123qwe!@#", "123456789", "123321", "666666", "a123456.", "123456~a", "123456!a", "000000", "1234567890", "8888888", "!QAZ2wsx", "1qaz2wsx", "abc123", "abc123456", "1qaz@WSX", "a11111", "a12345", "Aa1234", "Aa1234.", "Aa12345", "a123456", "a123123", "Aa123123", "Aa123456", "Aa12345.", "sysadmin", "system", "1qaz!QAZ", "2wsx@WSX", "qwe123!@#", "Aa123456!", "A123456s!", "sa123456", "1q2w3e", "Charge123", "Aa123456789", "elastic123"}


================================================
FILE: app/type-config.go
================================================
package app

import (
	"Qscan/core/hydra"
	"Qscan/core/slog"
	"Qscan/lib/misc"
	"encoding/csv"
	"os"
	"sync"
	"time"
)

type Config struct {
	Target                       []string
	ExcludedIp                   []string
	Port                         []int
	Output                       *os.File
	Proxy, Encoding              string
	Path, Host                   []string
	OutputJson                   *JSONWriter
	OutputCSV                    *CSVWriter
	Threads                      int
	Timeout                      time.Duration
	ClosePing, Check, CloseColor bool
	ScanVersion                  bool
	Spy                          string
	//hydra
	Hydra, HydraUpdate             bool
	HydraPass, HydraUser, HydraMod []string
	//exploit
	Exploit, DnsLog, PocFull bool
	Cookie                   string
	PocNum, WebTimeout       int
}

var Setting = New()

func ConfigInit() {
	args := Args
	Setting.Spy = args.Spy
	if args.Spy == "None" {
		Setting.Target = args.Target
	}
	Setting.loadPort()
	Setting.loadExcludedPort()
	Setting.loadOutput()
	Setting.loadScanPing()
	Setting.ExcludedIp = args.ExcludedIp
	Setting.Timeout = time.Duration(args.Timeout) * time.Second
	Setting.Check = args.Check
	if Setting.Check == true {
		Setting.Port = []int{}
	}
	Setting.Path = args.Path
	Setting.Proxy = args.Proxy
	Setting.Host = args.Host
	Setting.Threads = args.Threads
	Setting.Encoding = args.Encoding
	Setting.OutputJson = loadOutputJSON(args.OutputJson)
	Setting.OutputCSV = loadOutputCSV(args.OutputCSV)
	Setting.ScanVersion = args.ScanVersion
	//Setting.CloseColor = args.CloseColor
	//hydra模块
	Setting.Hydra = args.Hydra
	Setting.HydraUpdate = args.HydraUpdate
	Setting.HydraUser = args.HydraUser
	Setting.HydraPass = args.HydraPass
	Setting.loadHydraMod(args.HydraMod)
	//exploit
	Setting.Exploit = args.Exploit
	Setting.Cookie = args.Cookie
	Setting.PocNum = args.PocNum
	Setting.DnsLog = args.DnsLog
	Setting.PocFull = args.PocFull
	Setting.WebTimeout = args.WebTimeout
}

func loadOutputJSON(path string) *JSONWriter {
	if path == "" {
		return nil
	}
	if _, err := os.Stat(path); err == nil || os.IsExist(err) {
		slog.Println(slog.WARN, "检测到JSON输出文件已存在,将自动删除该文件:", path)
		if err := os.Remove(path); err != nil {
			slog.Println(slog.ERROR, "删除文件失败,请检查:", err)
		}
	}
	f, err := os.OpenFile(path, os.O_CREATE|os.O_RDWR, 0764)
	if err != nil {
		slog.Println(slog.ERROR, err)
		return nil
	}
	jw := &JSONWriter{f, &sync.Mutex{}}
	jw.f.Seek(0, 0)
	_, err = jw.f.WriteString(`[]`)
	if err != nil {
		slog.Println(slog.ERROR, err)
	}
	return jw
}

func loadOutputCSV(path string) *CSVWriter {
	if path == "" {
		return nil
	}

	if _, err := os.Stat(path); err == nil || os.IsExist(err) {
		slog.Println(slog.WARN, "检测到CSV输出文件已存在,将自动删除该文件:", path)
		if err := os.Remove(path); err != nil {
			slog.Println(slog.ERROR, "删除文件失败,请检查:", err)
		}
	}

	f, err := os.OpenFile(path, os.O_CREATE|os.O_RDWR, 0764)
	if err != nil {
		slog.Println(slog.ERROR, err)
	}
	f.WriteString("\xEF\xBB\xBF") // 写入UTF-8 BOM
	w := csv.NewWriter(f)
	writer := &CSVWriter{w, []string{
		"URL", "Keyword", "IP", "Port", "Service", "Length",
		"FingerPrint", "Addr",
		"Digest", "Info", "Hostname", "OperatingSystem",
		"DeviceType", "ProductName", "Version",
		"FoundDomain", "FoundIP", "ICP",
		"ProbeName", "MatchRegexString",
		//"Header", "Cert", "Response", "Body",
	}, &sync.Mutex{}}
	writer.f.Write(writer.title)
	writer.f.Flush()
	return writer
}

func (c *Config) loadPort() {
	if len(Args.Port) > 0 {
		c.Port = append(c.Port, Args.Port...)
	}
	if Args.Top != 400 {
		c.Port = append(c.Port, TOP_1000[:Args.Top]...)
	}
	if len(c.Port) == 0 {
		c.Port = TOP_1000[:400]
	}

	c.Port = misc.RemoveDuplicateElement(c.Port)
}

func (c *Config) loadExcludedPort() {
	if len(Args.ExcludedPort) == 0 {
		return
	}

	excludeMap := make(map[int]struct{}, len(Args.ExcludedPort))
	for _, ep := range Args.ExcludedPort {
		excludeMap[ep] = struct{}{}
	}

	availablePort := make([]int, 0, len(c.Port))
	var ignoredPort []int
	for _, p := range c.Port {
		if _, excluded := excludeMap[p]; excluded {
			ignoredPort = append(ignoredPort, p)
		} else {
			availablePort = append(availablePort, p)
		}
	}
	c.Port = availablePort
	slog.Println(slog.WARN, "本次扫描用户屏蔽的端口:", ignoredPort)
}

func (c *Config) loadOutput() {
	expr := Args.Output
	if expr == "" {
		return
	}
	f, err := os.OpenFile(expr, os.O_CREATE|os.O_RDWR, 0764)
	if err != nil {
		slog.Println(slog.ERROR, err.Error())
	} else {
		c.Output = f
	}
}

func (c *Config) loadScanPing() {
	if len(c.Port) < 10 {
		c.ClosePing = true
		slog.Println(slog.INFO, "由于扫描端口数量小于10,已自动关闭主机存活性检测功能")
	} else {
		c.ClosePing = Args.ClosePing
	}
}

func (c *Config) loadHydraMod(splice []string) {
	if len(splice) == 0 {
		c.HydraMod = hydra.ProtocolList
		return
	}
	if splice[0] == "all" {
		c.HydraMod = hydra.ProtocolList
		return
	}
	c.HydraMod = splice
}

func New() Config {
	return Config{
		Target:   []string{},
		Path:     []string{"/"},
		Port:     []int{},
		Output:   nil,
		Proxy:    "",
		Host:     []string{},
		Threads:  800,
		Timeout:  0,
		Encoding: "utf-8",
	}
}

var TOP_1000 = []int{21, 22, 23, 25, 53, 69, 80, 81, 88, 89, 110, 135, 161, 445, 139, 137,
	143, 389, 443, 512, 513, 514, 548, 873, 1433, 1521, 2181, 3306, 3389, 3690, 4848, 5000,
	5001, 5432, 5632, 5900, 5901, 5902, 6379, 7000, 7001, 7002, 8000, 8001, 8007, 8008, 8009,
	8069, 8080, 8081, 8088, 8089, 8090, 8091, 9060, 9090, 9091, 9200, 9300, 10000, 11211, 27017,
	27018, 50000, 1080, 888, 1158, 2100, 2424, 2601, 2604, 3128, 5984, 7080, 8010, 8082, 8083,
	8084, 8085, 8086, 8087, 8222, 8443, 8686, 8888, 9000, 9001, 9002, 9003, 9004, 9005, 9006,
	9007, 9008, 9009, 9010, 9043, 9080, 9081, 9418, 9999, 50030, 50060, 50070, 82, 83, 84,
	85, 86, 87, 7003, 7004, 7005, 7006, 7007, 7008, 7009, 7010, 7070, 7071, 7072, 7073,
	7074, 7075, 7076, 7077, 7078, 7079, 8002, 8003, 8004, 8005, 8006, 8200, 90, 801, 8011,
	8100, 8012, 8070, 99, 7777, 8028, 808, 38888, 8181, 800, 18080, 8099, 8899, 8360, 8300,
	8800, 8180, 3505, 8053, 1000, 8989, 28017, 49166, 3000, 41516, 880, 8484, 6677, 8016, 7200,
	9085, 5555, 8280, 1980, 8161, 7890, 8060, 6080, 8880, 8020, 889, 8881, 38501, 1010, 93,
	6666, 100, 6789, 7060, 8018, 8022, 3050, 8787, 2000, 10001, 8013, 6888, 8040, 10021, 2011,
	6006, 4000, 8055, 4430, 1723, 6060, 7788, 8066, 9898, 6001, 8801, 10040, 9998, 803, 6688,
	10080, 8050, 7011, 40310, 18090, 802, 10003, 8014, 2080, 7288, 8044, 9992, 8889, 5644, 8886,
	9500, 58031, 9020, 8015, 8887, 8021, 8700, 91, 9900, 9191, 3312, 8186, 8735, 8380, 1234,
	38080, 9088, 9988, 2110, 21245, 3333, 2046, 9061, 2375, 9011, 8061, 8093, 9876, 8030, 8282,
	60465, 2222, 98, 1100, 18081, 70, 8383, 5155, 92, 8188, 2517, 8062, 11324, 2008, 9231,
	999, 28214, 16080, 8092, 8987, 8038, 809, 2010, 8983, 7700, 3535, 7921, 9093, 11080, 6778,
	805, 9083, 8073, 10002, 114, 2012, 701, 8810, 8400, 9099, 8098, 8808, 20000, 8065, 8822,
	15000, 9901, 11158, 1107, 28099, 12345, 2006, 9527, 51106, 688, 25006, 8045, 8023, 8029, 9997,
	7048, 8580, 8585, 2001, 8035, 10088, 20022, 4001, 2013, 20808, 8095, 106, 3580, 7742, 8119,
	6868, 32766, 50075, 7272, 3380, 3220, 7801, 5256, 5255, 10086, 1300, 5200, 8096, 6198, 6889,
	3503, 6088, 9991, 806, 5050, 8183, 8688, 1001, 58080, 1182, 9025, 8112, 7776, 7321, 235,
	8077, 8500, 11347, 7081, 8877, 8480, 9182, 58000, 8026, 11001, 10089, 5888, 8196, 8078, 9995,
	2014, 5656, 8019, 5003, 8481, 6002, 9889, 9015, 8866, 8182, 8057, 8399, 10010, 8308, 511,
	12881, 4016, 8042, 1039, 28080, 5678, 7500, 8051, 18801, 15018, 15888, 38443, 8123, 8144, 94,
	9070, 1800, 9112, 8990, 3456, 2051, 9098, 444, 9131, 97, 7100, 7711, 7180, 11000, 8037,
	6988, 122, 8885, 14007, 8184, 7012, 8079, 9888, 9301, 59999, 49705, 1979, 8900, 5080, 5013,
	1550, 8844, 4850, 206, 5156, 8813, 3030, 1790, 8802, 9012, 5544, 3721, 8980, 10009, 8043,
	8390, 7943, 8381, 8056, 7111, 1500, 7088, 5881, 9437, 5655, 8102, 6000, 65486, 4443, 10025,
	8024, 8333, 8666, 103, 8, 9666, 8999, 9111, 8071, 9092, 522, 11381, 20806, 8041, 1085,
	8864, 7900, 1700, 8036, 8032, 8033, 8111, 60022, 955, 3080, 8788, 7443, 8192, 6969, 9909,
	5002, 9990, 188, 8910, 9022, 10004, 866, 8582, 4300, 9101, 6879, 8891, 4567, 4440, 10051,
	10068, 50080, 8341, 30001, 6890, 8168, 8955, 16788, 8190, 18060, 7041, 42424, 8848, 15693, 2521,
	19010, 18103, 6010, 8898, 9910, 9190, 9082, 8260, 8445, 1680, 8890, 8649, 30082, 3013, 30000,
	2480, 7202, 9704, 5233, 8991, 11366, 7888, 8780, 7129, 6600, 9443, 47088, 7791, 18888, 50045,
	15672, 9089, 2585, 60, 9494, 31945, 2060, 8610, 8860, 58060, 6118, 2348, 8097, 38000, 18880,
	13382, 6611, 8064, 7101, 5081, 7380, 7942, 10016, 8027, 2093, 403, 9014, 8133, 6886, 95,
	8058, 9201, 6443, 5966, 27000, 7017, 6680, 8401, 9036, 8988, 8806, 6180, 421, 423, 57880,
	7778, 18881, 812, 15004, 9110, 8213, 8868, 1213, 8193, 8956, 1108, 778, 65000, 7020, 1122,
	9031, 17000, 8039, 8600, 50090, 1863, 8191, 65, 6587, 8136, 9507, 132, 200, 2070, 308,
	5811, 3465, 8680, 7999, 7084, 18082, 3938, 18001, 9595, 442, 4433, 7171, 9084, 7567, 811,
	1128, 6003, 2125, 6090, 10007, 7022, 1949, 6565, 65001, 1301, 19244, 10087, 8025, 5098, 21080,
	1200, 15801, 1005, 22343, 7086, 8601, 6259, 7102, 10333, 211, 10082, 18085, 180, 40000, 7021,
	7702, 66, 38086, 666, 6603, 1212, 65493, 96, 9053, 7031, 23454, 30088, 6226, 8660, 6170,
	8972, 9981, 48080, 9086, 10118, 40069, 28780, 20153, 20021, 20151, 58898, 10066, 1818, 9914, 55351,
	8343, 18000, 6546, 3880, 8902, 22222, 19045, 5561, 7979, 5203, 8879, 50240, 49960, 2007, 1722,
	8913, 8912, 9504, 8103, 8567, 1666, 8720, 8197, 3012, 8220, 9039, 5898, 925, 38517, 8382,
	6842, 8895, 2808, 447, 3600, 3606, 9095, 45177, 19101, 171, 133, 8189, 7108, 10154, 47078,
	6800, 8122, 381, 1443, 15580, 23352, 3443, 1180, 268, 2382, 43651, 10099, 65533, 7018, 60010,
	60101, 6699, 2005, 18002, 2009, 59777, 591, 1933, 9013, 8477, 9696, 9030, 2015, 7925, 6510,
	18803, 280, 5601, 2901, 2301, 5201, 302, 610, 8031, 5552, 8809, 6869, 9212, 17095, 20001,
	8781, 25024, 5280, 7909, 17003, 1088, 7117, 20052, 1900, 10038, 30551, 9980, 9180, 59009, 28280,
	7028, 61999, 7915, 8384, 9918, 9919, 55858, 7215, 77, 9845, 20140, 8288, 7856, 1982, 1123,
	17777, 8839, 208, 2886, 877, 6101, 5100, 804, 983, 5600, 8402, 5887, 8322, 770, 13333,
	7330, 3216, 31188, 47583, 8710, 22580, 1042, 2020, 34440, 20, 7703, 65055, 8997, 6543, 6388,
	8283, 7201, 4040, 61081, 12001, 3588, 7123, 2490, 4389, 1313, 19080, 9050, 6920, 299, 20046,
	8892, 9302, 7899, 30058, 7094, 6801, 321, 1356, 12333, 11362, 11372, 6602, 7709, 45149, 3668,
	517, 9912, 9096, 8130, 7050, 7713, 40080, 8104, 13988, 18264, 8799, 55070, 23458, 8176, 9517,
	9541, 9542, 9512, 8905, 11660, 1025, 44445, 44401, 17173, 436, 560, 733, 968, 602, 3133,
	3398, 16580, 8488, 8901, 8512, 10443, 9113, 9119, 6606, 22080, 5560, 7, 5757, 1600, 8250,
	10024, 10200, 333, 73, 7547, 8054, 6372, 223, 3737, 9800, 9019, 8067, 45692, 15400, 15698,
	9038, 37006, 2086, 1002, 9188, 8094, 8201, 8202, 30030, 2663, 9105, 10017, 4503, 1104, 8893,
	40001, 27779, 3010, 7083, 5010, 5501, 309, 1389, 10070, 10069, 10056, 3094, 10057, 10078, 10050,
	10060, 10098, 4180, 10777, 270, 6365, 9801, 1046, 7140, 1004, 9198, 8465, 8548, 108, 30015,
	8153, 1020, 50100, 8391, 34899, 7090, 6100, 8777, 8298, 8281, 7023, 3377, 9100,
}


================================================
FILE: app/type-csvwriter.go
================================================
package app

import (
	"encoding/csv"
	"sync"
)

type CSVWriter struct {
	f     *csv.Writer
	title []string
	mutex *sync.Mutex
}

func (cw *CSVWriter) inTitle(title string) bool {
	for _, value := range cw.title {
		if value == title {
			return true
		}
	}
	return false
}

func (cw *CSVWriter) Push(m map[string]string) {
	cw.mutex.Lock()
	defer cw.mutex.Unlock()
	var cells []string
	// clone map to avoid mutating caller's map
	mCopy := make(map[string]string, len(m))
	for k, v := range m {
		mCopy[k] = v
	}
	for _, key := range cw.title {
		if value, ok := mCopy[key]; ok {
			cells = append(cells, value)
			delete(mCopy, key)
		} else {
			cells = append(cells, "")
		}
	}
	for key, value := range mCopy {
		cells = append(cells, value)
		cw.title = append(cw.title, key)
	}
	cw.f.Write(cells)
	cw.f.Flush()
}


================================================
FILE: app/type-jsonwriter.go
================================================
package app

import (
	"Qscan/core/slog"
	"encoding/json"
	"os"
	"sync"
)

type JSONWriter struct {
	f     *os.File
	mutex *sync.Mutex
}

func (jw *JSONWriter) Push(m map[string]string) {
	jw.mutex.Lock()
	defer jw.mutex.Unlock()
	stat, err := jw.f.Stat()
	if err != nil {
		slog.Println(slog.ERROR, err)
		return
	}
	jsonBuf, err := json.MarshalIndent(m, "\t", "\t")
	if err != nil {
		slog.Println(slog.ERROR, err)
		return
	}
	jsonBuf = append(jsonBuf, []byte("\n]\n")...)
	if stat.Size() == 2 {
		if _, err := jw.f.Seek(stat.Size()-1, 0); err != nil {
			slog.Println(slog.ERROR, err)
			return
		}
		jsonBuf = append([]byte("\n\t"), jsonBuf...)
		if _, err := jw.f.Write(jsonBuf); err != nil {
			slog.Println(slog.ERROR, err)
		}
	} else {
		if _, err := jw.f.Seek(stat.Size()-4, 0); err != nil {
			slog.Println(slog.ERROR, err)
			return
		}
		jsonBuf = append([]byte("},\n\t"), jsonBuf...)
		if _, err := jw.f.Write(jsonBuf); err != nil {
			slog.Println(slog.ERROR, err)
		}
	}
}


================================================
FILE: core/appfinger/appfinger.go
================================================
package appfinger

import (
	"Qscan/core/appfinger/gorpc"
	"Qscan/core/appfinger/httpfinger"
	"errors"
	"net/http"
	"net/url"
	"regexp"
	"strings"
)

var supportProtocols = []string{
	"http",
	"https",
	"rpc",
}

var supportProtocolRegx = regexp.MustCompile("^" + strings.Join(supportProtocols, "|") + "$")

func Search(URL *url.URL, banner *Banner) *FingerPrint {
	var products, hostnames []string
	switch URL.Scheme {
	case "http":
		products = search(convHttpBanner(URL, banner))
		return &FingerPrint{products, "", "", ""}
	case "https":
		products := search(convHttpBanner(URL, banner))
		return &FingerPrint{products, "", "", ""}
	case "rpc":
		hostnames, _ = gorpc.GetHostname(URL.Hostname())
		return &FingerPrint{emptyProductName, strings.Join(hostnames, ";"), "", ""}
	}
	return nil
}

func SupportCheck(protocol string) bool {
	return supportProtocolRegx.MatchString(protocol)
}

func GetBannerWithResponse(URL *url.URL, response string, req *http.Request, cli *http.Client) (*Banner, error) {
	switch URL.Scheme {
	case "http":
		httpBanner, err := httpfinger.GetBannerWithResponse(URL, response, req, cli)
		return convBanner(httpBanner), err
	case "https":
		httpBanner, err := httpfinger.GetBannerWithResponse(URL, response, req, cli)
		return convBanner(httpBanner), err
	default:
		return convBannerWithRaw(response), nil
	}
}

func GetBannerWithURL(URL *url.URL, req *http.Request, cli *http.Client) (*Banner, error) {
	switch URL.Scheme {
	case "http":
		httpBanner, err := httpfinger.GetBannerWithURL(URL, req, cli)
		return convBanner(httpBanner), err
	case "https":
		httpBanner, err := httpfinger.GetBannerWithURL(URL, req, cli)
		return convBanner(httpBanner), err
	}
	return nil, errors.New("unsupported protocol")
}

func convHttpBanner(URL *url.URL, banner *Banner) *httpfinger.Banner {
	return &httpfinger.Banner{
		Protocol: URL.Scheme,
		Port:     URL.Port(),
		Header:   banner.Header,
		Body:     banner.Body,
		Response: banner.Response,
		Cert:     banner.Cert,
		Title:    banner.Title,
		Hash:     banner.Hash,
		Icon:     banner.Icon,
	}
}


================================================
FILE: core/appfinger/appfinger_test.go
================================================
package appfinger

import "testing"

func TestT(t *testing.T) {
	convBanner(struct {
		Host   string
		AAA    string
		Header string
	}{
		Host:   "asdfasdfasd",
		AAA:    "asdfasdfasd",
		Header: "11111",
	})
}


================================================
FILE: core/appfinger/database.go
================================================
package appfinger

import (
	"Qscan/core/appfinger/httpfinger"
	"errors"
	"fmt"
	"io"
	"os"
	"regexp"
	"strconv"
	"strings"
	"sync"
)

var database []*fingerPrint

var (
	regexpCache = make(map[string]*regexp.Regexp)
	regexpMu    sync.RWMutex
)

func getRegexp(pattern string) *regexp.Regexp {
	regexpMu.RLock()
	re, ok := regexpCache[pattern]
	regexpMu.RUnlock()
	if ok {
		return re
	}
	regexpMu.Lock()
	defer regexpMu.Unlock()
	re, ok = regexpCache[pattern]
	if ok {
		return re
	}
	re = regexp.MustCompile(pattern)
	regexpCache[pattern] = re
	return re
}

func add(productName string, expression string) error {
	httpFinger, err := parseFingerPrint(productName, expression)
	if err != nil {
		return err
	}
	database = append(database, httpFinger)
	return nil
}

func InitDatabase(path string) (n int, lastErr error) {
	fs, err := os.Open(path)
	if err != nil {
		return 0, err
	}
	return InitDatabaseFS(fs)
}

func InitDatabaseFS(fs io.Reader) (n int, lastErr error) {
	sourceBuf, err := io.ReadAll(fs)
	if err != nil {
		return 0, err
	}
	source := strings.Split(string(sourceBuf), "\n")
	for _, line := range source {
		line = strings.TrimSpace(line)
		r := strings.SplitAfterN(line, "\t", 2)
		if len(r) != 2 {
			lastErr = errors.New(line + "invalid")
			continue
		}
		err := add(r[0], r[1])
		if err != nil {
			lastErr = err
		}
	}
	return len(source), lastErr
}

func Clear() {
	database = []*fingerPrint{}
}

func search(banner *httpfinger.Banner) []string {
	var products []string
	for _, fingerPrint := range database {
		if productName := fingerPrint.Match(banner); productName != "" {
			products = append(products, productName)
		}
	}

	return removeDuplicate(products)
}

type Expression struct {
	//表达式数组
	paramSlice []*Param
	//表达式原文
	value string
	//表达式逻辑字符串
	//value = (body="test" || header="tt") && response="aaaa"
	//expr  = (${1} || ${2}) && ${3}
	expr string
}

func parseExpression(expr string) (*Expression, error) {
	e := &Expression{}
	e.value = expr
	//去除表达式尾部空格
	expr = strings.TrimSpace(expr)
	//修饰expr
	expr = strings.ReplaceAll(expr, `\"`, `[quota]`)
	//字符合法性校验
	if err := exprCharVerification(expr); err != nil {
		return nil, err
	}
	//提取param数组
	var paramSlice []*Param
	paramRawSlice := paramRegx.FindAllStringSubmatch(expr, -1)
	//对param进行解析
	for index, value := range paramRawSlice {
		expr = strings.Replace(expr, value[0], "${"+strconv.Itoa(index+1)+"}", 1)
		param, err := parseParam(value[0])
		if err != nil {
			return nil, err
		}
		paramSlice = append(paramSlice, param)
	}
	//语义合法性校验
	if err := exprSyntaxVerification(expr); err != nil {
		return nil, err
	}
	e.expr = expr
	e.paramSlice = paramSlice
	return e, nil
}

func (e *Expression) match(banner *httpfinger.Banner) bool {
	expr := e.makeBoolExpression(banner)
	b, _ := parseBoolFromString(expr)
	return b
}

func (e *Expression) makeBoolExpression(banner *httpfinger.Banner) string {
	var expr = e.expr
	for index, param := range e.paramSlice {
		b := param.match(banner)
		expr = strings.ReplaceAll(expr, "${"+strconv.Itoa(index+1)+"}", strconv.FormatBool(b))
	}
	return expr
}

func (e *Expression) Split() []string {
	r := recursiveSplitExpression(e.expr)
	for i, v := range r {
		r[i] = e.Reduction(v)
	}
	return r
}

func (e *Expression) Reduction(s string) string {
	for i, v := range e.paramSlice {
		param := fmt.Sprintf("${%d}", i+1)
		s = strings.ReplaceAll(s, param, v.String())
	}
	return s
}

func exprCharVerification(expr string) error {
	//把所有param替换为空
	str := paramRegx.ReplaceAllString(expr, "")
	//把所有逻辑字符替换为空
	str = regxCharVerification.ReplaceAllString(str, "")
	//检测是否存在其他字符
	if str != "" {
		str = strings.ReplaceAll(str, `[quota]`, `\"`)
		return errors.New(strconv.Quote(str) + " is unknown")
	}
	//检测语法合法性
	return nil
}

var regxSyntaxVerification = regexp.MustCompile(`\${\d+}`)
var regxCharVerification = regexp.MustCompile(`[&| ()]`)

func exprSyntaxVerification(expr string) error {
	expr = regxSyntaxVerification.ReplaceAllString(expr, "true")
	_, err := parseBoolFromString(expr)
	if err != nil {
		return errors.New(expr + ":" + err.Error())
	}
	return nil
}

type Param struct {
	keyword  string
	value    string
	operator Operator
}
type Operator string

const (
	unequal    Operator = "!=" // !=
	equal               = "="  // =
	regxEqual           = "~=" // ~=
	superEqual          = "==" // ==
)

var keywordSlice = []string{
	"Title",
	"Header",
	"Body",
	"Response",
	"Protocol",
	"Cert",
	"Port",
	"Hash",
	"Icon",
}

var paramRegx = regexp.MustCompile(`([a-zA-Z0-9]+) *(!=|=|~=|==) *"([^"\n]+)"`)
var keywordRegx = regexp.MustCompile("^" + strings.Join(keywordSlice, "|") + "$")

func parseParam(expr string) (*Param, error) {
	p := paramRegx.FindStringSubmatch(expr)
	if len(p) < 4 {
		return nil, errors.New("invalid param expression: " + expr)
	}

	keyword := p[1]
	valueRaw := p[3]

	keyword = strings.ToUpper(keyword[:1]) + keyword[1:]

	if keywordRegx.MatchString(keyword) == false {
		return nil, errors.New(keyword + " keyword is unknown")
	}

	operator := convOperator(p[2])

	valueRaw = strings.ReplaceAll(valueRaw, `[quota]`, `\"`)
	value, err := strconv.Unquote("\"" + valueRaw + "\"")
	if err != nil {
		return nil, err
	}
	if operator == regxEqual {
		_, err = regexp.Compile(value)
		if err != nil {
			return nil, err
		}
	}

	return &Param{
		keyword:  keyword,
		value:    value,
		operator: operator,
	}, nil
}

func (p *Param) match(banner *httpfinger.Banner) bool {
	subStr := p.value
	keyword := p.keyword

	var str string
	switch keyword {
	case "Protocol":
		str = banner.Protocol
	case "Port":
		str = banner.Port
	case "Header":
		str = banner.Header
	case "Body":
		str = banner.Body
	case "Response":
		str = banner.Response
	case "Cert":
		str = banner.Cert
	case "Title":
		str = banner.Title
	case "Hash":
		str = banner.Hash
	case "Icon":
		str = banner.Icon
	case "ICP":
		str = banner.ICP
	default:
		str = ""
	}

	switch p.operator {
	case unequal:
		return !strings.Contains(str, subStr)
	case equal:
		return strings.Contains(str, subStr)
	case regxEqual:
		return getRegexp(subStr).MatchString(str)
	case superEqual:
		return str == subStr
	default:
		return false
	}
}

func (p *Param) String() string {
	return fmt.Sprintf("%s%s%s", p.keyword, p.operator, strconv.Quote(p.value))
}

const (
	and = iota // &&
	or         // ||
)

func convOperator(expr string) Operator {
	switch expr {
	case "!=":
		return unequal
	case "=":
		return equal
	case "~=":
		return regxEqual
	case "==":
		return superEqual
	default:
		panic(expr)
	}
}

func parseBoolFromString(expr string) (bool, error) {
	//去除空格
	expr = strings.ReplaceAll(expr, " ", "")
	//如果存在其他异常字符,则报错
	s := regexp.MustCompile(`true|false|&|\||\(|\)`).ReplaceAllString(expr, "")
	if s != "" {
		return false, errors.New(s + "is known")
	}
	return stringParse(expr)
}

func stringParse(expr string) (bool, error) {
	first := true
	operator := and
	if expr == "true" {
		return true, nil
	}
	if expr == "false" {
		return false, nil
	}

	for i := 0; i < len(expr); i++ {
		char := expr[i : i+1]
		if char == "t" {
			first = parseCoupleBool(first, true, operator)
			i += 3
		}
		if char == "f" {
			first = parseCoupleBool(first, false, operator)
			i += 4
		}
		if char == "&" {
			operator = and
			i += 1

		}
		if char == "|" {
			operator = or
			i += 1
		}
		if char == "(" {
			length, err := findCoupleBracketIndex(expr[i:])
			if err != nil {
				return false, err
			}
			next, err := stringParse(expr[i+1 : i+length])
			if err != nil {
				return false, err
			}
			first = parseCoupleBool(first, next, operator)

			i += length
		}

	}
	return first, nil
}

func parseCoupleBool(first bool, next bool, operator int) bool {
	if operator == or {
		return first || next
	}
	if operator == and {
		return first && next
	}
	return false
}

func findCoupleBracketIndex(expr string) (int, error) {
	var leftIndex []int
	var rightIndex []int

	for index, value := range expr {
		if value == '(' {
			leftIndex = append(leftIndex, index)
		}
		if value == ')' {
			rightIndex = append(rightIndex, index)
		}
	}

	if len(leftIndex) != len(rightIndex) {
		return 0, errors.New("bracket is not couple")
	}
	for i, index := range rightIndex {
		countLeft := strings.Count(expr[:index], "(")
		if countLeft == i+1 {
			return index, nil
		}

	}
	return 0, errors.New("bracket is not couple")
}

func trimParentheses(s string) string {
	if len(s) == 0 {
		return s
	}
	if s[0:1] != "(" {
		return s
	}
	length := len(s)
	if s[length-1:length] != ")" {
		return s
	}
	index, err := findCoupleBracketIndex(s)
	if err != nil {
		return s
	}
	if index+1 == length {
		return s[1 : length-1]
	}
	return s
}

func splitExpression(s string) []string {
	var data []string
	for i := 0; i < len(s); i++ {
		char := s[i : i+1]
		if char == "(" {
			length, err := findCoupleBracketIndex(s[i:])
			if err != nil {
				panic(err)
			}
			data = append(data, s[i+1:i+length])
			i += length
		}
		if char == "&" {
			data = append(data, "&&")
			i += 1
		}
		if char == "|" {
			data = append(data, "||")
			i += 1
		}
		if char == "$" {
			var j = 0
			for j = 0; j < len(s)-i; j++ {
				index := i + j
				if s[index:index+1] == "}" {
					break
				}
			}
			data = append(data, s[i:i+j+1])
			i += j
		}
	}
	var r []string
	for i := 0; i < len(data); i++ {
		var s = data[i]
		if s == "||" {
			r = append(r, data[i+1])
			i += 1
			continue
		}
		if s == "&&" {
			if len(r) == 0 {
				panic("expression invalid")
			}
			for j := 1; j < len(r); j++ {
				r[0] = r[0] + " || " + r[j]
			}
			r[0] = r[0] + " && " + data[i+1]
			r = r[:1]
			i += 1
			continue
		}
		r = append(r, data[i])
	}
	return r
}

func recursiveSplitExpression(s string) []string {
	var result []string
	s = trimParentheses(s)
	for _, str := range splitExpression(s) {
		sr := splitExpression(str)
		if len(sr) == 1 {
			result = append(result, sr[0])
			continue
		}
		result = append(result, recursiveSplitExpression(str)...)
	}
	return result
}

type fingerPrint struct {
	//指纹适用范围
	//Protocol string
	//Path     string

	//指纹适配产品
	ProductName string

	//指纹识别规则
	Keyword *Expression
}

func parseFingerPrint(productName string, expressionString string) (*fingerPrint, error) {

	//校验合法,序列化表达式
	expression, err := parseExpression(expressionString)
	if err != nil {
		return nil, err
	}

	return &fingerPrint{
		//指纹适用范围
		//Protocol: "",
		//Path:     "",
		//指纹适配产品
		ProductName: productName,
		//指纹识别规则
		//Icon:    "",
		//Hash:    "",
		Keyword: expression,
	}, nil
}

func (f *fingerPrint) Match(banner *httpfinger.Banner) string {
	if f.Keyword != nil {
		if f.Keyword.match(banner) {
			return f.ProductName
		}
	}
	return ""
}


================================================
FILE: core/appfinger/gorpc/rpc.go
================================================
package gorpc

import (
	"bytes"
	"encoding/hex"
	"errors"
	"fmt"
	"net"
	"strings"
	"time"
)

var (
	bufferV1, _ = hex.DecodeString("05000b03100000004800000001000000b810b810000000000100000000000100c4fefc9960521b10bbcb00aa0021347a00000000045d888aeb1cc9119fe808002b10486002000000")
	bufferV2, _ = hex.DecodeString("050000031000000018000000010000000000000000000500")
	bufferV3, _ = hex.DecodeString("0900ffff0000")
)

func GetHostname(host string) ([]string, error) {
	netloc := fmt.Sprintf("%s:%v", host, 135)
	response, err := getResponse(netloc)
	if err != nil {
		return []string{}, err
	}
	hostname := resolvingResponse(response)
	if len(hostname) == 0 {
		return []string{}, errors.New("empty")
	}
	return hostname, nil
}

func getResponse(netloc string) ([]byte, error) {
	conn, err := net.DialTimeout("tcp", netloc, time.Duration(5)*time.Second)
	if err != nil {
		return nil, err
	}
	defer func() { _ = conn.Close() }()
	err = conn.SetDeadline(time.Now().Add(time.Duration(5) * time.Second))
	if err != nil {
		return nil, err
	}
	_, err = conn.Write(bufferV1)
	if err != nil {
		return nil, err
	}
	reply := make([]byte, 4096)
	_, err = conn.Read(reply)
	if err != nil {
		return nil, err
	}
	_, err = conn.Write(bufferV2)
	if err != nil {
		return nil, err
	}
	if n, err := conn.Read(reply); err != nil || n < 42 {
		return nil, err
	}
	text := reply[42:]
	flag := true
	for i := 0; i < len(text)-5; i++ {
		if bytes.Equal(text[i:i+6], bufferV3) {
			text = text[:i-4]
			flag = false
			break
		}
	}
	if flag {
		return nil, err
	}
	return text, nil
}

func resolvingResponse(text []byte) []string {
	encodedStr := hex.EncodeToString(text)
	express := strings.Replace(encodedStr, "0700", "", -1)
	var hostnames []string
	for _, value := range strings.Split(express, "000000") {
		value = strings.Replace(value, "00", "", -1)
		hostname, err := hex.DecodeString(value)
		if err != nil {
			continue
		}
		hostnames = append(hostnames, string(hostname))
	}
	return hostnames
}


================================================
FILE: core/appfinger/gorpc/rpc_test.go
================================================
package gorpc

import (
	"fmt"
	"testing"
)

func TestNetBIOS(t *testing.T) {
	s, err := GetHostname("51.79.17.189")
	if s == nil {
		fmt.Println(err)
	}
	fmt.Println(s)
	return
}


================================================
FILE: core/appfinger/httpfinger/http.go
================================================
package httpfinger

import (
	"Qscan/core/appfinger/iconhash"
	"Qscan/core/stdio/chinese"
	"Qscan/lib/simplehttp"
	"crypto/md5"
	"encoding/hex"
	"github.com/PuerkitoBio/goquery"
	"net/http"
	"net/url"
	"regexp"
	"strconv"
	"strings"
)

type Banner struct {
	Protocol string
	Port     string
	Header   string
	Body     string
	Response string
	Cert     string
	Title    string
	Hash     string
	Icon     string
	ICP      string
}

func GetBannerWithURL(URL *url.URL, req *http.Request, cli *http.Client) (*Banner, error) {
	var banner = &Banner{}
	if req == nil {
		req, _ = simplehttp.NewRequest(http.MethodGet, URL.String(), nil)
	}

	req.Header.Set("User-Agent", simplehttp.RandomUserAgent())

	if cli == nil {
		cli = simplehttp.NewClient()
	}

	resp, err := simplehttp.Do(cli, req)
	if err != nil {
		return nil, err
	}

	var body = chinese.ToUTF8(resp.Raw.Body)

	banner.Protocol = URL.Scheme
	banner.Port = GetURLPortString(URL)
	banner.Header = resp.Raw.Header
	banner.Body = body
	banner.Response = resp.Raw.String()
	banner.Cert = resp.Raw.Cert
	banner.Title = getTitle(body)
	banner.Hash = getHash(body)
	banner.Icon = getIcon(*URL, body)
	banner.ICP = getICP(body)

	return banner, err
}

func GetBannerWithResponse(URL *url.URL, response string, req *http.Request, cli *http.Client) (*Banner, error) {
	if URL.Scheme == "https" {
		return GetBannerWithURL(URL, req, cli)
	}
	if statusCode := getStatusCode(response); statusCode >= 300 && statusCode <= 400 {
		return GetBannerWithURL(URL, req, cli)
	}
	header, body := simplehttp.SplitHeaderAndBody(response)
	body = chinese.ToUTF8(body)

	var banner = &Banner{}
	banner.Protocol = URL.Scheme
	banner.Port = GetURLPortString(URL)
	banner.Header = header
	banner.Body = body
	banner.Response = response
	banner.Cert = ""
	banner.Title = getTitle(body)
	banner.Hash = getHash(body)
	banner.Icon = getIcon(*URL, body)
	banner.ICP = getICP(body)
	return banner, nil
}

var (
	regxIconPath           = regexp.MustCompile(`^/.*$`)
	regxIconURL            = regexp.MustCompile(`^(?:http|https)://.*$`)
	regxIconURLNotProtocol = regexp.MustCompile(`^://.*$`)
)

func getIcon(URL url.URL, body string) string {
	path := getIconPath(body)
	if regxIconPath.MatchString(path) == true {
		URL.Path = ""
		return getIconHash(URL.String() + path)
	}
	if regxIconURL.MatchString(path) == true {
		return getIconHash(path)
	}
	if regxIconURLNotProtocol.MatchString(path) == true {
		return getIconHash(URL.Scheme + path)
	}
	return ""
}

func getIconPath(body string) string {
	bodyReader := strings.NewReader(body)
	query, err := goquery.NewDocumentFromReader(bodyReader)
	if err != nil {
		return "/favicon.ico"
	}
	selector := query.Find("link[rel='shortcut icon']")
	if iconHref, ok := selector.Attr("href"); ok == true {
		return iconHref
	}
	return "/favicon.ico"
}

func getIconHash(URL string) string {
	resp, err := simplehttp.Get(URL)
	if err != nil {
		return ""
	}
	hash := iconhash.Encode([]byte(resp.Raw.Body))
	return hash
}

func getTitle(body string) string {
	bodyReader := strings.NewReader(body)
	query, err := goquery.NewDocumentFromReader(bodyReader)
	if err != nil {
		return ""
	}
	title := query.Find("title").Text()
	title = regexp.MustCompile(`\s|\n|\r`).ReplaceAllString(title, "")
	return title
}

func getHash(body string) string {
	hash := md5.New()
	hash.Write([]byte(body))
	return hex.EncodeToString(hash.Sum(nil))
}

var (
	provinces = []string{
		"京", "津", "冀", "晋", "蒙", "辽", "吉", "黑",
		"沪", "苏", "浙", "皖", "闽", "赣", "鲁", "豫",
		"湘", "粤", "桂", "琼", "川", "蜀", "贵", "黔",
		"云", "滇", "渝", "藏", "陕", "秦", "甘", "陇",
		"青", "宁", "新", "港", "澳", "台", "鄂",
	}
	provincesString = strings.Join(provinces, "|")
	icpRegx         = regexp.MustCompile(`(?:` + provincesString + `)ICP备\s*\d+号(?:-\d+)?`)
)

func getICP(body string) string {
	if icpRegx.MatchString(body) == true {
		return icpRegx.FindString(body)
	}
	return ""
}
func GetURLPortString(URL *url.URL) string {
	if URL.Port() != "" {
		port, _ := strconv.Atoi(URL.Port())
		return strconv.Itoa(port)
	}
	if URL.Scheme == "https" {
		return "443"
	}
	if URL.Scheme == "http" {
		return "80"
	}
	return ""
}

var statusCodeRegx = regexp.MustCompile(`^HTTP/\d\.\d (\d\d\d).*`)

func getStatusCode(responseRaw string) int {
	if statusCodeRegx.MatchString(responseRaw) == false {
		return 0
	}
	statusCodeString := statusCodeRegx.FindAllStringSubmatch(responseRaw, -1)[0][1]
	statusCode, _ := strconv.Atoi(statusCodeString)
	return statusCode
}


================================================
FILE: core/appfinger/iconhash/iconhash.go
================================================
package iconhash

import (
	"bytes"
	"encoding/base64"
	"fmt"
	"github.com/twmb/murmur3"
	"io"
)

var isUint32 bool

func standBase64(braw []byte) []byte {
	bckd := base64.StdEncoding.EncodeToString(braw)
	var buffer bytes.Buffer
	for i := 0; i < len(bckd); i++ {
		ch := bckd[i]
		buffer.WriteByte(ch)
		if (i+1)%76 == 0 {
			buffer.WriteByte('\n')
		}
	}
	buffer.WriteByte('\n')
	return buffer.Bytes()
}

func mmh3Hash32(raw []byte) string {
	var h32 = murmur3.New32()
	_, _ = h32.Write(raw)
	if isUint32 {
		return fmt.Sprintf("%d", h32.Sum32())
	}
	return fmt.Sprintf("%d", int32(h32.Sum32()))
}

func Encode(buf []byte) string {
	return mmh3Hash32(standBase64(buf))
}

func EncodeReader(r io.Reader) (string, error) {
	body, err := io.ReadAll(r)
	return mmh3Hash32(standBase64(body)), err
}


================================================
FILE: core/appfinger/type-banner.go
================================================
package appfinger

import (
	"crypto/md5"
	"encoding/hex"
	"net"
	"reflect"
	"regexp"
	"strings"
)

type Banner struct {
	Header   string
	Body     string
	Response string
	Cert     string
	Title    string
	Hash     string
	Icon     string
	ICP      string

	FoundDomain string
	FoundIP     string
}

func convBanner(other interface{}) *Banner {
	if reflect.ValueOf(other).IsNil() == true {
		return nil
	}

	var banner = &Banner{}
	bannerT := reflect.TypeOf(banner)
	bannerV := reflect.ValueOf(banner)

	t := reflect.TypeOf(other)
	v := reflect.ValueOf(other)

	if t.Kind() == reflect.Ptr {
		t = t.Elem()
		v = v.Elem()
	}

	for i := 0; i < bannerT.Elem().NumField(); i++ {
		var key = bannerT.Elem().Field(i).Name
		if t, ok := t.FieldByName(key); ok == false || t.Type.Kind() != reflect.String {
			continue
		}
		value := v.FieldByName(key).String()
		bannerValue := bannerV.Elem().FieldByName(key)
		bannerValue.SetString(value)
	}

	banner.FoundIP = findIP(banner.Body, banner.Cert)
	banner.FoundDomain = findDomain(banner.Body, banner.Cert)
	return banner
}

func convBannerWithRaw(response string) *Banner {
	return &Banner{
		Header:   "",
		Body:     "",
		Response: response,
		Cert:     "",
		Title:    "",
		Hash:     getHash(response),
		Icon:     "",
	}
}

func getHash(body string) string {
	hash := md5.New()
	hash.Write([]byte(body))
	return hex.EncodeToString(hash.Sum(nil))
}

var (
	domainRoot = []string{
		"com", "net", "org", "aero", "biz", "coop", "info", "museum", "name", "pro", "top", "xyz",
		"loan", "wang", "ad", "ae", "af", "ag", "ai", "al", "am", "an", "ao", "aq", "ar", "as", "at",
		"au", "aw", "az", "ba", "bb", "bd", "be", "bf", "bg", "bh", "bi", "bj", "bm", "bn", "bo", "br",
		"bs", "bt", "bv", "bw", "by", "bz", "ca", "cc", "cf", "cg", "ch", "ci", "ck", "cl", "cm", "cn",
		"co", "cq", "cr", "cu", "cv", "cx", "cy", "cz", "de", "dj", "dk", "dm", "do", "dz", "ec", "ee",
		"eg", "eh", "es", "et", "ev", "fi", "fj", "fk", "fm", "fo", "fr", "ga", "gb", "gd", "ge", "gf",
		"gh", "gi", "gl", "gm", "gn", "gp", "gr", "gt", "gu", "gw", "gy", "hk", "hm", "hn", "hr", "ht",
		"hu", "id", "ie", "il", "in", "io", "iq", "ir", "is", "it", "jm", "jo", "jp", "ke", "kg", "kh",
		"ki", "km", "kn", "kp", "kr", "kw", "ky", "kz", "la", "lb", "lc", "li", "lk", "lr", "ls", "lt",
		"lu", "lv", "ly", "ma", "mc", "me", "md", "mg", "mh", "ml", "mm", "mn", "mo", "mp", "mq", "mr",
		"ms", "mt", "mv", "mw", "mx", "my", "mz", "na", "nc", "ne", "nf", "ng", "ni", "nl", "no", "np",
		"nr", "nt", "nu", "nz", "om", "pa", "pe", "pf", "pg", "ph", "pk", "pl", "pm", "pn", "pr", "pt",
		"pw", "py", "qa", "re", "ro", "ru", "rw", "sa", "sb", "sc", "sd", "se", "sg", "sh", "si", "sj",
		"sk", "sl", "sm", "sn", "so", "sr", "st", "su", "sy", "sz", "tc", "td", "tf", "tg", "th", "tj",
		"tk", "tl", "tm", "tn", "to", "tp", "tr", "tt", "tv", "tw", "tz", "ua", "ug", "uk", "us", "uy",
		"uz", "va", "vc", "ve", "vg", "vn", "vu", "wf", "ws", "ye", "yu", "za", "zm", "zr", "zw"}
	domainRootString = strings.Join(domainRoot, "|")
	domainRegx       = regexp.MustCompile(`([a-zA-Z0-9][-a-zA-Z0-9]{0,62}(?:\.[a-zA-Z0-9][-a-zA-Z0-9]{1,62})*\.(?:` + domainRootString + `))[^a-zA-Z0-9-]`)
)

func findDomain(strArr ...string) string {
	var domains []string
	for _, str := range strArr {
		if domainRegx.MatchString(str) == true {
			for _, value := range domainRegx.FindAllString(str, -1) {
				length := len(value)
				if length > 253 {
					continue
				}
				domains = append(domains, value[:length-1])
			}
		}
	}
	domains = removeDuplicate(domains)
	return strings.Join(domains, "、")
}

var (
	ipRegx = regexp.MustCompile(`(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})`)
)

func findIP(strArr ...string) string {
	var IPs []string
	for _, str := range strArr {
		if ipRegx.MatchString(str) == true {
			for _, value := range ipRegx.FindAllString(str, -1) {
				if net.ParseIP(value) != nil {
					continue
				}
				IPs = append(IPs, value)
			}
		}
	}
	IPs = removeDuplicate(IPs)
	return strings.Join(IPs, ",")
}

func removeDuplicate(p []string) []string {
	result := make([]string, 0, len(p))
	temp := map[string]struct{}{}
	for _, item := range p {
		if _, ok := temp[item]; !ok { //如果字典中找不到元素,ok=false,!ok为true,就往切片中append元素。
			temp[item] = struct{}{}
			result = append(result, item)
		}
	}
	return result
}


================================================
FILE: core/appfinger/type-fingerprint.go
================================================
package appfinger

type FingerPrint struct {
	ProductName []string
	Hostname    string
	Domain      string
	MACAddr     string
}

var emptyProductName []string

func New() *FingerPrint {
	return &FingerPrint{emptyProductName, "", "", ""}
}

func (f *FingerPrint) AddProduct(productName string) {
	f.ProductName = append(f.ProductName, productName)
}


================================================
FILE: core/gonmap/gonmap.go
================================================
package gonmap

import (
	"log"
	"os"
	"regexp"
	"strings"
	"time"
)

var nmap *Nmap

var ProbesCount = 0     //探针数
var MatchCount = 0      //指纹数
var UsedProbesCount = 0 //已使用探针数
var UsedMatchCount = 0  //已使用指纹数

var logger = Logger(log.New(os.Stderr, "[gonmap] ", log.Ldate|log.Ltime|log.Lshortfile))

type Logger interface {
	Printf(format string, v ...interface{})
	Println(v ...interface{})
}

//r["PROBE"] 总探针数、r["MATCH"] 总指纹数 、r["USED_PROBE"] 已使用探针数、r["USED_MATCH"] 已使用指纹数
func init() {
	initWithFilter(9)
}

func initWithFilter(filter int) {
	//初始化NMAP探针库
	repairNMAPString()
	nmap = &Nmap{
		exclude:      emptyPortList,
		probeNameMap: make(map[string]*probe),
		probeSort:    []string{},
		portProbeMap: make(map[int]ProbeList),

		filter:  filter,
		timeout: time.Second,

		probeUsed:          emptyProbeList,
		bypassAllProbePort: []int{161, 137, 139, 135, 389, 443, 548, 1433, 6379, 1883, 5432, 1521, 3389, 3388, 3389, 33890, 33900},
		sslSecondProbeMap:  []string{"TCP_TerminalServerCookie", "TCP_TerminalServer"},
		allProbeMap:        []string{"TCP_GetRequest", "TCP_NULL"},
		sslProbeMap:        []string{"TCP_TLSSessionReq", "TCP_SSLSessionReq", "TCP_SSLv23SessionReq"},
	}
	for i := 0; i <= 65535; i++ {
		nmap.portProbeMap[i] = []string{}
	}
	nmap.loads(nmapServiceProbes + nmapCustomizeProbes)
	//修复fallback
	nmap.fixFallback()
	//新增自定义指纹信息
	customNMAPMatch()
	//优化检测逻辑,及端口对应的默认探针
	optimizeNMAPProbes()
	//排序
	nmap.sslSecondProbeMap = nmap.sortOfRarity(nmap.sslSecondProbeMap)
	nmap.allProbeMap = nmap.sortOfRarity(nmap.allProbeMap)
	nmap.sslProbeMap = nmap.sortOfRarity(nmap.sslProbeMap)
	for index, value := range nmap.portProbeMap {
		nmap.portProbeMap[index] = nmap.sortOfRarity(value)
	}
	//输出统计数据状态
	statistical()
}

func statistical() {
	ProbesCount = len(nmap.probeSort)
	for _, p := range nmap.probeNameMap {
		MatchCount += len(p.matchGroup)
	}
	UsedProbesCount = len(nmap.portProbeMap[0])
	for _, p := range nmap.portProbeMap[0] {
		UsedMatchCount += len(nmap.probeNameMap[p].matchGroup)
	}
}

func repairNMAPString() {
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, "${backquote}", "`")
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `q|GET / HTTP/1.0\r\n\r\n|`,
		`q|GET / HTTP/1.0\r\nHost: {Host}\r\nUser-Agent: Mozilla/5.0 (Windows; U; MSIE 9.0; Windows NT 9.0; en-US)\r\nAccept-Language: zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2\r\nAccept: */*\r\n\r\n|`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `\1`, `$1`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?=\\)`, `(?:\\)`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?=[\w._-]{5,15}\r?\n$)`, `(?:[\w._-]{5,15}\r?\n$)`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?:[^\r\n]*r\n(?!\r\n))*?`, `(?:[^\r\n]+\r\n)*?`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?:[^\r\n]*\r\n(?!\r\n))*?`, `(?:[^\r\n]+\r\n)*?`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?:[^\r\n]+\r\n(?!\r\n))*?`, `(?:[^\r\n]+\r\n)*?`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!2526)`, ``)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!400)`, ``)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!\0\0)`, ``)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!/head>)`, ``)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!HTTP|RTSP|SIP)`, ``)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!.*[sS][sS][hH]).*`, `.*`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!\xff)`, `.`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?!x)`, `[^x]`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?<=.)`, `(?:.)`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `(?<=\?)`, `(?:\?)`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `\x20\x02\x00.`, `\x20\x02..`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `match rtmp`, `# match rtmp`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `nmap`, `pamn`)
	nmapServiceProbes = strings.ReplaceAll(nmapServiceProbes, `Nmap`, `pamn`)
}

func customNMAPMatch() {
	//新增自定义指纹信息
	nmap.AddMatch("TCP_GetRequest", `echo m|^GET / HTTP/1.0\r\n\r\n$|s`)
	nmap.AddMatch("TCP_GetRequest", `mongodb m|.*It looks like you are trying to access MongoDB.*|s p/MongoDB/`)
	nmap.AddMatch("TCP_GetRequest", `http m|^HTTP/1\.[01] \d\d\d (?:[^\r\n]+\r\n)*?Server: ([^\r\n]+)| p/$1/`)
	nmap.AddMatch("TCP_GetRequest", `http m|^HTTP/1\.[01] \d\d\d|`)
	nmap.AddMatch("TCP_NULL", `mysql m|.\x00\x00..j\x04Host '.*' is not allowed to connect to this MariaDB server| p/MariaDB/`)
	nmap.AddMatch("TCP_NULL", `mysql m|.\x00\x00..j\x04Host '.*' is not allowed to connect to this MySQL server| p/MySQL/`)
	nmap.AddMatch("TCP_NULL", `mysql m|.\x00\x00\x00\x0a(\d+\.\d+\.\d+)\x00.*caching_sha2_password\x00| p/MariaDB/ v/$1/`)
	nmap.AddMatch("TCP_NULL", `mysql m|.\x00\x00\x00\x0a(\d+\.\d+\.\d+)\x00.*caching_sha2_password\x00| p/MariaDB/ v/$1/`)
	nmap.AddMatch("TCP_NULL", `mysql m|.\x00\x00\x00\x0a([\d.-]+)-MariaDB\x00.*mysql_native_password\x00| p/MariaDB/ v/$1/`)
	nmap.AddMatch("TCP_NULL", `redis m|-DENIED Redis is running in.*| p/Redis/ i/Protected mode/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Welcome to visit (.*) series router!.*|s p/$1 Router/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^Username: ??|`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Telnet service is disabled or Your telnet session has expired due to inactivity.*|s i/Disabled/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Telnet connection from (.*) refused.*|s i/Refused/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Command line is locked now, please retry later.*\x0d\x0a\x0d\x0a|s i/Locked/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Warning: Telnet is not a secure protocol, and it is recommended to use Stelnet.*|s`)
	nmap.AddMatch("TCP_NULL", `telnet m|^telnetd:|s`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Quopin CLI for (.*)\x0d\x0a\x0d\x0a|s p/$1/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^\x0d\x0aHello, this is FRRouting \(version ([\d.]+)\).*|s p/FRRouting/ v/$1/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*User Access Verification.*Username:|s`)
	nmap.AddMatch("TCP_NULL", `telnet m|^Connection failed.  Windows CE Telnet Service cannot accept anymore concurrent users.|s o/Windows/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^\x0d\x0a\x0d\x0aWelcome to the host.\x0d\x0a.*|s o/Windows/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^.*Welcome Visiting Huawei Home Gateway\x0d\x0aCopyright by Huawei Technologies Co., Ltd.*Login:|s p/Huawei/`)
	nmap.AddMatch("TCP_NULL", `telnet m|^..\x01..\x03..\x18..\x1f|s p/Huawei/`)
	nmap.AddMatch("TCP_NULL", `smtp m|^220 ([a-z0-1.-]+).*| h/$1/`)
	nmap.AddMatch("TCP_NULL", `ftp m|^220 H3C Small-FTP Server Version ([\d.]+).* | p/H3C Small-FTP/ v/$1/`)
	nmap.AddMatch("TCP_NULL", `ftp m|^421[- ]Service not available..*|`)
	nmap.AddMatch("TCP_NULL", `ftp m|^220[- ].*filezilla.*|i p/FileZilla/`)
	nmap.AddMatch("TCP_TerminalServerCookie", `ms-wbt-server m|^\x03\0\0\x13\x0e\xd0\0\0\x124\0\x02.*\0\x02\0\0\0| p/Microsoft Terminal Services/ o/Windows/ cpe:/o:microsoft:windows/a`)
	nmap.AddMatch("TCP_redis-server", `redis m|^.*redis_version:([.\d]+)\n|s p/Redis key-value store/ v/$1/ cpe:/a:redislabs:redis:$1/`)
	nmap.AddMatch("TCP_redis-server", `redis m|^-NOAUTH Authentication required.|s p/Redis key-value store/`)
}

func optimizeNMAPProbes() {
	nmap.probeNameMap["TCP_GenericLines"].sslports = nmap.probeNameMap["TCP_GenericLines"].sslports.append(993, 994, 456, 995)
	//优化检测逻辑,及端口对应的默认探针
	nmap.portProbeMap[993] = append([]string{"TCP_GenericLines"}, nmap.portProbeMap[993]...)
	nmap.portProbeMap[994] = append([]string{"TCP_GenericLines"}, nmap.portProbeMap[994]...)
	nmap.portProbeMap[995] = append([]string{"TCP_GenericLines"}, nmap.portProbeMap[995]...)
	nmap.portProbeMap[465] = append([]string{"TCP_GenericLines"}, nmap.portProbeMap[465]...)
	nmap.portProbeMap[3390] = append(nmap.portProbeMap[3390], "TCP_TerminalServer")
	nmap.portProbeMap[3390] = append(nmap.portProbeMap[3390], "TCP_TerminalServerCookie")
	nmap.portProbeMap[33890] = append(nmap.portProbeMap[33890], "TCP_TerminalServer")
	nmap.portProbeMap[33890] = append(nmap.portProbeMap[33890], "TCP_TerminalServerCookie")
	nmap.portProbeMap[33900] = append(nmap.portProbeMap[33900], "TCP_TerminalServer")
	nmap.portProbeMap[33900] = append(nmap.portProbeMap[33900], "TCP_TerminalServerCookie")
	nmap.portProbeMap[7890] = append(nmap.portProbeMap[7890], "TCP_Socks5")
	nmap.portProbeMap[7891] = append(nmap.portProbeMap[7891], "TCP_Socks5")
	nmap.portProbeMap[4000] = append(nmap.portProbeMap[4000], "TCP_Socks5")
	nmap.portProbeMap[2022] = append(nmap.portProbeMap[2022], "TCP_Socks5")
	nmap.portProbeMap[6000] = append(nmap.portProbeMap[6000], "TCP_Socks5")
	nmap.portProbeMap[7000] = append(nmap.portProbeMap[7000], "TCP_Socks5")
	//将TCP_GetRequest的fallback参数设置为NULL探针,避免漏资产
	nmap.probeNameMap["TCP_GenericLines"].fallback = "TCP_NULL"
	nmap.probeNameMap["TCP_GetRequest"].fallback = "TCP_NULL"
	nmap.probeNameMap["TCP_TerminalServerCookie"].fallback = "TCP_GetRequest"
	nmap.probeNameMap["TCP_TerminalServer"].fallback = "TCP_GetRequest"
}

//配置类
func SetFilter(filter int) {
	initWithFilter(filter)
}

func SetLogger(v Logger) {
	logger = v
}

//功能类
func New() *Nmap {
	n := *nmap
	return &n
}

func GuessProtocol(port int) string {
	protocol := nmapServices[port]
	if protocol == "unknown" {
		protocol = "http"
	}
	return protocol
}

var regexpFirstNum = regexp.MustCompile(`^\d`)

func FixProtocol(oldProtocol string) string {
	//进行最后输出修饰
	if oldProtocol == "ssl/http" {
		return "https"
	}
	if oldProtocol == "http-proxy" {
		return "http"
	}
	if oldProtocol == "ms-wbt-server" {
		return "rdp"
	}
	if oldProtocol == "microsoft-ds" {
		return "smb"
	}
	if oldProtocol == "netbios-ssn" {
		return "netbios"
	}
	if oldProtocol == "oracle-tns" {
		return "oracle"
	}
	if oldProtocol == "msrpc" {
		return "rpc"
	}
	if oldProtocol == "ms-sql-s" {
		return "mssql"
	}
	if oldProtocol == "domain" {
		return "dns"
	}
	if oldProtocol == "svnserve" {
		return "svn"
	}
	if oldProtocol == "ibm-db2" {
		return "db2"
	}
	if oldProtocol == "socks-proxy" {
		return "socks5"
	}
	if len(oldProtocol) > 4 {
		if oldProtocol[:4] == "ssl/" {
			return oldProtocol[4:] + "-ssl"
		}
	}
	if regexpFirstNum.MatchString(oldProtocol) {
		oldProtocol = "S" + oldProtocol
	}
	oldProtocol = strings.ReplaceAll(oldProtocol, "_", "-")
	return oldProtocol
}


================================================
FILE: core/gonmap/gonmap_test.go
================================================
package gonmap

import (
	"fmt"
	"testing"
	"time"
)

func TestScan(t *testing.T) {
	var scanner = New()
	host := "192.168.100.144"
	port := 5001
	status, response := scanner.ScanTimeout(host, port, time.Second*30)
	fmt.Println(status, response.FingerPrint.Service, host, ":", port)
	port = 22
	status, response = scanner.ScanTimeout(host, port, time.Second*30)

	fmt.Println(status, response.FingerPrint.Service, host, ":", port)
	port = 5000
	status, response = scanner.ScanTimeout(host, port, time.Second*30)
	fmt.Println(status, response.FingerPrint.Service, host, ":", port)
	port = 445
	status, response = scanner.ScanTimeout(host, port, time.Second*30)
	fmt.Println(status, response.FingerPrint.Service, host, ":", port)
}


================================================
FILE: core/gonmap/nmap-customize-probes.go
================================================
package gonmap

var nmapCustomizeProbes = `
Probe TCP SMB_NEGOTIATE q|\x00\x00\x00\xc0\xfeSMB@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00$\x00\b\x00\x01\x00\x00\x00\u007f\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00x\x00\x00\x00\x02\x00\x00\x00\x02\x02\x10\x02"\x02$\x02\x00\x03\x02\x03\x10\x03\x11\x03\x00\x00\x00\x00\x01\x00&\x00\x00\x00\x00\x00\x01\x00 \x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x0e\x00\x00\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00|
rarity 1
ports 445

match microsoft-ds m|^\0\0...SMB.*|s

Probe TCP JSON_RPC q|{"id":1,"jsonrpc":"2.0","method":"login","params":{}}\r\n|
rarity 4
ports 443,80,8443,8080

match jsonrpc m|^{"jsonrpc":"([\d.]+)".*"height":(\d+),"seed_hash".*|s v/$1/ p/ETH/ i/height:$2/
match jsonrpc m|^{"jsonrpc":"([\d.]+)".*|s v/$1/

`


================================================
FILE: core/gonmap/nmap-service-probes.go
================================================
package gonmap

var nmapServiceProbes = `
# Nmap service detection probe list -*- mode: fundamental; -*-
# $Id$
#
# This is a database of custom probes and expected responses that the
# Nmap Security Scanner ( https://nmap.org ) uses to
# identify what services (eg http, smtp, dns, etc.) are listening on
# open ports.  Contributions to this database are welcome.
# Instructions for obtaining and submitting service detection fingerprints can
# be found in the Nmap Network Scanning book and online at
# https://nmap.org/book/vscan-community.html
#
# This collection of probe data is (C) 1998-2020 by Insecure.Com
# LLC.  It is distributed under the Nmap Public Source license as
# provided in the LICENSE file of the source distribution or at
# https://nmap.org/data/LICENSE .  Note that this license
# requires you to license your own work under a compatible open source
# license.  If you wish to embed Nmap technology into proprietary
# software, we sell alternative licenses (contact sales@insecure.com).
# Dozens of software vendors already license Nmap technology such as
# host discovery, port scanning, OS detection, and version detection.
# For more details, see https://nmap.org/book/man-legal.html
#
# For details on how Nmap version detection works, why it was added,
# the grammar of this file, and how to detect and contribute new
# services, see https://nmap.org/book/vscan.html.

# The Exclude directive takes a comma separated list of ports.
# The format is exactly the same as the -p switch.
# Exclude T:9100-9107

# This is the NULL probe that just compares any banners given to us
##############################NEXT PROBE##############################
Probe TCP NULL q||
# Wait for at least 6 seconds for data.  It used to be 5, but some
# smtp services have lately been instituting an artificial pause (see
# FEATURE('greet_pause') in Sendmail, for example)
totalwaitms 6000
# If the service closes the connection before 3 seconds, it's probably
# tcpwrapped. Adjust up or down depending on your false-positive rate.
tcpwrappedms 3000

match 1c-server m|^S\xf5\xc6\x1a{| p/1C:Enterprise business management server/

match 3cx-tunnel m|^\x04\0\xfb\xffLAPK| p/3CX Tunnel Protocol/

match 4d-server m|^\0\0\0H\0\0\0\x02.[^\0]*\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0$|s p/4th Dimension database server/ cpe:/a:4d_sas:4d/

match aastra-pbx m|^BUSY$| p|Aastra/Mitel 400-series PBX service port|
match acap m|^\* ACAP \(IMPLEMENTATION \"CommuniGate Pro ACAP (\d[-.\w]+)\"\) | p/CommuniGate Pro ACAP server/ v/$1/ i/for mail client preference sharing/ cpe:/a:stalker:communigate_pro:$1/
match acarsd m|^g\0\0\0\x1b\0\0\0\0\0\0\0acarsd\t([\w._-]+)\tAPI-([\w._-]+)\)\0\0\0\x06\x05\0\0\0\0\0\0<\?xml | p/acarsd/ v/$1/ i/API $2/ cpe:/a:acarsd:acarsd:$1/
match acmp m|^ACMP Server Version ([\w._-]+)\r\n| p/Aagon ACMP Inventory/ v/$1/

match apachemq m|^\0\0..\x01ActiveMQ\0\0\0.\x01\0\0.*\x0cProviderName\t\0\x08ActiveMQ.*\x0fPlatformDetails\t..JVM: (\d[^,]*), [^,]*, Oracle Corporation, OS: Linux, (\d\.[\d.]+)[^,]*, ([\w_-]+).*\x0fProviderVersion\t..(\d[\w._-]*)|s p/ActiveMQ OpenWire transport/ v/$4/ i/Java $1; arch: $3/ o/Linux $2/ cpe:/a:apache:activemq:$4/ cpe:/o:linux:linux_kernel:$2/a
softmatch apachemq m|^\0\0..\x01ActiveMQ\0| p/ActiveMQ OpenWire transport/


# Microsoft ActiveSync Version 3.7 Build 3083 (It's used for syncing
# my ipaq it disappears when you remove the ipaq.)
match activesync m|^.\0\x01\0[^\0]\0[^\0]\0[^\0]\0[^\0]\0[^\0]\0.*\0\0\0$|s p/Microsoft ActiveSync/ o/Windows/ cpe:/a:microsoft:activesync/ cpe:/o:microsoft:windows/a
match activesync m|^\(\0\0\0\x02\0\0\0\x03\0\0\0\+\0\0\x003\0\0\0\0\0\0\0\x04\0\0${backquote}\x01\0\0\xff\0\0\0\0\0\0\0\0\0\0\0$|s p/Citrix ActiveSync/ o/Windows/ cpe:/o:microsoft:windows/a

match adabas-d m|^Adabas D Remote Control Server Version ([\d.]+) Date [\d-]+ \(key is [0-9a-f]+\)\r\nOK> | p/Adabas D database remote control/ v/$1/

match adobe-crossdomain m|^<cross-domain-policy><allow-access-from domain='([^']*)' to-ports='([^']*)' /></cross-domain-policy>\0$| p/Adobe cross-domain policy/ i/domain: $1; ports: $2/
# Missing trailing \0? Was like that in the submission.
match adobe-crossdomain m|^<cross-domain-policy>[ \n]*<allow-access-from domain=\"([^\"]*)\" to-ports=\"([^\"]*)\" */>[ \n]*</cross-domain-policy>$|s p/Adobe cross-domain policy/ i/domain: $1; ports: $2/
match adobe-crossdomain m|^<\?xml version=\"1\.0\"\?>\r\n<cross-domain-policy>\r\n    <site-control permitted-cross-domain-policies=\"master-only\"/>\r\n    <allow-access-from domain=\"\*\" to-ports=\"59160\"/>\r\n</cross-domain-policy>\0| p/Konica Minolta printer cross-domain-policy/
# playbrassmonkey.com
match adobe-crossdomain m|^<\?xml version=\"1\.0\"\?><cross-domain-policy><allow-access-from domain=\"\*\" to-ports=\"1008-49151\" /></cross-domain-policy>\0$| p/Brass Monkey cross-domain-policy/
match adobe-crossdomain m|^<\?xml version="1\.0"\?>\r\n<!DOCTYPE cross-domain-policy SYSTEM "http://www\.adobe\.com/xml/dtds/cross-domain-policy\.dtd">\r\n<cross-domain-policy>\r\n <site-control permitted-cross-domain-policies="master-only"/>\r\n <allow-access-from domain="www\.facebook\.com" to-ports="443" />\r\n</cross-domain-policy>\r\n| p/Facebook cross-domain policy/
softmatch adobe-crossdomain m|^<\?xml version=\"1\.0\"\?>.*<cross-domain-policy>|s

match afsmain m|^\+Welcome to Ability FTP Server \(Admin\)\. \[20500\]\r\n| p/Code-Crafters Ability FTP Server afsmain admin/ o/Windows/ cpe:/a:code-crafters:ability_ftp_server/ cpe:/o:microsoft:windows/a

match airserv-ng m|^\x05\0\0\x01.\0\0\0\0....\xff\xff\xff.\0\0\0\0\0\0\0.\0\0\0\0\0\x0fB@\0\0\0.\x80\0\0\0\xff\xff\xff\xff\xff\xff|s p/airserv-ng/ cpe:/a:aircrack-ng:airserv-ng/

match altiris-agent m|^<\0r\0e\0s\0p\0o\0n\0s\0e\0>\0C\0o\0n\0n\0e\0c\0t\0e\0d\0 \0t\0o\0 [\0\d.]*<\0/\0r\0e\0s\0p\0o\0n\0s\0e\0>\0$| p/Altiris remote monitoring agent/

# AMANDA index server 2.4.2p2 on Linux 2.4
match amanda m|^220 ([-.\w]+) AMANDA index server \((\d[-.\w ]+)\) ready\.\r\n| p/Amanda backup system index server/ v/$2/ o/Unix/ h/$1/ cpe:/a:amanda:amanda:$2/
match amanda m|^501 Could not read config file [^!\r\n]+!\r\n220 ([-.\w]+) AMANDA index server \(([-\w_.]+)\) ready\.\r\n| p/Amanda backup system index server/ v/$2/ i/broken: config file not found/ h/$1/ cpe:/a:amanda:amanda:$2/
match amanda m|^ld\.so\.1: amandad: fatal: (libsunmath\.so\.1): open failed: No such file or directory\n$| p/Amanda backup system index server/ i/broken: $1 not found/ cpe:/a:amanda:amanda/
match amanda m|^\n\*\* \(process:\d+\): CRITICAL \*\*: GLib version too old \(micro mismatch\): Amanda was compiled with glib-[\d.]+, but linking with ([\d.]+)\n| p/Amanda backup system index server/ i/broken: GLib $1 too old/ cpe:/a:amanda:amanda/

match AndroMouse m|^AMServer$|s p/AndroMouse Android remote mouse server/

match antivir m|^220 Symantec AntiVirus Scan Engine ready\.\r\n| p/Symantec AntiVirus Scan Engine/ cpe:/a:symantec:antivirus/ cpe:/a:symantec:antivirus_scan_engine/
match antivir m|^200 NOD32SS ([\d.]+) \((\d+)\)\r\n| p/NOD32 AntiVirus/ v/$1 ($2)/ cpe:/a:eset:nod32_antivirus:$1/

match anyremote m|^Set\(icons,M,6,forward,7,prev,8,stop,9,next,\*,question,0,pause,#,no\);Set\(font,small\);Set\(menu,replace,Playlist,Toggle Shuffle,Toggle Repeat\);Set\(icons,MPD,1,vol_down,2,mute,3,vol_up,4,rewind,5,play,6,forward,7,prev,8,stop,9,next,\*,question,0,pause,#,no\);Set\(font,small\);Set\(menu,replace,Playlist,Toggle Shuffle,Toggle Repeat\);$| p/anyRemote remote control daemon/

match aperio-aaf m|^<aafMessage><aafInitRequest></aafInitRequest></aafMessage>| p/Aperio Algorithm Framework/

match aplus m|^\x01\xff\0\xff\x01\x1d\0\xfd\0\n\x03\x05A\+ API \(([\d.]+)\) - CCS \(([\d.]+)\)\0| p/Cleo A+/ i/API $1; CSS $2/
match app m|^\0\x01\0\x08\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\x01\0\0\0\x02$| p/Cisco Application Peering Protocol/ d/load balancer/
match appguard-db m|^200 Welkom bij de Appguard UserDatabase Server v([\d.]+)\r\nWhatsUP\? .{10}\r\n| p/App Appguard UserDatabase/ v/$1/ cpe:/a:app_bv:appguard_userdatabase:$1/

# http://www.qosient.com/argus/
match argus m|^\x80\x01\0\x80\0\x80\0\0\xe5az\xcb\0\0\0\0J...............\x02\0\x01\0\0<\x01,.......\0...\0\0\0\0\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff\xff\xff\x01\x04\0.\0\x80\x08|s p/Argus network analyzer/ v/3.0/

match arkeia m|^\0${backquote}\0\x04\0\0\0\x1810\x000\x000\x00852224\0\0\0\0\0\0\0\0\0\0\0$| p/Arkeia Network Backup/
# arkstats (part of arkeia-light 5.1.12 Backup server) on Linux 2.4.20
match arkstats m|^\0${backquote}\0\x03\0\0\0\x1810\x000\x000\x00852224\0\0\0\0\0\0\0\0\0\0\0| p/Arkeia arkstats/
match articy-server m|^# ACL Comm Layer V1\.0\r\nSalt: \S+@([\w.-]+)\r\nProcessors: \(ArticyWorkflowServer\)\r\nAuthenticators:| p/articy:draft server/ h/$1/ cpe:/a:nevigo:articy%3adraft/
match artsd m|^MCOP\0\0\0.\0\0\0\x01\0\0\0\x10aRts/MCOP-([\d.]+)\0\0\0\0|s p/artsd/ i/MCOP $1/

# Asterisk call manager - port 5038
match asterisk m|^Asterisk Call Manager/([\d.]+)\r\n| p/Asterisk Call Manager/ v/$1/ cpe:/a:digium:asterisk:$1/
match asterisk-proxy m|^Response: Follows\r\nPrivilege: Command\r\n--END COMMAND--\r\n| p/Asterisk Call Manager Proxy/ cpe:/a:digium:asterisk/

match asus-nfc m|^\0\0\0\0\0\0\0\0\x01\0\0\0\0\0\0\0\0$| p/ASUS DTNFCServer/
match asus-transfer m|^\0\0\0\0\0\0\0\0${backquote}\x06\0\0\0\0\0\0\x01\0P\x06\0{86}\xfe{510}\0\0\0\0\0\0\xfe{278}| p/ASUS Wi-Fi GO! file transfer/ cpe:/a:asus:wi-fi_go/

match audit m|^Visionsoft Audit on Demand Service\r\nVersion: ([\d.]+)\r\n\r\n| p/Visionsoft Audit on Demand Service/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match autosys m|^([\w._-]+)\nListener for [\w._-]+ AutoSysAdapter\nEOS\nExit Code = 1001\nIP <[\d.]+> is not authorized for this request\. Please contact your Web Administrator\.\nEOS\n| p/CA AutoSys RCS Listener/ v/$1/ i/not authorized/
match avg m|^220-AVG7 Anti-Virus daemon mode scanner\r\n220-Program version ([\d.]+), engine (\d+)\r\n220-Virus Database: Version ([\d/.]+)  [-\d]+\r\n| p/AVG daemon mode/ v/$1 engine $2/ i/Virus DB $3/ cpe:/a:avg:anti-virus:$1/
match avg m=^220-AVG daemon mode scanner \((?:AVG|SMTP)\)\r\n220-Program version ([\w._-]+)\r\n220-Virus Database: Version ([\w._/ -]+)\r\n220 Ready\r\n= p/AVG daemon mode/ v/$1/ i/Virus DB $2/ cpe:/a:avg:anti-virus:$1/

match afbackup m|^afbackup ([\d.]+)\n\nAF's backup server ready\.\n| p/afbackup/ v/$1/
match afbackup m|^.*, Warning on encryption key file ${backquote}/etc/afbackup/cryptkey': File not readable\.\n.*, Warning: Ignoring file ${backquote}/etc/afbackup/cryptkey', using compiled-in key\.\nafbackup 3\.4\n\nAF's backup server ready\.\n\x9d\x84\x0bZ$| p/afbackup/ i/using compiled-in key/

match backdoor m|^220 jeem\.mail\.pv ESMTP\r\n| p/Jeem backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^\r\nUser Access Verification\r\n\r\nYour PassWord:| p/Jeem backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^ \r\n$| p/OptixPro backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^echo o [\d.]+ \d+ >s\r\necho common>> s\r\necho common>> s\r\necho bin>> s\r\necho get m220\.exe| p/JTRAM backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 Bot Server \(Win32\)\r\n$| p/Gaobot backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^PWD$| p/Subseven backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^\r\n\[RPL\]002\r\n$| p/Subseven backdoor/ i/**BACKDOOR**/
match backdoor m|^=+\n= +RBackdoor ([\d.]+) | p/RBackdoor/ v/$1/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 Windrone Server \(Win32\)\r\n$| p/NerdBot backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^Zadej heslo:$| p/Czech "zadej heslo" backdoor/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 Reptile welcomes you\.\.\r\n| p/Darkmoon backdoor "reptile" ftpd/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^Sifre_EDIT$| p/ProRat trojan/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^MZ\x90\0\x03\0\0\0\x04\0\0\0\xff\xff\0\0\xb8\0\0\0\0\0\0\0@\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0fn\0\0\xd0\0\0\0\x0e\x1f\xba\x0e\0\xb4\t\xcd!\xb8\x01L\xcd!This program cannot be run in DOS mode\.| p/Korgo worm/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^\xfa\xcb\xd9\xd9\xdd\xc5\xd8\xce\xd6| p/Theef trojan/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 SSL Connection Established - Loading Protocol\.\.\.\.\r\n| p/dhcpse.exe/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^A-311 Death welcome\x001| p/Haxdoor trojan/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 CAFEiNi [-\w_.]+ FTP server\r\n$| p/CAFEiNi trojan/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m=^220 (?:Stny|fuck)Ftpd 0wns j0\r?\n= p/Kibuv.b worm/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^220 [Sf.][tu.][nc.][yk.][F.][t.][p.][d.] [0.][w.][n.][s.] [j.][0.]\r?\n|i p/Generic Kibuv worm/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^exec .* failed : No such file or directory\n$| p/netcat -e/ i/misconfigured/
match backdoor m=220-Welcome!\r\n220-\x1b\[30m/\x1b\[31m#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#\xa4#                                                         \r\n220-\x1b\[30m\|          Current Time:  \x1b\[35m[^\r\n]*\r\n220-\x1b\[30m\|          Current Date:  \x1b\[35m[^\r\n]*\r\n220-\x1b\[30m\\\r\n= p/Windows trojan/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
# https://www.mysonicwall.com/sonicalert/searchresults.aspx?ev=article&id=733
match backdoor m|^!\* LOLNOGTFO\nDUP\n| p/Linux.Flooder.SS C&C server/ i/**MALWARE**/ o/Linux/ cpe:/o:linux:linux_kernel/a
match backdoor m|^x0$| p/Blackshades connection port/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^REQF\x0c1\x0c1$| p/Blackshades transfer port/ i/**BACKDOOR**/ o/Windows/ cpe:/o:microsoft:windows/a
match backdoor m|^DT Key Logger -- Logging System Wide Key Presses\r\n| p/Deep Throat keylogger/ i/**MALWARE**/
match backdoor m|^:: w4ck1ng-shell \(Private Build v([\w._-]+)\) bind shell backdoor :: \n\n| p/w4ck1ng-shell/ v/$1/ i/**BACKDOOR**/

match bandwidth-test m|^\x01\0\0\0$| p/MikroTik bandwidth-test server/

match barracuda-dcagent m|^Invalid Client IP\0\0$| p/Barracuda Domain Controller Agent/
match barracuda-bcp m|^BCP-2\.0-Barracuda\n| p/Barracuda Web Security Gateway clustering protocol/ cpe:/a:barracuda:web_security_gateway/

match bas m|^4dc\r\n$| p/Blackberry Administration Service - Native Code Container/
match bas m|^4fd\r\n$| p/Blackberry Administration Service - Native Code Generator/
match bas m|^507\r\n$| p/Blackberry Administration Service/

match basestation m=^(?:MSG|SEL|ID|AIR|STA|CLK)(?:,[^,\r\n]*){9,21}\r\n= p/ADS-B flight data/

# Port 2500: http://wiki.yobi.be/wiki/Belgian_eID
match beidpcscd m|^\0\0\0\x1e\xffV\x92l\xfbUL\x87\xabw\x1f\xb2\n\xd8\xef/\0\0\0\x05Alive\0\0\0\x011| p/beidpcscd Belgian eID daemon/

match bf2rcon m|^### Battlefield 2 ModManager Rcon v([\d.]+)\.\n### Digest seed: \w+\n\n| p/Battlefield 2 ModManager Remote Console/ v/$1/

match bgp m|^\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\0\x15\x03\x06\x05| i/connection rejected/
match bgp m|^\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\0\x1d\x01\x04........\0\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\0\x15\x03\x06\x05| i/open; connection rejected/
match bgp m|^\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff..\x01\x04| i/open/

# https://en.bitcoin.it/wiki/Protocol_specification#Message_structure
# https://en.bitcoin.it/wiki/Protocol_specification#version
# https://en.bitcoin.it/wiki/Changelog

# Bitcoin "version" message prior to 20 February 2012.
#  4 bytes magic number:    "\xf9\xbe\xb4\xd9"
# 12 bytes command:         "version\0\0\0\0\0"
#  4 bytes length
#  4 bytes version
#  8 bytes services bitfield: "\x01\0\0\0\0\0\0\0"
#  8 bytes timestamp
#  8 bytes client services count: "\x01\0\0\0\0\0\0\0"
# 16 bytes IPv4-compatible client IP: "\0\0\0\0\0\0\0\0\0\0\xff\xff...."
#  2 bytes client port
#  8 bytes server services count: "\x01\0\0\0\0\0\0\0"
# 16 bytes IPv4-compatible server IP: "\0\0\0\0\0\0\0\0\0\0\xff\xff...."
#  2 bytes server port
#  8 bytes random unique id
#  1 byte  subversion string length
# variable subversion string
#  4 bytes last block

# Version 0xc8 -> 200 -> 0.2.0
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x51\0\0\0\xc8\0\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0$|s p/Bitcoin digital currency server/ v/0.2.0/ cpe:/a:bitcoin:bitcoind:0.2.0/
# Version 0x12c -> 300 -> 0.3.0
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x2c\x01\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.0/ cpe:/a:bitcoin:bitcoind:0.3.0/
# Version 0x136 -> 310 -> 0.3.10
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x57\0\0\0\x36\x01\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.10/ cpe:/a:bitcoin:bitcoind:0.3.10/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x57\0\0\0\x36\x01\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.10$1/ cpe:/a:bitcoin:bitcoind:0.3.10$1/
# Version 0x7bd4 -> 31700 -> 0.3.17
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\xd4\x7b\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.17/ cpe:/a:bitcoin:bitcoind:0.3.17/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\xd4\x7b\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.17$1/ cpe:/a:bitcoin:bitcoind:0.3.17$1/
# Version 0x7c38 -> 31800 -> 0.3.18
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x38\x7c\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.18/ cpe:/a:bitcoin:bitcoind:0.3.18/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x38\x7c\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.18$1/ cpe:/a:bitcoin:bitcoind:0.3.18$1/
# Version 0x7c9c -> 31900 -> 0.3.19
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x9c\x7c\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.19/ cpe:/a:bitcoin:bitcoind:0.3.19/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x9c\x7c\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.19$1/ cpe:/a:bitcoin:bitcoind:0.3.19$1/
# Version 0x7d00 -> 32000 -> 0.3.20
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x00\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.20/ cpe:/a:bitcoin:bitcoind:0.3.20/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x00\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.20$1/ cpe:/a:bitcoin:bitcoind:0.3.20$1/
# Version 0x7d01 -> 32001 -> 0.3.20.1
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x01\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.20.1/ cpe:/a:bitcoin:bitcoind:0.3.20.1/
# Version 0x7d02 -> 32002 -> 0.3.20.2
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x02\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.20.2/ cpe:/a:bitcoin:bitcoind:0.3.20.2/
# Version 0x7d64 -> 32100 -> 0.3.21
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x64\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.21/ cpe:/a:bitcoin:bitcoind:0.3.21/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x64\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.21$1/ cpe:/a:bitcoin:bitcoind:0.3.21$1/
# Version 0x7dc8 -> 32200 -> 0.3.22
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\xc8\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.22/ cpe:/a:bitcoin:bitcoind:0.3.22/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\xc8\x7d\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.22$1/ cpe:/a:bitcoin:bitcoind:0.3.22$1/
# Version 0x7e2c -> 32300 -> 0.3.23
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x2c\x7e\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.23/ cpe:/a:bitcoin:bitcoind:0.3.23/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x2c\x7e\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.23$1/ cpe:/a:bitcoin:bitcoind:0.3.23$1/
# Version 0x7e90 -> 32400 -> 0.3.24
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x90\x7e\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ v/0.3.24/ cpe:/a:bitcoin:bitcoind:0.3.24/
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0\x90\x7e\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\x02(\..)....$|s p/Bitcoin digital currency server/ v/0.3.24$1/ cpe:/a:bitcoin:bitcoind:0.3.24$1/

# https://bitcointalk.org/index.php?topic=55852.0
# http://bitcoin.org/en/alert/2012-02-18-protocol-change
# "In June 2010 the Bitcoin reference software version 0.2.10 introduced a
# change to the protocol: the 'version' messages exchanged by nodes at
# connection time would have a new format that included checksum values to
# detect corruption by broken networks."

# Bitcoin "version" message with protocol version 70001
# https://en.bitcoin.it/wiki/BIP_0037#Extensions_to_existing_messages
# https://en.bitcoin.it/wiki/BIP_0060 "The protocol version was upgraded to
# 70001, and the (now accepted) BIP 0037 became implemented."
#  4 bytes magic number:    "\xf9\xbe\xb4\xd9"
# 12 bytes command:         "version\0\0\0\0\0"
#  4 bytes length
#  4 bytes checksum
#  4 bytes version          "\x71\x11\x01\0"
#  8 bytes services bitfield: "\x01\0\0\0\0\0\0\0"
#  8 bytes timestamp
# 16 bytes IPv4-compatible client IP: "\0\0\0\0\0\0\0\0\0\0\xff\xff...."
#  2 bytes client port
# 16 bytes IPv4-compatible server IP: "\0\0\0\0\0\0\0\0\0\0\xff\xff...."
#  2 bytes server port
#  8 bytes nonce
#  1 byte  user agent string length
# variable user agent string https://en.bitcoin.it/wiki/BIP_0014
#  4 bytes last block
#  1 byte  relay             https://en.bitcoin.it/wiki/BIP_0037#Extensions_to_existing_messages

# Version numbers now correspond only to protocol changes, not software releases.
# Version 0x011171 -> 70001 0.7.1
match bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0.\0\0\0....\x71\x11\x01\0\0\0\0\0\0\0\0\0........\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff.............../Bitpeer:([\w._-]+)/\0\0\0\0\x01$|s p/Bitpeer/ v/$1/

softmatch bitcoin m|^\xf9\xbe\xb4\xd9version\0\0\0\0\0\x55\0\0\0..\0\0\x01\0\0\0\0\0\0\0........\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff......\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\xff\xff..............\0....$|s p/Bitcoin digital currency server/ cpe:/a:bitcoin:bitcoind/

match bitcoin-jsonrpc m|^HTTP/1\.0 401 Authorization Required\r\n(?:[^\r\n]+\r\n)*?Server: bitcoin-json-rpc/([\w._-]+)\r\n|s p/Bitcoin JSON-RPC/ v/$1/ cpe:/a:bitcoin:bitcoind:$1/
match bitcoin-jsonrpc m|^HTTP/1\.0 401 Authorization Required\r\n(?:[^\r\n]+\r\n)*?Server: bitcoin-json-rpc\r\n|s p/Bitcoin JSON-RPC/ cpe:/a:bitcoin:bitcoind/
match bitcoin-jsonrpc m|^HTTP/1\.1 403 Forbidden\r\n(?:[^\r\n]+\r\n)*?Server: bitcoin-json-rpc/([\w._-]+)\r\n|s p/Bitcoin JSON-RPC/ v/$1/ cpe:/a:bitcoin:bitcoind:$1/
match bitcoin-jsonrpc m|^HTTP/1\.1 403 Forbidden\r\n(?:[^\r\n]+\r\n)*?Server: dash-json-rpc/v(\d[\w._-]+)\r\n|s p/Dash cryptocurrency JSON-RPC/ v/$1/

match bitcoin m|^\xbf\x0ck\xbdgetsporks\0\0\0\0\0\0\0\]\xf6\xe0\xe2| p/Dash cryptocurrency server/ i/Bitcoin fork/

# Bittorrent Client 3.2.1b on Linux 2.4.X
match bittorrent m|^\x13BitTorrent protocol\0\0\0\0\0\0\0\0| p/Bittorrent P2P client/
# BMC Software Patrol Agent 3.45 and HP Patrol Agent
match softwarepatrol m|^\0\0\0\x17i\x02\x03..\0\x05\x02\0\x04\x02\x04\x03..\0\x03\x04\0\0\0|s p|BMC/HP Software Patrol Agent| cpe:/a:bmc:patrol_agent/
match scmbug m|^SCMBUG-SERVER RELEASE_([-\w_.]+) \d+\n| p/Scmbug bugtracker/ v/$1/

match bro m|^\0\0\0\x08\x01\0{10}\x11\0\0\0\x07\0\0\x0b\xb8\0\0\0\x1a\0\0..\0\0\0\0\x08\x02...\0{7}mi\x01\0\0\0\x01\x90\x01\0\0\0\0\x10peer_description\x02\0\0\0\0\x01\0{14}\x01\x01\0\0\0\x02\x8a\x01\0\x08\x04\0\x01\0\0\0\0\x01\x01\0\0\0\x03\x8c\x01\0\x01\0\0\0\0\x02\0\0\0\x01\0\x02\x01\x01\0\0\0\x04\x88\x06\0\x01\0\0\0\0\x02\0\0\0\x03bro|s p/Bro IDS control service/ cpe:/a:bro:bro/

# Tolis BRU (Backup and Restore Utility)
match bru m|^0x[0-9a-fA-F]{32}L| p/Tolis BRU/ i/Backup and Restore Utility/

# Bruker AXS X-ray machines (how cool is that!?!?) (Brandon)
match bruker-axs m|^\[ANGLESTATUS.*\[XYZSTATUS.*\[ZOOMSTATUS.*\[INSTRUMENTSTATUS.*XRAYSON=1|s p/Bruker AXS X-ray controller status/ i/X-rays: On/ d/specialized/
match bruker-axs m|^\[ANGLESTATUS.*\[XYZSTATUS.*\[ZOOMSTATUS.*\[INSTRUMENTSTATUS.*XRAYSON=0|s p/Bruker AXS X-ray controller status/ i/X-rays: Off/ d/specialized/

match buildservice m|^200 HELLO - BuildForge Agent v([\w._-]+)\n| p/BuildForge Agent/ v/$1/
match buildservice m|^\$\0\0\0\$\0\0\x000RAR\0 \0\0.\xe2\x02\0\xc4G\x0f\0\0\0\0\0\0\0\0\0\0\0\0\0|s p/Xoreax IncrediBuild/ o/Windows/ cpe:/o:microsoft:windows/a

match burk-autopilot m|^\x19\0\0\0\0\0\x0f\xbeB!\x012\x02\xd1\x02\x032\x02p\0\x062\x02\x80\0$| p/Burk AutoPilot Plus remote management/ d/remote management/

match bzfs m|^BZFS\d\d\d\d\0$| p/BZFlag game server/
match bzfs m|^BZFS\d\d\d\d\r\n\r\n$| p/BZFlag game server/

# CA Message Queueing Server (Tom Sellers)
match ca-mq m|^ACK\x01| p/CA Message Queuing Server/

match ca-unicenter m|^\x8d\0\0\0\x8d\0\0\0\x100\x81\x89\x02\x81\x81\0.*\x02\x03\x01\0\x01\0$| p/CA Unicenter remote control/ cpe:/a:ca:unicenter_remote_control/
match caicci m|^\x02\x07\x04\0\xe0\0{11}\x02\0{7}\x04\x03\x02\x010\0{7}\x01\0\0\0\x01\0\0\0\xe0\0{8}\x80\0\0\0\x80\0\0\0ems-p-sp\0{8}\x01\0{10}\x12\x01\0\0EMS-P-SPO-01\0{53}EMS-P-SPO-01\0{55}$| p/CAI-CCI/
match ccirmtd m|^\x02\x07\x04\0\xe0\0{11}\x02\0{7}\x04\x03\x02\x010\0{7}\x01\0\0\0\x01\0\0\0\xe0\0{8}\x80\0\0\0\x80\0\0\0hfnapp04\0{8}\x01\0{10}\x02\0\0\0HFNAPP04\0{57}HFNAPP04\0{59}$| p/CA Unicenter CCI Remote Daemon/

match calibre-json m|^\d+\[\d+, {.*?\"calibre_version\": \[(\d+), (\d+), (\d+)\], .*?\"currentLibraryName\": \"([^"]+)\",| p/Calibre Sync JSON/ v/$1.$2.$3/ i/library name: $4/ cpe:/a:kovid_goyal:calibre:$1.$2.$3/
match calibre-json m|^\d+\[\d+, {.*?\"currentLibraryName\": \"([^"]+)\",.*?\"calibre_version\": \[(\d+), (\d+), (\d+)\],| p/Calibre Sync JSON/ v/$2.$3.$4/ i/library name: $1/ cpe:/a:kovid_goyal:calibre:$2.$3.$4/

# https://github.com/ninjasphere/driver-go-chromecast
# The "@\0" at the end is newer, but no info on why.
match castv2 m|^\0\0\0X\x08\0\x12\x0bTr@n\$p0rt-0\x1a\x0bTr@n\$p0rt-0\"'urn:x-cast:com\.google\.cast\.tp\.heartbeat\(\x002\x0f{\"type\":\"PING\"}$| p/Ninja Sphere Chromecast driver/
match castv2 m|^\0\0\0Z\x08\0\x12\x0bTr@n\$p0rt-0\x1a\x0bTr@n\$p0rt-0"'urn:x-cast:com\.google\.cast\.tp\.heartbeat\(\x002\x0f\{"type":"PING"\}@\0| p/Ninja Sphere Chromecast driver/

match cccam m|^Welcome to the CCcam information client\.\n| p/CCcam DVR card sharing system information/


# http://comments.gmane.org/gmane.comp.security.openvas.users/3189
# Also submitted by an Nmap user, but with different data following.
match nnsrv m|^\x94\0\0\0\xf4\xff\xff\xff\x01\0\0\0\xff\xff\xff\xff\0\0\0\0\xa5\0\0\0\0\0\0\0| p/iStar Driver Service/ i/access control system/ d/security-misc/

match cddbp m|^201 ([-\w_.]+) CDDBP server v([-\w.]+) ready at .*\r\n| p/freedb cddbp server/ v/$2/ h/$1/

# http://ceph.com/docs/next/dev/network-protocol/
# 2 back-to-back struct entity_addr_t, consisting of a u32 type (0), u32 nonce (random), and a sockaddr_storage.
# This works for IPv4, have yet to get an IPv6 fingerprint
match ceph m|^ceph (v[\w._-]+)\0\0\0\0....\0\x02......\0{120}\0\0\0\0....\0\x02......\0{120}|s p/Ceph distributed filesystem/ v/protocol $1/ i/ipv4/

match chargen m|^!"#\$%\&'\(\)\*\+,-\./0123456789:;<=>\?\@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_${backquote}abcdefgh\r\n"#\$%\&'\(\)\*\+,-\./0123456789:;<=>\?\@ABCDEF| p/Linux chargen/ o/Linux/ cpe:/o:linux:linux_kernel/a
# Redhat 7.2, xinetd 2.3.7 chargen
match chargen m|^\*\+,-\./0123456789:;<=>\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_${backquote}abcdefghijklmnopq\r\n\+,-\./| p/xinetd chargen/ o/Unix/
# Sun Solaris 9; Windows
match chargen m|^\ !"#\$%&'\(\)\*\+,-\./0123456789:;<=>\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\[\\\]\^_|
# Mandrake Linux 9.2, xinetd 2.3.11 chargen
match chargen m|NOPQRSTUVWXYZ\[\\\]\^_${backquote}abcdefghijklm| p/xinetd chargen/ o/Unix/
match chargen m|^\*\*\* Port V([\d.]+) !\"#\$%&'\(\)\*\+,-\./0123456789:| p/Lantronix chargen/ v/$1/
match chargen m|^The quick brown fox jumps over the lazy dog\. 1234567890\r\n| p/Tektronix Phaser chargen/ d/printer/

match chat m|^WebStart Chat Service Established\.\.\.\r\n\(C\) 2000-\d+ R Gabriel all Rights Reserved\r\n| p/WebStart Chat Service/
match chat m|^\*\x01..\0\x04\0\0\0\x01$|s p/AIM or ICQ server/
match chat-ctrl m|^InfoChat Server v([\d.]+) Remote Control ready\n\r| p/InfoChat Remote Control/ v/$1/

match check_mk m|^<<<check_mk>>>\nVersion: ([\w._-]+)\n| p/check_mk extension for Nagios/ v/$1/

match chess m=^\n\r             _       __     __                             __      \n\r            \| \|     / /__  / /________  ____ ___  ___     / /_____ \n\r            \| \| /\| / / _ \\/ / ___/ __ \\/ __ ${backquote}__ \\/ _ \\   / __/ __ \\\n\r= p/Lasker Internet Chess server/

match chilliworx m|^ChilliSVC ([\d.]+)\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0| p/ChilliWorx management console/ v/$1/ d/remote management/

match cirrato-client m|^Cirrato Client ([\w._-]+)\0$| p/Cirrato print server client/ v/$1/

# Citadel/UX. Maybe to change the service name and to move somewhere else? embyte
match citadel m|^200.*Citadel(?:/UX)?| p/Citadel (UX) messaging server/ cpe:/a:citadel:ux/
# Citrix, Metaframe XP on Windows
match citrix-ica m|^\x7f\x7fICA\0\x7f\x7fICA\0| p/Citrix Metaframe XP ICA/ o/Windows/ cpe:/o:microsoft:windows/a
# Citrix MetaFrame XP 1.0 implimented with ClassLink 2000 on NT4
match citrix-ima m|^.\0\0\0\x81\0\0\0\x01|s p/Citrix Metaframe XP IMA/ o/Windows/ cpe:/o:microsoft:windows/a

# http://www.citynet.ru/citynet-sv.3
# Really no idea what this is or which fields are mutable
match citynet m|^CityNetDUTChannel\[AT3V1\]\x04\0\xa5\x0f\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0........|s p/CityNet SV.3/

# Length-prefixed Protocol Buffers. This is "UPDATE_TRACK_POSITION" message sent when music is playing. Version is based on protocol version byte.
match clementine m|^\0\0\0.\x08\x0b\x10\.\xa2\x01.\x08.|s p/Clementine music player remote control/ v/1.2/ cpe:/a:clementine-player:clementine:1.2/
match clementine m|^\0\0\0.\x08\x0c\x10\.\xa2\x01.\x08.|s p/Clementine music player remote control/ v/1.2.1/ cpe:/a:clementine-player:clementine:1.2.1/
match clementine m|^\0\0\0.\x08\x0d\x10\.\xa2\x01.\x08.|s p/Clementine music player remote control/ v/1.2.2 - 1.2.3/ cpe:/a:clementine-player:clementine:1.2/
softmatch clementine m|^\0\0\0.\x08.\x10\.\xa2\x01.\x08.|s p/Clementine music player remote control/ cpe:/a:clementine-player:clementine/

match clsbd m|^\0\0\0\x10ClsBoolVersion 1$| p/Cadence IC design daemon/
match cmrcservice m|^\"\0\0\x80 \0S\0T\0A\0R\0T\0_\0H\0A\0N\0D\0S\0H\0A\0K\0E\0\0\0| p/Microsoft Configuration Manager Remote Control service/ i/CmRcService.exe/ o/Windows/ cpe:/a:microsoft:systems_management_server/ cpe:/o:microsoft:windows/a
match cmrcservice m|^,\0\0\x80\*\0E\0R\0R\0O\0R\0_\0N\0O\0_\0A\0C\0T\0I\0V\0E\0_\0U\0S\0E\0R\0\0\0| p/Microsoft Configuration Manager Remote Control service/ i/Error: no active user/ o/Windows/ cpe:/a:microsoft:systems_management_server/ cpe:/o:microsoft:windows/a
match cmrcservice m|^0\0\0\x80\.\0E\0R\0R\0O\0R\0_\0E\0X\0I\0S\0T\0I\0N\0G\0_\0S\0E\0S\0S\0I\0O\0N\0\0\0| p/Microsoft Configuration Manager Remote Control service/ i/Error: existing session/ o/Windows/ cpe:/a:microsoft:systems_management_server/ cpe:/o:microsoft:windows/a
match codeforge m|^CFMSERV\(1\)\n| p/CodeForge IDE/
match concertosendlog m|^Concerto Software\r\n\r\nEnsemblePro SendLog Server - Version (\d[-.\w]+)\r\n\r\nEnter Telnet Password\r\n#> | p/Concerto Software EnsemblePro CRM software SendLog Server/ v/$1/
match concertotimesync m|^Concerto Software\r\n\r\nContactPro TimeSync Server - Version (\d[-.\w]+)\r\n\r\nEnter Telnet Password\r\n#> | p/Concerto Software EnsemblePro CRM software TimeSync Server/ v/$1/
match conference m|^Conference, V([\d.]+)\r\n$| p/Forum Communcations conferenced/ v/$1/
match complex-link m|^\x06\x07\xd0\0\x01\0\0\0\x01\0\x02\x07\xd0\0\x01\0\0\x01\x0f\x01\xf4\0\0\0\0HP +LTO ULTRIUM| p/HP LTO Ultrium data port/ d/storage-misc/

# Commvault Backup Server (CommVault Galaxy(R) Data Protection)
match commvault m=^\0\0\0\t\0\0\0\|\0\0\0= p/CommVault Galaxy data backup/

match compuware-lm m|^Hello, I don't understand your request\.  Good bye\.\.\.\. $| p/Compuware Distributed License Management/

# PacketCable COPS Client-Open
# http://tools.ietf.org/html/rfc2748#section-2.1
match cops m|^\x10\x06[\x80-\xff].......\x0b\x01([\w._-]+)\0|s p/Common Open Policy Service (COPS)/ v/1/ h/$1/

match control-m m|^a 00000094S         000000             L E CTM5761S0103Control-M server already connected to another gateway\. | p|BMC Control-M/EM server| cpe:/a:bmc:software_control-m_server/

# This port uses a binary protocol: [esc]X@ query OS version, [esc]XA query hardware
match crestron-control m|^Crestron Terminal Protocol Console opened\r\n| p/Crestron Terminal Console/ i/Crestron automation system/ cpe:/h:crestron/
match crestron-control m|^\r\nCrestron Terminal Protocol Console Opened\r\n\r\n| p/Crestron Terminal Console/ i/Crestron automation system/ cpe:/h:crestron/

# Crestron Terminal Protocol - text based protocol
match crestron-ctp m|^\r\nCEN-IDOC Control Console\r\n\r\nCEN-IDOC>| p/Crestron CEN-IDOC music player connection text ui/ d/media device/ cpe:/h:crestron:cen-iodc/
match crestron-ctp m|^\r\nRMC Control Console\r\n\r\nQM-RMC>\r\nQM-RMC>| p/Crestron QM-RMC text ui/ d/media device/ cpe:/h:crestron:qm-rmc/
match crestron-ctp m|^TSW-[\w._-]+ Console\r\n\r\n(TSW-[\w._-]+)>| p/Crestron $1 touch screen text ui/ d/media device/ cpe:/h:crestron:$1/
match crestron-ctp m|^Password\? \r\n| p/Crestron MPS-200 presentation system text ui/ i/Authentication required/ d/media device/ cpe:/h:crestron:mps-200/
match crestron-ctp m|^\r\n([-\w]+) Control Console\r\nConnected to Host: ([-\w_.]+)\r\n| p/Crestron $1 automation system text ui/ d/specialized/ h/$2/ cpe:/h:crestron:$1/
match crestron-ctp m|^\r?\n?[-\w]+ Control Console\r\n\r\n?([-\w_.]+)>| p/Crestron $1 automation system text ui/ d/specialized/ cpe:/h:crestron:$1/
match crestron-ctp m|^[-\w]+ Console\r\n\r\n([-\w]+)>\r\r\n| p/Crestron $1 automation system text ui/ d/specialized/ cpe:/h:crestron:$1/
match crestron-ctp m|^[-\w]+ Console\r\nWarning: Another console session is open \r\n\r\n([-\w]+)>| p/Crestron $1 automation system text ui/ d/specialized/ cpe:/h:crestron:$1/
match crestron-ctp m|\*\*\*\*\r\n\r\nHELP : Provides help menus\.\r\nHELP \[ALL | p/Crestron automation system text ui/ i/Authentication required/ d/specialized/ cpe:/h:crestron/
# Should be matched above, unable to verify - TS
match crestron-ctp m|^\r\nPRO2 Control Console\r\n| p/Crestron PRO2 automation system text ui/ d/specialized/ cpe:/h:crestron:pro2/
match crestron-ctp m|^\r\nMC2E Control Console\r\n| p/Crestron MC2E automation system text ui/ d/specialized/ cpe:/h:crestron:mc2e/

# XSig allows communcation with a Crestron control system.
match crestron-xsig m|^\x0f\0\x01\x02$| p/Crestron XSig communication/ d/specialized/ cpe:/h:crestron/

match crossfire m|^\0#version 1023 1027 Crossfire Server\n| p/Crossfire game server/ v/1.9.0 or earlier/
match crossfire m|^\0#version 1023 102[89] Crossfire Server\n| p/Crossfire game server/ v/1.9.1/
# Softmatch so we can get a version
softmatch crossfire m|^\0#version \d+ \d+ Crossfire Server\n| p/Crossfire game server/ cpe:/a:crossfire:crossfire/

match cyrus-sync m|\* OK ([-.\w]+) Cyrus sync server v([-.\w]+)| p/Cyrus sync server/ v/$2/ h/$1/ cpe:/a:cmu:cyrus_imap_server:$2/

match cvspserver m|^no repository configured in /| p/CVS pserver/ i/broken/
match cvspserver m|^/usr/sbin/cvs-pserver: line \d+: .*cvs: No such file or directory\n| p/CVS pserver/ i/broken/
match cvspserver m|^Unknown command: ${backquote}pserver'\n\nCVS commands are:\n| p/CVS pserver/ i/broken/

match cvsup m|^OK \d+ \d+ ([-.\w]+) CVSup server ready\n| p/CVSup/ v/$1/

match damewaremr m|^0\x11\0\0...........@.........\0\0\0\x01\0\0\0\0\0\0\0.\0\0\0$|s p/DameWare Mini Remote Control/ o/Windows/ cpe:/o:microsoft:windows/a

match darkcomet m|^[0-9A-F]{12}$| p/DarkComet RAT/ i/**BACKDOOR**/

# Linux
match daytime m=^[0-3]\d [A-Z][A-Z][A-Z] (?:19|20)\d\d \d\d:\d\d:\d\d \S+\r\n=
# OpenBSD 3.2
match daytime m=^[A-Z][a-z]{2} [A-Z][a-z]{2} +\d{1,2} +\d\d:\d\d:\d\d (?:19|20)\d\d\r\n= o/Unix/
# Solaris 8,9
match daytime m=^[A-Z][a-z]{2} [A-Z][a-z]{2} +\d{1,2} +\d\d:\d\d:\d\d (?:19|20)\d\d\n\r= p/Sun Solaris daytime/ o/Solaris/ cpe:/o:sun:sunos/a
# Windows daytime
match daytime m=^\d+:\d\d:\d\d [AP]M \d+/\d+/(?:19|20)\d\d\n$= p/Microsoft Windows USA daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# Windows daytime - UK english I think (no AM/PM)
match daytime m=^\d\d:\d\d:\d\d \d\d?.\d\d?.(?:19|20)\d\d\n$= p/Microsoft Windows International daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# daytime on Windows 2000 Server
match daytime m=^.... \d{1,2}:\d{1,2}:\d{1,2} (?:19|20)\d\d-\d{1,2}-\d{1,2}\n$= p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# Windows NT daytime
match daytime m=^[A-Z][a-z]+day, [A-Z][a-z]+ \d{1,2}, (?:19|20)\d\d \d{1,2}:\d\d:\d\d\n\0$= p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# Windows 2000 Adv Server sp-4 daytime
match daytime m=^[A-Z][a-z][a-z] [A-Z][a-z][a-z] \d{1,2} \d{1,2}:\d{1,2}:\d{1,2} (?:19|20)\d\d\n= p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# Windows 2003 Server daytme
match daytime m=^\d{1,2}\.\d{1,2}\.\d{1,2} \d\d/\d\d/(?:19|20)\d\d\n= p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# Windows 2000 Prof. Central European format
match daytime m|^\d{1,2}:\d\d:\d\d \d{1,2}[/.]\d{1,2}[/.]\d{4}\n$| p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
match daytime m|^\d{1,2}:\d\d:\d\d [ap]m \d{4}/\d\d/\d\d\n$| p/Microsoft Windows daytime/ o/Windows/ cpe:/o:microsoft:windows/a
match daytime m|^\d{1,2}:\d\d:\d\d [ap]m \d{1,2}/\d{1,2}/\d{4}\n$| p/Microsoft Windows 2003 daytime/ o/Windows/ cpe:/o:microsoft:windows_server_2003/a
# South Africa localization.
match daytime m|^\d\d:\d\d:\d\d [AP]M \d\d\d\d/\d\d/\d\d\n$| p/Microsoft Windows 7 daytime/

# Windows International daytime
match daytime m|^\d\d:\d\d:\d\d \d\d.\d\d.20\d\d\n$| p/Microsoft Windows International daytime/ o/Windows/ cpe:/o:microsoft:windows/a
# New Zealand format daytime - Windows 2000
match daytime m|^[01]\d:\d\d:\d\d [AP]M [0-3]\d/[01]\d/0\d\n$| p/Microsoft Windows daytime/ i/New Zealand style/ o/Windows/ cpe:/o:microsoft:windows/a
# HP-UX B.11.00 A inetd daytime
match daytime m|^[A-Z][a-z]{2} [A-Z][a-z]{2} +\d{1,2} \d\d:\d\d:\d\d [A-Z]+ 20\d\d\r\n$| p/HP-UX daytime/ o/HP-UX/ cpe:/o:hp:hp-ux/a
# Tardis 2000 v1.4 on NT
match daytime m|^[A-Z][a-z]{2} [A-Z][a-z]{2} +\d{1,2} \d\d:\d\d:\d\d 20\d\d $| p/Tardis 2000 daytime/
match daytime m|^\d+ \d\d-\d\d-\d\d \d\d:\d\d:\d\d 50 0 4 \d+\.0 UTC\(NIST\) \*\r\n| p/Greyware Domain Time II daytime/

# TrueTime nts100 running WxWorks
match daytime m|^[A-Z][a-z]{2}, [A-Z][a-z]{2} \d{1,2}, 20\d\d, \d\d:\d\d:\d\d-UTC$| p/TrueTime nts100/

# Cisco router daytime
match daytime m|^[A-Z][a-z]+day, [A-Z][a-z]+ \d{1,2}, \d{4} \d\d:\d\d:\d\d-\w\w\w\w?(?:-?DST)?\r\n| p/Cisco router daytime/ o/IOS/ cpe:/o:cisco:ios/a

match daytime m|^\w+, +\d+ +\w+ +\d+ +\d+:\d+:\d+ [+-]\d+\r\n([\w:._ /\\-]+\\ats\.exe)\r\n| p/Atomic Time Synchonizer daytime/ i/$1/ o/Windows/ cpe:/o:microsoft:windows/
match daytime m|^\d\d\d\d/\d\d/\d\d \d\d:\d\d:\d\d\r\n$| p/American Dynamics EDVR security camera daytime/ d/webcam/

# TODO: replace this when we figure out what it is.
softmatch daytime m|^[0-2]\d:[0-5]\d:[0-5]\d [12]\d\d\d/\d\d?/\d\d?\n$|

match devonthink m|^\xe6\x01\0\0\0\0\0\0bplist00\xd4\x01\x02\x03\x04\x05\x06\x1e\x1fX\$versionX\$objectsY\$archiverT\$top\x12\0\x01\x86\xa0\xa5\x07\x08\x0f\x13\x1aU\$null\xd3\t\n\x0b\x0c\r\x0eStag\[dataContentV\$class\x10\x01\x80\x02\x80\x04\xd2\x10\x0b\x11\x12WNS\.dataO\x10\x98bplist00\xd2\x01\x02\x03\x04_\x10\x16ComputerIdentificationZPINCodeKey_\x10:([\w._-]+)\x08| p/DEVONthink dcoument management/ i/PIN code key: $1/ o/Mac OS X/ cpe:/o:apple:mac_os_x/a

match diablo2 m|^[\xae\xaf]\x01$| p/Diablo 2 game server/

match dict m|^530 access denied\r\n$| p/dictd/ i/access denied/
match dict m|^220 ([-.\w]+) dictd ([-.\w/]+) on ([-.+ \w]+) <auth\.mime>| p/dictd/ v/$2/ o/$3/ h/$1/
match dict m|^220 hello <> msg\r\n$| p/Serpento dictd/

# DS2, Application Version 04.5 (025) M2IP - 03.1 (09.2)Bootloader Version 04.5 (022) M2IP - 03.1 (09.2)
match digital-sprite-status m|^acam_bitmask\[0\]=1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768,1,2,4,8,16,32,64,128,256,512,1024,2048,4096,8192,16384,32768\r\nact_actions\[0\]=1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1\r\nact_buzzer=0\r\n| p/Dedicated Micros Digital Sprite 2 camera/ d/webcam/

# Digifort port 8600.
match digifort m|^\xd1Q\xf0'\0\0\0;\x01\x05LOGIN\0\0\0\x30\x01\x01\0\0\0\x05NONCE\x08 \0\0\0[0-9A-F]{32}$| p/Digifort Enterprise 6.5/ o/Windows/ cpe:/a:digifort:digifort:6.5.0_final/ cpe:/o:microsoft:windows/a
# Digifort port 8610.
match digifort-analytics m|^\xd1Q\xf0'\0\0\0A\x01\x15CMD_ANALYTICS_VERSION\0\0\0&\x01\x01\0\0\0\x07Version\x08\x14\0\0\0DIGIFORT ([\w._ -]+)\xd1Q\xf0'\0\0\0I\x01\x13CMD_ANALYTICS_NONCE\0\0\0\x30\x01\x01\0\0\0\x05NOnce\x08 \0\0\0\x30CD6DD9A883431A881BC14DE48F0F892\xd1Q\xf0'\0\0\0\x18\x01\x12CMD_ANALYTICS_PING\0\0\0\0\xd1Q\xf0'\0\0\0\x18\x01\x12CMD_ANALYTICS_PING\0\0\0\0$| p/Digifort Enterprise analytics/ v/$1/ o/Windows/ cpe:/a:digifort:digifort:$1/ cpe:/o:microsoft:windows/a
# Digifort port 8611.
match digifort-lpr m|^\xd1Q\xf0'\0\0\0;\x01\x0fCMD_LPR_VERSION\0\0\0&\x01\x01\0\0\0\x07Version\x08\x14\0\0\0DIGIFORT ([\w._ -]+)\xd1Q\xf0'\0\0\0C\x01\rCMD_LPR_NONCE\0\0\0\x30\x01\x01\0\0\0\x05NOnce\x08 \0\0\0\x332DA9B47DA082C982384782CEDFEE055\xd1Q\xf0'\0\0\0\x12\x01\x0cCMD_LPR_PING\0\0\0\0\xd1Q\xf0'\0\0\0\x12\x01\x0cCMD_LPR_PING\0\0\0\0$| p/Digifort Enterprise LPR/ v/$1/ o/Windows/ cpe:/a:digifort:digifort:$1/ cpe:/o:microsoft:windows/a

match directconnect m=^\$MyNick ([-.\w]+)|\$Lock= p/Direct Connect P2P/ i/User: $1/ o/Windows/ cpe:/o:microsoft:windows/a
match directconnect m|^\r\nDConnect Daemon v([\d.]+)\r\nlogin: | p/Direct Connect P2P/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match directconnect m=<Hub-Security> Your IP is temporarily banned for (\d+) minutes\.\|= p/Shadows DirectConnect hub/ i/Banned for $1 minutes/
match directconnect m=<Hub-Security> You are being banned for (\d+) minutes \(by SDCH Anti Hammering\)\.\|= p/Shadows DirectConnect hub/ i/Banned for $1 minutes/
match directconnect m=<Hub-Security> You are being redirected to ([\d.]+)\|\$ForceMove [\d.]+\|= p/PtokaX directconnect hub/ i/Redirected to $1/
match directconnect m=^server-version\$([\w._-]+)\|init-completion\$200\|port\$\d+\|= p/Shakespeer Direct Connect GUI/ v/$1/ o/Mac OS X/ cpe:/o:apple:mac_os_x/a
match directconnect-admin m=^\r\nOpen DC Hub, version ([\d.]+), administrators port\.\r\nAll commands begin with '\$' and end with '\|'\.\r\nPlease supply administrators passord\.\r\n= p/OpenDCHub directconenct hub admin port/ v/$1/ o/Unix/

match directupdate m|^OK Welcome <[\d.]+> on DirectUpdate server ([\d.]+)\r\n| p/DirectUpdate dynamic IP updater/ v/$1/
match directupdate m|^OK Welcome <[\d.]+> on DirectUpdate engine VER=\[([\d.]+) \(Build (\d+)\)\]-0x\w+\r\n| p/DirectUpdate dynamic IP updater/ v/$1 build $2/

match diskmonitor m|^000001a2[0-9a-f]{410}\r\n| p/Active@ Hard Disk Monitor/
match diskmonitor m|^0000019a[0-9a-f]{402}\r\n| p/Active@ Hard Disk Monitor/

match lmtp m|^220 DSPAM DLMTP ([\w._-]+) Authentication Required\r\n| p/DSPAM lmtpd/ v/$1/ cpe:/a:dspam:dspam:$1/

match docker-swarm m|^\0\0\0\x04\0\0\0\0\0\0\0\x04\x08\0\0\0\0\0\0\x0e\xff\xf1| p/Docker Swarm/ cpe:/a:redhat:docker/

match doka5 m|^\xff\0\0\x14\x9d\0\0\0\0\0\0\0\0\0\0\x11l\0\0\0\x17\0\0| p/Surecomp DOKA 5/ cpe:/a:surecomp:doka_5/

match drawpile m|^..\0DRAWPILE 3 ([A-Z,]+)|s p/DrawPile/ v/0.7.0/ i/protocol 3; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.7.0/
match drawpile m|^..\0DRAWPILE 4 ([A-Z,]+)|s p/DrawPile/ v/0.7.1 - 0.7.2/ i/protocol 4; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.7/
match drawpile m|^..\0DRAWPILE 5 ([A-Z,]+)|s p/DrawPile/ v/0.8.0/ i/protocol 5; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.8.0/
match drawpile m|^..\0DRAWPILE 6 ([A-Z,]+)|s p/DrawPile/ v/0.8.1/ i/protocol 6; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.8.1/
match drawpile m|^..\0DRAWPILE 7 ([A-Z,]+)|s p/DrawPile/ v/0.8.2 - 0.8.3/ i/protocol 7; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.8/
match drawpile m|^..\0DRAWPILE 8 ([A-Z,]+)|s p/DrawPile/ v/0.8.4 - 0.8.5/ i/protocol 8; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.8/
match drawpile m|^..\0DRAWPILE 9 ([A-Z,]+)|s p/DrawPile/ v/0.8.6/ i/protocol 9; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.8.6/
match drawpile m|^..\0DRAWPILE 10 ([A-Z,]+)|s p/DrawPile/ v/0.9.0 - 0.9.1/ i/protocol 10; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.9/
match drawpile m|^..\0DRAWPILE 11 ([A-Z,]+)|s p/DrawPile/ v/0.9.2 - 0.9.5/ i/protocol 11; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.9/
match drawpile m|^..\0DRAWPILE 12 ([A-Z,]+)|s p/DrawPile/ v/0.9.6/ i/protocol 12; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.9.6/
match drawpile m|^..\0DRAWPILE 13 ([A-Z,]+)|s p/DrawPile/ v/0.9.7 - 0.9.8/ i/protocol 13; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.9/
match drawpile m|^..\0DRAWPILE 14 ([A-Z,]+)|s p/DrawPile/ v/0.9.9/ i/protocol 14; flags: $1/ cpe:/a:calle_laakkonen:drawpile:0.9.9/
match drawpile m|^..\0DRAWPILE 15 ([A-Z,]+)|s p/DrawPile/ v/0.9.10 - 1.0.6/ i/protocol 15; flags: $1/ cpe:/a:calle_laakkonen:drawpile/

match drawpile m|^..\0\0\{"flags":\[([^]]+)\],"message":"Drawpile server (\d[\w._-]+)","type":"login","version":(\d+)\}|s p/DrawPile/ v/$2/ i/JSON protocol $3; flags: $1/ cpe:/a:calle_laakkonen:drawpile:$2/

match durian m|^<c5>Durian Web Application Server III<c4> ([^<]+)<c0> for Win32\r| p/Durian Web Application Server III/ v/$1/ o/Windows/ cpe:/a:mozilla:durian_web_application_server:$1/ cpe:/o:microsoft:windows/a

match dvr-video m|^head\0\0\0\0[\xf9-\xfa].\0\0\x04\0\0\0\x03\0{45}[\0\x03]\0| p/LTS or QSEE DVR video server/ d/media device/

# 1024 random bytes of challenge
match d-mp m|^\x01\0\0\0\x08\x04\0\0\x04\x04\0\0\0\x04\0\0.{100}| p/Dark MultiPlayer Kerbel Space Program mod/ cpe:/a:christopher_andrews:darkmultiplayer/

match dnsix m|^DNSIX$|

# Port 5900. http://www.ducea.com/2008/11/24/drac-ip-port-numbers/.
match drac-console m|^\0\0\0\x0c\0\0\0\?\0\0\0\x02$| p/Dell Remote Access Controller 4 console/ cpe:/h:dell:remote_access_card:4/

match dragon m|^UNAUTHORIZED\n\r\n\r$| p/Dragon realtime shell/

# https://github.com/droboports/droboports.github.io/wiki/NASD-XML-format
match drobo-nasd m|^DRINASD[9a]?\0\x01\x01\0\0\0\0..<\?xml version="1\.0" encoding="utf-8"\?>\n\n<ESATMUpdate>\n    <mESAUpdateSignature>ESAINFO</mESAUpdateSignature>\n    <mESAUpdateVersion>\d+</mESAUpdateVersion>\n    <mESAUpdateSize>\d+</mESAUpdateSize>\n    <mESAID>\w+</mESAID>\n    <mSerial>(\w+)</mSerial>\n    <mName>([^<]+)</mName>\n    <mVersion>([][\w._ ]+)</mVersion>\n|s p/Drobo NASD/ v/$3/ i/name: $2; sn: $1/
match drobo-dsvc m|^DRIDDSVC\x07\x01.\0\0\0..<ESATMUpdate>\r\n\t<mESAUpdateSignature>ESAINFO</mESAUpdateSignature>\r\n\t<mESAUpdateVersion>\d+</mESAUpdateVersion>\r\n\t<mESAUpdateSize>\d+</mESAUpdateSize>\r\n\t<mESAID>0db\d+</mESAID>\r\n\t<mSerial>(tDB\d+)</mSerial>\r\n\t<mName>([^<]+)</mName>\r\n\t<mVersion>([][\w._ ]+)</mVersion>\r\n|s p/Drobo-FS DDSVC/ v/$3/ i/name: $2; sn: $1/

match drweb m|^0 PROTOCOL 2 [23] AGENT,CONSOLE,INSTALL| p/DrWeb/

match dynast-solver m|^DYNAST server v(.*) \(Win32\) - Copyright\(c\) DYN| p/DYNAST solver/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a

match echolink m|^[0-9a-f]{8}$| p/EchoLink radio-over-VoIP/

match enemyterritory m|^Welcome [\d.]+\. You have 15 seconds to identify\.\r\n| p/Enemy Territory Admin Mod/

match efi-webtools m|^\?p\xf7/Zq\xa2\xf5\x03.......\xf4\xea.......B$| p/EFI Fiery WebTools communication/
match efi-workstation m|^\(m\xe9l@k\xb7\xf5\x03$| p/EFI Fiery Command WorkStation/
match efi-workstation m|^\(m\xe9l@k\xb3\xf7\x1e\xa5$| p/EFI Fiery Command WorkStation/
match efi-workstation m|^\(m\xe9l@k\xb1\xf1\x15\xa5$| p/EFI Fiery Command WorkStation/
match efi-workstation m|^\(m\xe9l@k\xb3\xf7\x1f\xa5$| p/EFI Fiery Command WorkStation/

match eftserv m|^\?\x008 \xc3p EFTSRV1                                 ([\d.]+) | p/Ingenico EFTSRVd/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match ericom m|^Ericom GCS v([\d.]+)\0| p/Ericom PowerTermWebConnect/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match eggdrop m=^(?:\xff\xfb\x05\n)?\r\n\r\n([-${backquote}|.\w]+)  \(Eggdrop v(\d[-.\w]+) +\([cC]\) *1997= p/Eggdrop irc bot console/ v/$2/ i/botname: $1/ cpe:/a:eggheads:eggdrop:$2/
match eggdrop m=^(?:\xff\xfb\x05\n)?\r\n\r\n([-${backquote}|.\w]+)  \(Eggdrop v(\d[-.\w]+)\+(\S+) +\([cC]\) *1997= p/Eggdrop irc bot console/ v/$2/ i/botname: $1; patch: $3/ cpe:/a:eggheads:eggdrop:$2/
# These 2 fallbacks are because many people customize their eggdrop
# banners.  These rules should always be well below the detailed rule
# above.
match eggdrop m|\(Eggdrop v([\d.]+) \(C\) 1997 Robey Pointer.*Eggheads|s p/Eggdrop IRC bot console/ v/$1/ cpe:/a:eggheads:eggdrop:$1/
match eggdrop m|\(Eggdrop v([\d.]+)\+(\S+) \(C\) 1997 Robey Pointer.*Eggheads|s p/Eggdrop IRC bot console/ v/$1/ i/patch: $2/ cpe:/a:eggheads:eggdrop:$1/

match eggdrop m|Copyright \(C\) 1997 Robey Pointer\r\n.*Eggheads| p/Eggdrop IRC bot console/ cpe:/a:eggheads:eggdrop/

match egosecure-xmlrpc m|^<\?xml version="1\.0"\?><Xml><Header></Header><Body><XmlRpcServer><Greeting>EgoSecure XmlRpc Server</Greeting><HostName>([^<]+)</HostName><Version>([^<]+)</Version><ProductVersion>([^<]+)</ProductVersion>| p/EgoSecure Agent xmlrpc/ v/$3/ i/protocol version $2/ h/$1/

match electra m|^login: \r\nREADY\r\n\x01\0\0\x1bA\x1bA| p/Cardinal Electra server/ cpe:/a:cardinal_kft:electra/

match emc-datadomain m|^G11\x01..\0\0\x02\x01\0\0\x10\0\0\0.{16}|s p/EMC DataDomain/

match enistic-manager m|^WZ=AAAAAAAAAAByAAE=73\r0E0000000000cgAD83\r$| p/Enistic Energy Manager/

match envisalink m|^5053CD\r\n| p/EyezOn EnvisaLink/ d/security-misc/

match epoptes-client m|^\ndie\(\) {\n    echo \"epoptes-client ERROR: \$@\" >&2\n    exit 1\n}\n\ninfo\(\) {\n    local server_ip def_iface\n\n    if \[ -z \"\$cached_info\" \]; then\n        VERSION=\${VERSION:-([\d.]+)}| p/Epoptes LTSPd/ i/compat version $1/ cpe:/a:epoptes:epoptes/
match epp m|^\x00\x00..<\?xml version=\"1\.0\" encoding=\"UTF-8\" standalone=\"no\" \?>\n<epp xmlns=\"http://www\.yoursrs\.com/xml/epp/epp-1\.0\" xmlns:xsi=\"http://www\.w3\.org/2001/XMLSchema-instance\" xsi:schemaLocation=\"http://www\.yoursrs\.com/xml/epp/epp-1\.0 epp-1\.0\.xsd\">\n\n  <greeting>\n    <svID>([^<]+)</svID>\n    <svDate>.*</svDate>\n    <svcMenu>\n      <version>([\w._-]+)</version>\n|s p/Extensible Provisioning Protocol/ v/$2/ h/$1/
softmatch epp m|^\0...<\?xml version="1\.0" encoding="[uU][tT][fF]-8" standalone="no"\?>\s*<epp xmlns="urn:ietf:params:xml:ns:epp-1\.0".*<svID>([^<]+)</svID>|s p/Extensible Provisioning Protocol/ i/name: $1/
# RFC 5730
softmatch epp m|^\0...<\?xml version="1\.0" encoding="[uU][tT][fF]-8" standalone="no"\?>\s*<epp xmlns="urn:ietf:params:xml:ns:epp-1\.0"|s

match eve-online m|^7\0\0\0~\0\0\0\0\x14\x06\x04\xe8\x99\x02\0\x05\xeb\0\x04\xdf\x92\0\0\n\xd7\xa3p=\n\xd7\x18@\x04\x95\xf1\x01\0\x13\x13EVE-EVE-RELEASE@ccp$| p/EVE Online game server/
match eve-online m|^:\0\0\0~\0\0\0\0\x14\x07\x04\xe8\x99\x02\0\x05\x3b\x01\x05\x03k\n333333\x1d@\x04\re\x05\0\x13\x17EVE-EVE-TRANQUILITY@ccp\x01$| p/EVE Online game server/ i/Tranquility server/

match exacqvision m|^8\0\0\0\x07\0\0\0\x01\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0....\0\0\0\0....\0\0\0\0....\0\0\0\0$| p/exacqVision video surveillance/ v/2.1.13/

match exec m|^\x01Where are you\?\n$| p/netkit-rsh rexecd/ o/Linux/ cpe:/a:netkit:netkit/ cpe:/o:linux:linux_kernel/a

# https://wiki.freenetproject.org/FCPv2
# NULL probe hack
match fcpv2 m|^ProtocolError\nFatal=true\nCodeDescription=ClientHello must be first message\nCode=1\nGlobal=false\nEndMessage\n$| p/Freenet Client Protocol listener/
match fcpv2 m|^ProtocolError\nCodeDescription=ClientHello must be first message\nFatal=true\nCode=1\nGlobal=false\nEndMessage\n$| p/Freenet Client Protocol listener/

softmatch fhem m|^OK 9 \d+ \d+ \d+ \d+ \d+\r\n|

# \x04 is the length, \x07\x08 is the command, following two bytes are an
# offset into an XOR code book. http://titanfiesta.googlecode.com/svn/trunk/TitanFiesta/Common/XorTable.h.
match fiesta-online m|^\x04\x07\x08..$| p/Fiesta Online game server/

match filemaker-xdbc m|^2\0TY\xb8\xd5\xbbH:x\x03\^v\xd5\xdf\x15Rgc\xd7\x1a\x067\(/\xbf\xc73\t\?3\x85\x9d\x92ne\x0bh\xbe\x8a\]\xdf!\x14xA\xbc\xb6\xe9_| p/FileMaker xDBC/
match filemaker-xdbc m|^2\0\0\0\xc3\x0b.\0\0\0([\d.]+) on Mac OS X ([\d.]+) \(([\w_]+)\)\0\0\0\0\0|s p/FileMaker xDBC/ v/$1/ i/$3/ o/Mac OS X $2/ cpe:/o:apple:mac_os_x:$2/

# protocol version can be mapped to Dashboard version, but not sure of backwards compatibility
match filenet-pch m|^protocol\x08([\d.]+)\napp_name\x08TMS\napp_version\x08([\d.]+)\nhostname\x08(\S+)\nos\.arch\x08\S+\npagesize\x08\d+\nprocessors\x08\d+\nos\.name\x08(\S+)\nos\.version\x08(\S+)\ntime\x08\d+\n\n| p/IBM FileNet System Manager Dashboard/ i/protocol: $1; app: Datacap Taskmaster Capture $2/ o/$4 $5/ h/$3/ cpe:/a:ibm:datacap:$2/ cpe:/a:ibm:filenet_system_manager_dashboard/
# Softmatch for other apps
softmatch filenet-pch m|^protocol\x08([\d.]+)\napp_name\x08(\S+)\napp_version\x08([\d.]+)\nhostname\x08(\S+)\nos\.arch\x08\S+\npagesize\x08\d+\nprocessors\x08\d+\nos\.name\x08(\S+)\nos\.version\x08(\S+)\ntime\x08\d+\n\n| p/IBM FileNet System Manager Dashboard/ i/protocol: $1; app: $2 $3/ o/$5 $6/ h/$4/ cpe:/a:ibm:filenet_system_manager_dashboard/

# TODO: extract server build number from 6th byte and figure out what 5th byte represents.
match filezilla m|^FZS\0\x04..\t\0\0\x04\0\x0d\x01\0\0\x14\0\0\0\0\x08.{18}| p/FileZilla Server admin service/ v/0.9.X/ i/protocol version 1.13/ cpe:/a:filezilla-project:filezilla_server:0.9/
match filezilla m|^FZS\0\x04..\t\0\0\x04\0\x0b\x01\0\0\x14\0\0\0\0\x08.{18}| p/FileZilla Server admin service/ v/0.9.X/ i/protocol version 1.11/ cpe:/a:filezilla-project:filezilla_server:0.9/
softmatch filezilla m|^FZS\0\x04...\0\0\x04\0..\0\0.| p/FileZilla Server admin service/ cpe:/a:filezilla-project:filezilla_server/

match finger m|\r\n {4}Line {5,8}User {6,8}Host\(s\) {13,18}Idle +Location\r\n| p/Cisco fingerd/ d/router/ o/IOS/ cpe:/o:cisco:ios/a
match finger m|^OpenLDAP Finger Service\.\.\.\r\n| p/OpenLDAP fingerd/ cpe:/a:openldap:openldap/
match finger m|^No cfingerd\.conf file present\.  Check your setup\.\n$| p/cfingerd/ i/Broken/
match finger m|^Windows NT Version ([\d.]+) build (\d+), \d+ processors? \(.*\)\r\nFingerDW V([\d.]+) - Hummingbird Ltd\.\n| p/Hummingbird fingerd/ v/$3/ i/WinNT $1 build $2/ o/Windows NT/ cpe:/o:microsoft:windows_nt:$1/
match finger m|^\r\nIntegrated port\r\nPrinter Type: Lexmark T642\r\nPrint Job Status:| p/Lexmark T642 printer fingerd/ d/printer/ cpe:/h:lexmark:t642/a

match firewall m|^Your connection to this server has been blocked in this server's firewall\.\r\nYou need to contact the server owner for further information\.\r\nYour blocked IP address is .*\r\nThis server's hostname is ([\w._-]+)\r\n$| p/ConfigServer Security & Firewall/ i/blocked/ h/$1/

# Not sure what this protocol is
match fortinet-sso m|^\0\0\0.\x80\x06\0\0\0\n\x01\x03\0\x03V.\0\0\0\n\x10\x03\0\0\0\x02\0\0\0\x13\x11\x05FSSO ([\d.]+)\0\0\0\x16\x12\x01.{16}\0\0\0\x17\x13\x01FSAE_SERVER_10001|s p/Fortinet SSO Collector Agent/ v/$1/
match fortinet-sso m|^\0\0\0.\x80\x06\0\0\0\n\x01\x03\0\0\0\0\0\0\0\n\x10\x03\0\0\0\0\0\0\0\x15\x11\x05FSAE server ([\d.]+)\0\0\0[\x06\x16]\x12\x05\0*\0\0\0\x17\x13\x05FSAE_SERVER_10001|s p/Fortinet FSAE Server/ v/$1/

# http://flightsim.apollo3.com/
match fsd m|^\$ERSERVER::004::Syntax error\r\n| p/FSD Flight Simulator/

match freevcs m|^Welcome to FreeVCS MSSQL NT Service\r\n| p/FreeVCS/ i/MSSQL/ o/Windows/ cpe:/o:microsoft:windows/a
match freevcs m|^Welcome to FreeVCS DBISAM NT Service\r\n| p/FreeVCS/ i/DBISAM/ o/Windows/ cpe:/o:microsoft:windows/a
match freevcs m|^Welcome to FreeVCS Test NT Service\r\n| p/FreeVCS/ o/Windows/ cpe:/o:microsoft:windows/a

# http://www.frozen-bubble.org/servers/servers.php
match frozen-bubble m|^FB/([\d.]+) PUSH: SERVER_READY ([\w._-]+) (\w+)\n| p/Frozen Bubble game server/ v/$1/ i/language: $3/ h/$2/

match file-replication m|^>>\n\0\x0eFRP Node Ready>>\n\0\x0e| p/File Replication Pro/

match freedoko m|^FreeDoko server\n\d+\.\d+: name: ([^\n]+)\n| p/FreeDoko game server/ i/name: $1/

match ftp m|^220 ([-/.+\w]+) FTP server \(SecureTransport (\d[-.\w]+)\) ready\.\r\n| p/Tumbleweed SecureTransport ftpd/ v/$2/ h/$1/ cpe:/a:tumbleweed:securetransport:$2/
match ftp m|^220 ([-/.+\w]+) FTP server \(SecureTransport (\d[-.\w]+)\) ready\.    \r\n| p/Axway SecureTransport ftpd/ v/$2/ h/$1/ cpe:/a:axway:securetransport:$2/
match ftp m|^220 3Com 3CDaemon FTP Server Version (\d[-.\w]+)\r\n| p/3Com 3CDaemon ftpd/ v/$1/
match ftp m|^220 3Com FTP Server Version ([-\w_.]+)\r\n| p/3Com ftpd/ v/$1/
# GuildFTP 0.999.9 on Windows
match ftp m|^220-GuildFTPd FTP Server \(c\) \d\d\d\d(?:-\d\d\d\d)?\r\n220-Version (\d[-.\w]+)\r\n| p/Guild ftpd/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match ftp m|^220-.*\r\n220 Please enter your name:\r\n| p/GuildFTPd/ o/Windows/ cpe:/o:microsoft:windows/a
# Medusa Async V1.21 [experimental] on Linux 2.4
match ftp m|^220 ([-/.+\w]+) FTP server \(Medusa Async V(\d[^\)]+)\) ready\.\r\n| p/Medusa Async ftpd/ v/$2/ h/$1/
match ftp m|^220 ([-/.+\w]+)\((\d[-.\w]+)\) FTP server \(EPSON ([^\)]+)\) ready\.\r\n| p/Epson printer ftpd/ v/$2/ i/Epson $3/ d/printer/ h/$1/
match ftp m|^220 ([-/.+\w]+) IBM TCP/IP for OS/2 - FTP Server [Vv]er \d+:\d+:\d+ on [A-Z]| p|IBM OS/2 ftpd| o|OS/2| h/$1/ cpe:/a:ibm:os2_ftp_server/ cpe:/o:ibm:os2/
match ftp m|^220 ([-/.+\w]+) IBM TCP/IP f\xfcr OS/2 - FTP-Server [Vv]er \d+:\d+:\d+ .* bereit\.\r\n| p|IBM OS/2 ftpd| i/German/ o|OS/2| h/$1/ cpe:/a:ibm:os2_ftp_server::::de/ cpe:/o:ibm:os2/
match ftp m|^220 Internet Rex (\d[-.\w ]+) \(([-/.+\w]+)\) FTP server awaiting your command\.\r\n| p/Internet Rex ftpd/ v/$1/ i/$2/
match ftp m|^530 Connection refused, unknown IP address\.\r\n$| p/Microsoft IIS ftpd/ i/IP address rejected/ o/Windows/ cpe:/a:microsoft:internet_information_services/ cpe:/o:microsoft:windows/a
match ftp m|^220 IIS ([\w._-]+) FTP\r\n| p/Microsoft IIS ftpd/ v/$1/ o/Windows/ cpe:/a:microsoft:internet_information_services:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220 PizzaSwitch FTP server ready\r\n| p/Xylan PizzaSwitch ftpd/
match ftp m|^220 ([-.+\w]+) IronPort FTP server \(V([-.\w]+)\) ready\.\r\n| p/IronPort mail appliance ftpd/ v/$2/ h/$1/
match ftp m|^220 ([-.+\w]+) IronPort FTP server \(V([-.\w]+)\) ready\r\n| p/IronPort firewall ftpd/ v/$2/ h/$1/
match ftp m|^220 ([-.+\w]+) Cisco IronPort FTP server \(V([-.\w]+)\) ready\r\n| p/Cisco IronPort mail appliance ftpd/ v/$2/ h/$1/
match ftp m|^220 WFTPD (\d[-.\w]+) service \(by Texas Imperial Software\) ready for new user\r\n| p/Texas Imperial Software WFTPD/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match ftp m|^220.*\r\n220 WFTPD (\d[-.\w]+) service \(by Texas Imperial Software\) ready for new user\r\n|s p/Texas Imperial Software WFTPD/ v/$1/ o/Windows/ cpe:/o:microsoft:windows/a
match ftp m|^220 ([-.+\w]+) FTP server \(Version (MICRO-[-.\w:#+ ]+)\) ready\.\r\n| p/Bay Networks MicroAnnex terminal server ftpd/ v/$2/ d/terminal server/ h/$1/
match ftp m|^220 ([-.+\w]+) FTP server \(Digital UNIX Version (\d[-.\w]+)\) ready\.\r\n| p/Digital UNIX ftpd/ v/$2/ o/Digital UNIX/ h/$1/ cpe:/o:dec:digital_unix/a
match ftp m|^220 ([-.+\w]+) FTP server \(Version [\d.]+\+Heimdal (\d[-+.\w ]+)\) ready\.\r\n| p/Heimdal Kerberized ftpd/ v/$2/ o/Unix/ h/$1/
match ftp m|^500 OOPS: (could not bind listening IPv4 socket)\r\n$| p/vsftpd/ i/broken: $1/ o/Unix/ cpe:/a:vsftpd:vsftpd/
match ftp m|^500 OOPS: vsftpd: (.*)\r\n| p/vsftpd/ i/broken: $1/ o/Unix/ cpe:/a:vsftpd:vsftpd/
match ftp m|^220-QTCP at ([-.\w]+)\r\n220| p|IBM OS/400 FTPd| o|OS/400| h/$1/ cpe:/o:ibm:os_400/a
match ftp m|^220[- ]FileZilla Server version (\d[-.\w ]+)\r\n| p/FileZilla ftpd/ v/$1/ o/Windows/ cpe:/a:filezilla-project:filezilla_server:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220 ([-\w_.]+) running FileZilla Server version (\d[-.\w ]+)\r\n| p/FileZilla ftpd/ v/$2/ o/Windows/ h/$1/ cpe:/a:filezilla-project:filezilla_server:$2/ cpe:/o:microsoft:windows/a
match ftp m|^220 FTP Server - FileZilla\r\n| p/FileZilla ftpd/ o/Windows/ cpe:/a:filezilla-project:filezilla_server/ cpe:/o:microsoft:windows/a
match ftp m|^220-Welcome to ([A-Z]+) FTP Service\.\r\n220 All unauthorized access is logged\.\r\n| p/FileZilla ftpd/ o/Windows/ h/$1/ cpe:/a:filezilla-project:filezilla_server/ cpe:/o:microsoft:windows/a
match ftp m|^220.*\r\n220[- ]FileZilla Server version (\d[-.\w ]+)\r\n|s p/FileZilla ftpd/ v/$1/ o/Windows/ cpe:/a:filezilla-project:filezilla_server:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220-.*\r\n220-\r\n220 using FileZilla FileZilla Server version ([^\r\n]+)\r\n|s p/FileZilla ftpd/ v/$1/ o/Windows/ cpe:/a:filezilla-project:filezilla_server:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220-FileZilla Server\r\n| p/FileZilla ftpd/ o/Windows/ cpe:/a:filezilla-project:filezilla_server/ cpe:/o:microsoft:windows/a
match ftp m|^220 FileZilla Server (\d[\w.]+)\r\n| p/FileZilla ftpd/ v/$1/ o/Windows/ cpe:/a:filezilla-project:filezilla_server:$1/ cpe:/o:microsoft:windows/a
match ftp m|^431 Could not initialize SSL connection\r\n| p/FileZilla ftpd/ i/Mandatory SSL/ o/Windows/ cpe:/a:filezilla-project:filezilla_server/ cpe:/o:microsoft:windows/a
match ftp m|^550 No connections allowed from your IP\r\n| p/FileZilla ftpd/ i/IP blocked/ o/Windows/ cpe:/a:filezilla-project:filezilla_server/ cpe:/o:microsoft:windows/a
# Netgear RP114 switch with integrated ftp server or ZyXel P2302R VoIP
match ftp m|^220  FTP version 1\.0 ready at | p/Netgear broadband router or ZyXel VoIP adapter ftpd/ v/1.0/
match ftp m|^220 ([\w._-]+) FTP version 1\.0 ready at | p/Netgear broadband router or ZyXel VoIP adapter ftpd/ v/1.0/ h/$1/
match ftp m|^220 \(none\) FTP server \(GNU inetutils ([\w._-]+)\) ready\.\r\n| p/GNU Inetutils FTPd/ v/$1/ cpe:/a:gnu:inetutils:$1/
match ftp m|^220 ([-.\w]+) FTP server \(GNU inetutils (\d[-.\w ]+)\) ready\.\r\n| p/GNU Inetutils FTPd/ v/$2/ h/$1/ cpe:/a:gnu:inetutils:$2/
match ftp m|^220 FTP server \(GNU inetutils ([\w._-]+)\) ready\.\r\n| p/GNU Inetutils FTPd/ v/$1/ cpe:/a:gnu:inetutils:$1/
match ftp m|^220 .* \(glftpd (\d[-.0-9a-zA-Z]+)_(\w+)(?:\+TLS)?\) ready\.\r\n| p/glFTPd/ v/$1/ i/$2/ o/Unix/
match ftp m|^220 .* \(glFTPd (\d[-.0-9a-zA-Z]+)_(\w+) Linux\+TLS\) ready\.?\r\n| p/glFTPd/ v/$1/ i/$2/ o/Linux/ cpe:/o:linux:linux_kernel/a
match ftp m|^220 .* \(glFTPd (\d[-.0-9a-zA-Z]+) Linux\+TLS\) ready\.\r\n| p/glFTPd/ v/$1/ o/Linux/ cpe:/o:linux:linux_kernel/a
match ftp m|^220 .* \(glFTPd (\d[-.0-9a-zA-Z]+) FreeBSD\+TLS\) ready\.\r\n| p/glFTPd/ v/$1/ o/FreeBSD/ cpe:/o:freebsd:freebsd/a
match ftp m|^220 ([-.\w]+) FTP server \(FirstClass v(\d[-.\w]+)\) ready\.\r\n| p/FirstClass FTP server/ v/$2/ h/$1/ cpe:/a:opentext:firstclass:$2/
match ftp m|^220 ([-.\w]+) FTP server \(Compaq Tru64 UNIX Version (\d[-.\w]+)\) ready\.\r\n| p/Compaq Tru64 ftp server/ v/$2/ o/Tru64 UNIX/ h/$1/ cpe:/o:compaq:tru64/a

match ftp m|^220 Axis ([\w._ -]+) Network Camera(?: version)? (\d\S+) \((.*)\) ready\.\r\n|i p/Axis $1 Network Camera ftpd/ v/$2/ i/$3/ d/webcam/ cpe:/h:axis:$1_network_camera/
match ftp m|^220 Axis ([\w._ -]+) Network Camera ([\w._-]+ \(\w+ \d+ \d+\)) ready\.\r\n| p/Axis $1 Network Camera ftpd/ v/$2/ d/webcam/ cpe:/h:axis:$1_network_camera/
match ftp m|^220 AXIS ([\w._ -]+) Network Camera ([\w._-]+ \(\w+ \d+ \d+\)) ready\.\r\n| p/Axis $1 Network Camera ftpd/ v/$2/ d/webcam/ cpe:/h:axis:$1_network_camera/
match ftp m|^220 Axis ([\w._ -]+) Network Camera ([\w._-]+) \w+ \d+ \d+ ready\.\r\n| p/Axis $1 Network Camera ftpd/ v/$2/ d/webcam/ cpe:/h:axis:$1_network_camera/
match ftp m|^220 AXIS ([\w._ -]+) Video Encoder ([\w._-]+ \(\w+ \d+ \d+\)) ready\.\r\n| p/Axis $1 Video Encoder ftpd/ v/$2/ d/media device/ cpe:/h:axis:$1_video_encoder/
match ftp m|^220 AXIS ([-.\w]+) FTP Network Print Server V(\d[-.\w]+) [A-Z][a-z]| p/Axis network print server ftpd/ v/$2/ i/Model $1/ d/print server/
match ftp m|^220 AXIS ([\d\w]+)V(\d\S+) (.*?) ready\.\n| p/AXIS $1 Webcam ftpd/ v/$2/ i/$3/ d/webcam/ cpe:/h:axis:$1/a
match ftp m|^220 AXIS ([+\d]+) Video Server ?(\d\S+) (.*?) ready\.| p/AXIS $1 Video Server ftpd/ v/$2/ i/$3/
match ftp m|^220 AXIS (\w+) Video Server (\d\S+) \(.*\) ready\.\r\n| p/AXIS $1 Video Server ftpd/ v/$2/
match ftp m|^220 AXIS 205 version ([\d.]+) \(.*\) ready\.\r\n| p/AXIS 205 Network Video ftpd/ v/$1/ d/webcam/
match ftp m|^220 AXIS 250S MPEG-2 Video Server ([\d.]+) \([^)]+\) ready\.\r\n| p/AXIS 250S Network Video ftpd/ v/$1/ d/webcam/
match ftp m|^220 AXIS (\w+) Video Server ([\d.]+) \([^)]+\) ready\.\r\n| p/AXIS $1 Video Server ftpd/ v/$2/ d/media device/
match ftp m|^220 AXIS (\w+) Video Server Blade ([\w._-]+) \([^)]+\) ready\.\r\n| p/AXIS $1 Video Server Blade ftpd/ v/$2/ d/media device/
match ftp m|^220 AXIS StorPoint CD E100 CD-ROM Server V([\d.]+) .*  ready\.\r\n| p/AXIS StorPoint E100 CD-ROM Server ftpd/ v/$1/ d/storage-misc/ cpe:/h:axis:storpoint_cd_e100/
match ftp m|^220 AXIS (.+) FTP Network Print Server V([-\w_.]+) | p/AXIS $1 print server ftpd/ v/$2/ d/print server/ cpe:/h:axis:$1/a
match ftp m|^220 AXIS ([\d/+]+) FTP Print Server V([-\w_.]+) | p/AXIS $1 print server ftpd/ v/$2/ d/print server/ cpe:/h:axis:$1/a
match ftp m|^220 AXIS (\w+) Network Fixed Dome Camera (.*) ready\.\r\n| p/AXIS $1 camera ftpd/ v/$2/ d/webcam/

match ftp m|^220-Cerberus FTP Server Personal Edition\r\n220-UNREGISTERED\r\n| p/Cerberus FTP Server/ i/Personal Edition; Unregistered/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^220-Cerberus FTP Server - Personal Edition\r\n220-This is the UNLICENSED personal edition and may be used for home, personal use only\r\n220-Welcome to Cerberus FTP Server\r\n220 Created by Cerberus, LLC\r\n| p/Cerberus FTP Server/ i/Personal Edition; Unregistered/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^220-Cerberus FTP Server - Personal Edition\r\n220-This is the UNLICENSED personal edition and may be used for home, personal use only\r\n220 Connected to Aurora FTP server\.\.\.\r\n| p/Cerberus FTP Server/ i/Personal Edition; Unregistered/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^220-Cerberus FTP Server - Personal Edition\r\n220-UNREGISTERED\r\n220-Welcome to Cerberus FTP Server\r\n220 Created by Grant Averett\r\n| p/Cerberus FTP Server/ i/Personal Edition; Unregistered/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^220-Welcome to Cerberus FTP Server\r\n220 Created by Grant Averett\r\n| p/Cerberus ftpd/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^421-Not currently accepting logins at this address\. Try back \r\n421 later\.\r\n| p/Cerberus ftpd/ i/banned/ o/Windows/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a
match ftp m|^220 Welkom@([\w._-]+)\r\n521 Not logged in - Secure authentication required\r\n| p/Cerberus ftpd/ o/Windows/ h/$1/ cpe:/a:cerberusftp:ftp_server/ cpe:/o:microsoft:windows/a

match ftp m|^220 FTP print service:V-(\d[-.\w]+)/Use the network password for the ID if updating\.\r\n| p|Brother/HP printer ftpd| v/$1/ d/printer/
match ftp m|^220- APC FTP server ready\.\r\n220 \r\n$| p/APC ftp server/ d/power-device/
# HP-UX 10.x or AIX
match ftp m|^220 ([-\w]+) FTP server \(Version (\d[\w._-]+) [A-Z][a-z]{2} [A-Z][a-z]{2} .*\) ready\.\r\n| p/HP-UX or AIX ftpd/ v/$2/ o/Unix/ h/$1/
match ftp m|^220 Serveur FTP ([\w.-]+) \(Version ([\d.]+) [\w: ]+\) pr\xeat\.\r\n| p/HP-UX or AIX ftpd/ v/$2/ i/French/ h/$1/
match ftp m|^220[- ]Roxen FTP server running on Roxen (\d[-.\w]+)/Pike (\d[-.\w]+)\r\n| p/Roxen ftp server/ v/$1/ i/Pike $2/
# Debian packaged oftpd 0.3.6-51 on Linux 2.6.0-test4 Debian
match ftp m|^220 Service ready for new user\.\r\n| p/oftpd/ o/Unix/
# Mac OS X Client 10.2.6 built-in ftpd
match ftp m|^220[ -].*FTP server \(lukemftpd (\d[-. \w]+)\) ready\.\r\n|s p/LukemFTPD/ v/$1/ o/Mac OS X/ cpe:/o:apple:mac_os_x/a
match ftp m|^220.*Microsoft FTP Service \(Version (\d[^)]+)| p/Microsoft ftpd/ v/$1/ o/Windows/ cpe:/a:microsoft:ftp_service:$1/ cpe:/o:microsoft:windows/a
# This lame version doesn't give a version number
# Windows 2003
match ftp m|^220[ -]Microsoft FTP Service\r\n| p/Microsoft ftpd/ o/Windows/ cpe:/a:microsoft:ftp_service/ cpe:/o:microsoft:windows/a
match ftp m|^220[ -]Serv-U FTP[ -]Server v([\w._-]+) | p/Serv-U ftpd/ v/$1/ o/Windows/ cpe:/a:serv-u:serv-u:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220-Serv-U FTP Server for Winsock\r\n| p/Serv-U ftpd/ o/Windows/ cpe:/a:serv-u:serv-u/ cpe:/o:microsoft:windows/a
match ftp m|^220 Serv-U FTP-Server v([-\w_.]+ build \d+) for WinSock ready\.\.\.\r\n| p/Serv-U ftpd/ v/$1/ o/Windows/ cpe:/a:serv-u:serv-u:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220-FTP Server v([\d.]+) for WinSock ready\.| p/Serv-U ftpd/ v/$1/ o/Windows/ cpe:/a:serv-u:serv-u:$1/ cpe:/o:microsoft:windows/a
match ftp m|^220-SECURE FTP SERVER VERSION ([\d.]+) \(([-\w_.]+)\)\r\n| p/Serv-U ftpd/ v/$1/ i/Name $2/ o/Windows/ cpe:/a:serv-u:serv-u:$1/ cpe:/o:microsoft:windows/a
match ftp m|^431 Unable to negotiate secure command connection\.\r\n| p/Serv-U ftpd/ i/SSL Required/ o/Windows/ cpe:/a:serv-u:serv-u/ cpe:/o:microsoft:windows/a
match ftp m|^220-Sambar FTP Server Version (\d\S+)\x0d\x0a| p/Sambar ftpd/ v/$1/ cpe:/a:sambar:sambar_server:$1/
# Sambar server V5.3 on Windows NT
match ftp m|^220-FTP Server ready\r\n220-Use USER user@host for native FTP proxy\r\n220 Your FTP Session will expire after 300 seconds of inactivity\.\r\n| p/Sambar ftpd/ cpe:/a:sambar:sambar_server/
match ftp m|^220 JD FTP Server Ready| p/HP JetDirect ftpd/ d/print server/
match ftp m|^220.*Check Point FireWall-1 Secure FTP server running on|s p/Check Point Firewall-1 ftpd/ d/firewall/ cpe:/a:checkpoint:firewall-1/
match ftp m|^220[- ].*FTP server \(Version (wu-[-.\w]+)|s p/WU-FTPD/ v/$1/ o/Unix/ cpe:/a:redhat:wu_ftpd:$1/
match ftp m|^220-\r\n220 ([-.\w]+) FTP server \(Version ([-.+\w()]+)\) ready\.\r\n$| p/WU-FTPD/ v/$2/ o/Unix/ h/$1/ cpe:/a:redhat:wu_ftpd:$2/
match ftp m|^220 ([-.\w]+) FTP server \(Revision ([\d.]+) Version wuftpd-([-.+\w()]+) [^)]*\) ready\.\r\n$| p/WU-FTPD/ v/$3/ i/revision $2/ o/Unix/ h/$1/ cpe:/a:redhat:wu_ftpd:$3/
match ftp m|^220 ([-.\w]+) FTP server \(Version ([-.+\w()]+)\) ready\.\r\n$| p/WU-FTPD or MIT Kerberos ftpd/ v/$2/ o/Unix/ h/$1/

# ProFTPd 1.2.5
match ftp m|^220  Server \(ProFTPD\) \[([-.\w]+)\]\r\n| p/ProFTPD/ o/Unix/ h/$1/ cpe:/a:proftpd:proftpd/a
match ftp m|^220 ProFTPD (\d\S+) Server| p/ProFTPD/ v/$1/ o/Unix/ cpe:/a:proftpd:proftpd:$1/a
match ftp m|^220 FTP Server \[([-\w_.]+)\]\r\n| p/ProFTPD/ o/Unix/ h/$1/ cpe:/a:proftpd:proftpd/a
match ftp m|^220 ([-\w_.]+) FTP server ready\r\n| p/ProFTPD/ o/Unix/ h/$1/ cpe:/a:proftpd:proftpd/a
match ftp m|^220.*ProFTP[dD].*Server ready| p/ProFTPD/ o/Unix/ cpe:/a:proftpd:proftpd/a
match ftp m|^220 ProFTP Server Ready\r\n| p/ProFTPD/ o/Unix/ cpe:/a:proftpd:proftpd/a
match ftp m|^220 ProFTP Ready\r\n| p/ProFTPD/ o/Unix/ cpe:/a:proftpd:proftpd/a
match ftp m|^220 Welcome @ my\.ftp\.org\r\n$| p/ProFTPD/ o/Unix/ cpe:/a:proftpd:proftpd/a
match ftp m|^220-.*\r\n220 ProFTPD ([\d.]+) Server|s p/ProFTPD/ v/$1/ o/Unix/ cpe:/a:proftpd:proftpd:$1/a
match ft
gitextract_idmpnoum/

├── .github/
│   ├── conf/
│   │   └── .goreleaser.yml
│   └── workflows/
│       └── release.yml
├── .gitignore
├── LICENSE
├── README.en.md
├── README.md
├── app/
│   ├── type-args.go
│   ├── type-config.go
│   ├── type-csvwriter.go
│   └── type-jsonwriter.go
├── core/
│   ├── appfinger/
│   │   ├── appfinger.go
│   │   ├── appfinger_test.go
│   │   ├── database.go
│   │   ├── gorpc/
│   │   │   ├── rpc.go
│   │   │   └── rpc_test.go
│   │   ├── httpfinger/
│   │   │   └── http.go
│   │   ├── iconhash/
│   │   │   └── iconhash.go
│   │   ├── type-banner.go
│   │   └── type-fingerprint.go
│   ├── gonmap/
│   │   ├── gonmap.go
│   │   ├── gonmap_test.go
│   │   ├── nmap-customize-probes.go
│   │   ├── nmap-service-probes.go
│   │   ├── nmap-services.go
│   │   ├── simplenet/
│   │   │   ├── send_test.go
│   │   │   └── simplenet.go
│   │   ├── type-fingerprint.go
│   │   ├── type-match.go
│   │   ├── type-nmap.go
│   │   ├── type-portlist.go
│   │   ├── type-probe.go
│   │   ├── type-probelist.go
│   │   └── type-response.go
│   ├── hydra/
│   │   ├── cracker.go
│   │   ├── default_common_passwords.go
│   │   ├── default_ftp_authlist.go
│   │   ├── default_mssql_authlist.go
│   │   ├── default_mysql_authlist.go
│   │   ├── default_oracle_authlist.go
│   │   ├── default_postgresql_authlist.go
│   │   ├── default_rdp_authlist.go
│   │   ├── default_redis_authlist.go
│   │   ├── default_smb_authlist.go
│   │   ├── default_ssh_authlist.go
│   │   ├── default_telnet_authlist.go
│   │   ├── defuault_mongodb_authlist.go
│   │   ├── ftp/
│   │   │   └── ftp.go
│   │   ├── hydra.go
│   │   ├── mongodb/
│   │   │   └── mongodb.go
│   │   ├── mssql/
│   │   │   └── mssql.go
│   │   ├── mysql/
│   │   │   └── mysql.go
│   │   ├── oracle/
│   │   │   ├── oracle.go
│   │   │   └── oracle_test.go
│   │   ├── postgresql/
│   │   │   └── postgresql.go
│   │   ├── rdp/
│   │   │   └── grdp.go
│   │   ├── redis/
│   │   │   └── redis.go
│   │   ├── smb/
│   │   │   ├── smb.go
│   │   │   └── smb_test.go
│   │   ├── ssh/
│   │   │   └── ssh.go
│   │   ├── telnet/
│   │   │   └── telnet.go
│   │   ├── type-auth.go
│   │   ├── type-authinfo.go
│   │   ├── type-authlist.go
│   │   └── web/
│   │       └── web.go
│   ├── pocScan/
│   │   ├── POC.go
│   │   ├── Plugins/
│   │   │   ├── ActiveMQ.go
│   │   │   ├── Cassandra.go
│   │   │   ├── Elasticsearch.go
│   │   │   ├── FcgiScan.go
│   │   │   ├── IMAP.go
│   │   │   ├── InfoScan.go
│   │   │   ├── Kafka.go
│   │   │   ├── LDAP.go
│   │   │   ├── Memcached.go
│   │   │   ├── Modbus.go
│   │   │   ├── Neo4j.go
│   │   │   ├── NetBIOS.go
│   │   │   ├── POP3.go
│   │   │   ├── RabbitMQ.go
│   │   │   ├── Rsync.go
│   │   │   ├── SMTP.go
│   │   │   ├── SNMP.go
│   │   │   ├── SmbGhost.go
│   │   │   ├── VNC.go
│   │   │   ├── findnet.go
│   │   │   └── ms17010.go
│   │   ├── info/
│   │   │   └── rules.go
│   │   ├── lib/
│   │   │   ├── check.go
│   │   │   ├── client.go
│   │   │   ├── eval.go
│   │   │   ├── http.pb.go
│   │   │   ├── http.proto
│   │   │   ├── proxy.go
│   │   │   └── shiro.go
│   │   ├── pocs/
│   │   │   ├── 74cms-sqli-1.yml
│   │   │   ├── 74cms-sqli-2.yml
│   │   │   ├── 74cms-sqli.yml
│   │   │   ├── CVE-2017-7504-Jboss-serialization-RCE.yml
│   │   │   ├── CVE-2022-22947.yml
│   │   │   ├── CVE-2022-22954-VMware-RCE.yml
│   │   │   ├── CVE-2022-26134.yml
│   │   │   ├── Hotel-Internet-Manage-RCE.yml
│   │   │   ├── Struts2-062-cve-2021-31805-rce.yml
│   │   │   ├── active-directory-certsrv-detect.yml
│   │   │   ├── activemq-cve-2016-3088.yml
│   │   │   ├── activemq-default-password.yml
│   │   │   ├── airflow-unauth.yml
│   │   │   ├── alibaba-canal-default-password.yml
│   │   │   ├── alibaba-canal-info-leak.yml
│   │   │   ├── alibaba-nacos-v1-auth-bypass.yml
│   │   │   ├── alibaba-nacos.yml
│   │   │   ├── amtt-hiboss-server-ping-rce.yml
│   │   │   ├── apache-ambari-default-password.yml
│   │   │   ├── apache-axis-webservice-detect.yml
│   │   │   ├── apache-druid-cve-2021-36749.yml
│   │   │   ├── apache-flink-upload-rce.yml
│   │   │   ├── apache-httpd-cve-2021-40438-ssrf.yml
│   │   │   ├── apache-httpd-cve-2021-41773-path-traversal.yml
│   │   │   ├── apache-httpd-cve-2021-41773-rce.yml
│   │   │   ├── apache-kylin-unauth-cve-2020-13937.yml
│   │   │   ├── apache-nifi-api-unauthorized-access.yml
│   │   │   ├── apache-ofbiz-cve-2018-8033-xxe.yml
│   │   │   ├── apache-ofbiz-cve-2020-9496-xml-deserialization.yml
│   │   │   ├── aspcms-backend-leak.yml
│   │   │   ├── backup-file.yml
│   │   │   ├── bash-cve-2014-6271.yml
│   │   │   ├── bt742-pma-unauthorized-access.yml
│   │   │   ├── cacti-weathermap-file-write.yml
│   │   │   ├── chinaunicom-modem-default-password.yml
│   │   │   ├── cisco-cve-2020-3452-readfile.yml
│   │   │   ├── citrix-cve-2019-19781-path-traversal.yml
│   │   │   ├── citrix-cve-2020-8191-xss.yml
│   │   │   ├── citrix-cve-2020-8193-unauthorized.yml
│   │   │   ├── citrix-xenmobile-cve-2020-8209.yml
│   │   │   ├── coldfusion-cve-2010-2861-lfi.yml
│   │   │   ├── confluence-cve-2015-8399.yml
│   │   │   ├── confluence-cve-2019-3396-lfi.yml
│   │   │   ├── confluence-cve-2021-26084.yml
│   │   │   ├── confluence-cve-2021-26085-arbitrary-file-read.yml
│   │   │   ├── consul-rexec-rce.yml
│   │   │   ├── consul-service-rce.yml
│   │   │   ├── coremail-cnvd-2019-16798.yml
│   │   │   ├── couchcms-cve-2018-7662.yml
│   │   │   ├── couchdb-cve-2017-12635.yml
│   │   │   ├── couchdb-unauth.yml
│   │   │   ├── craftcms-seomatic-cve-2020-9757-rce.yml
│   │   │   ├── datang-ac-default-password-cnvd-2021-04128.yml
│   │   │   ├── dedecms-carbuyaction-fileinclude.yml
│   │   │   ├── dedecms-cve-2018-6910.yml
│   │   │   ├── dedecms-cve-2018-7700-rce.yml
│   │   │   ├── dedecms-guestbook-sqli.yml
│   │   │   ├── dedecms-membergroup-sqli.yml
│   │   │   ├── dedecms-url-redirection.yml
│   │   │   ├── discuz-ml3x-cnvd-2019-22239.yml
│   │   │   ├── discuz-v72-sqli.yml
│   │   │   ├── discuz-wechat-plugins-unauth.yml
│   │   │   ├── discuz-wooyun-2010-080723.yml
│   │   │   ├── django-CVE-2018-14574.yml
│   │   │   ├── dlink-850l-info-leak.yml
│   │   │   ├── dlink-cve-2019-16920-rce.yml
│   │   │   ├── dlink-cve-2019-17506.yml
│   │   │   ├── dlink-cve-2020-25078-account-disclosure.yml
│   │   │   ├── dlink-cve-2020-9376-dump-credentials.yml
│   │   │   ├── dlink-dsl-2888a-rce.yml
│   │   │   ├── docker-api-unauthorized-rce.yml
│   │   │   ├── docker-registry-api-unauth.yml
│   │   │   ├── dotnetcms-sqli.yml
│   │   │   ├── draytek-cve-2020-8515.yml
│   │   │   ├── druid-monitor-unauth.yml
│   │   │   ├── drupal-cve-2014-3704-sqli.yml
│   │   │   ├── drupal-cve-2018-7600-rce.yml
│   │   │   ├── drupal-cve-2019-6340.yml
│   │   │   ├── dubbo-admin-default-password.yml
│   │   │   ├── duomicms-sqli.yml
│   │   │   ├── dvr-cve-2018-9995.yml
│   │   │   ├── e-office-v10-sql-inject.yml
│   │   │   ├── e-office-v9-upload-cnvd-2021-49104.yml
│   │   │   ├── e-zkeco-cnvd-2020-57264-read-file.yml
│   │   │   ├── ecology-arbitrary-file-upload.yml
│   │   │   ├── ecology-filedownload-directory-traversal.yml
│   │   │   ├── ecology-javabeanshell-rce.yml
│   │   │   ├── ecology-springframework-directory-traversal.yml
│   │   │   ├── ecology-syncuserinfo-sqli.yml
│   │   │   ├── ecology-v8-sqli.yml
│   │   │   ├── ecology-validate-sqli.yml
│   │   │   ├── ecology-workflowcentertreedata-sqli.yml
│   │   │   ├── ecology-workflowservicexml.yml
│   │   │   ├── ecshop-cnvd-2020-58823-sqli.yml
│   │   │   ├── ecshop-collection-list-sqli.yml
│   │   │   ├── ecshop-login-sqli.yml
│   │   │   ├── ecshop-rce.yml
│   │   │   ├── eea-info-leak-cnvd-2021-10543.yml
│   │   │   ├── elasticsearch-cve-2014-3120.yml
│   │   │   ├── elasticsearch-cve-2015-1427.yml
│   │   │   ├── elasticsearch-cve-2015-3337-lfi.yml
│   │   │   ├── elasticsearch-cve-2015-5531.yml
│   │   │   ├── elasticsearch-unauth.yml
│   │   │   ├── etcd-unauth.yml
│   │   │   ├── etcd-v3-unauth.yml
│   │   │   ├── etouch-v2-sqli.yml
│   │   │   ├── exchange-cve-2021-26855-ssrf.yml
│   │   │   ├── eyou-rce.yml
│   │   │   ├── ezoffice-dpwnloadhttp.jsp-filedownload.yml
│   │   │   ├── f5-cve-2021-22986.yml
│   │   │   ├── f5-cve-2022-1388.yml
│   │   │   ├── f5-tmui-cve-2020-5902-rce.yml
│   │   │   ├── fangweicms-sqli.yml
│   │   │   ├── fckeditor-info.yml
│   │   │   ├── feifeicms-lfr.yml
│   │   │   ├── finecms-sqli.yml
│   │   │   ├── finereport-directory-traversal.yml
│   │   │   ├── finereport-v8-arbitrary-file-read.yml
│   │   │   ├── flexpaper-cve-2018-11686.yml
│   │   │   ├── flink-jobmanager-cve-2020-17519-lfi.yml
│   │   │   ├── fortigate-cve-2018-13379-readfile.yml
│   │   │   ├── frp-dashboard-unauth.yml
│   │   │   ├── gateone-cve-2020-35736.yml
│   │   │   ├── gilacms-cve-2020-5515.yml
│   │   │   ├── gitlab-graphql-info-leak-cve-2020-26413.yml
│   │   │   ├── gitlab-ssrf-cve-2021-22214.yml
│   │   │   ├── gitlist-rce-cve-2018-1000533.yml
│   │   │   ├── glassfish-cve-2017-1000028-lfi.yml
│   │   │   ├── go-pprof-leak.yml
│   │   │   ├── gocd-cve-2021-43287.yml
│   │   │   ├── h2-database-web-console-unauthorized-access.yml
│   │   │   ├── h3c-imc-rce.yml
│   │   │   ├── h3c-secparh-any-user-login.yml
│   │   │   ├── h5s-video-platform-cnvd-2020-67113-unauth.yml
│   │   │   ├── hadoop-yarn-unauth.yml
│   │   │   ├── hanming-video-conferencing-file-read.yml
│   │   │   ├── harbor-cve-2019-16097.yml
│   │   │   ├── hikvision-cve-2017-7921.yml
│   │   │   ├── hikvision-gateway-data-file-read.yml
│   │   │   ├── hikvision-info-leak.yml
│   │   │   ├── hikvision-intercom-service-default-password.yml
│   │   │   ├── hikvision-showfile-file-read.yml
│   │   │   ├── hikvision-unauthenticated-rce-cve-2021-36260.yml
│   │   │   ├── hjtcloud-arbitrary-fileread.yml
│   │   │   ├── hjtcloud-directory-file-leak.yml
│   │   │   ├── huawei-home-gateway-hg659-fileread.yml
│   │   │   ├── ifw8-router-cve-2019-16313.yml
│   │   │   ├── iis-put-getshell.yml
│   │   │   ├── influxdb-unauth.yml
│   │   │   ├── inspur-tscev4-cve-2020-21224-rce.yml
│   │   │   ├── jboss-cve-2010-1871.yml
│   │   │   ├── jboss-unauth.yml
│   │   │   ├── jeewms-showordownbyurl-fileread.yml
│   │   │   ├── jellyfin-file-read-cve-2021-21402.yml
│   │   │   ├── jenkins-cve-2018-1000600.yml
│   │   │   ├── jenkins-cve-2018-1000861-rce.yml
│   │   │   ├── jenkins-unauthorized-access.yml
│   │   │   ├── jetty-cve-2021-28164.yml
│   │   │   ├── jira-cve-2019-11581.yml
│   │   │   ├── jira-cve-2019-8442.yml
│   │   │   ├── jira-cve-2019-8449.yml
│   │   │   ├── jira-cve-2020-14179.yml
│   │   │   ├── jira-cve-2020-14181.yml
│   │   │   ├── jira-ssrf-cve-2019-8451.yml
│   │   │   ├── joomla-cnvd-2019-34135-rce.yml
│   │   │   ├── joomla-component-vreview-sql.yml
│   │   │   ├── joomla-cve-2015-7297-sqli.yml
│   │   │   ├── joomla-cve-2017-8917-sqli.yml
│   │   │   ├── joomla-cve-2018-7314-sql.yml
│   │   │   ├── joomla-ext-zhbaidumap-cve-2018-6605-sqli.yml
│   │   │   ├── jumpserver-unauth-rce.yml
│   │   │   ├── jupyter-notebook-unauthorized-access.yml
│   │   │   ├── kafka-manager-unauth.yml
│   │   │   ├── kibana-cve-2018-17246.yml
│   │   │   ├── kibana-unauth.yml
│   │   │   ├── kingdee-eas-directory-traversal.yml
│   │   │   ├── kingsoft-v8-default-password.yml
│   │   │   ├── kingsoft-v8-file-read.yml
│   │   │   ├── kong-cve-2020-11710-unauth.yml
│   │   │   ├── kubernetes-unauth.yml
│   │   │   ├── kyan-network-monitoring-account-password-leakage.yml
│   │   │   ├── landray-oa-custom-jsp-fileread.yml
│   │   │   ├── lanproxy-cve-2021-3019-lfi.yml
│   │   │   ├── laravel-cve-2021-3129.yml
│   │   │   ├── laravel-debug-info-leak.yml
│   │   │   ├── laravel-improper-webdir.yml
│   │   │   ├── maccms-rce.yml
│   │   │   ├── maccmsv10-backdoor.yml
│   │   │   ├── metinfo-cve-2019-16996-sqli.yml
│   │   │   ├── metinfo-cve-2019-16997-sqli.yml
│   │   │   ├── metinfo-cve-2019-17418-sqli.yml
│   │   │   ├── metinfo-file-read.yml
│   │   │   ├── metinfo-lfi-cnvd-2018-13393.yml
│   │   │   ├── minio-default-password.yml
│   │   │   ├── mongo-express-cve-2019-10758.yml
│   │   │   ├── mpsec-isg1000-file-read.yml
│   │   │   ├── msvod-sqli.yml
│   │   │   ├── myucms-lfr.yml
│   │   │   ├── nagio-cve-2018-10735.yml
│   │   │   ├── nagio-cve-2018-10736.yml
│   │   │   ├── nagio-cve-2018-10737.yml
│   │   │   ├── nagio-cve-2018-10738.yml
│   │   │   ├── natshell-arbitrary-file-read.yml
│   │   │   ├── netentsec-icg-default-password.yml
│   │   │   ├── netentsec-ngfw-rce.yml
│   │   │   ├── netgear-cve-2017-5521.yml
│   │   │   ├── nextjs-cve-2017-16877.yml
│   │   │   ├── nexus-cve-2019-7238.yml
│   │   │   ├── nexus-cve-2020-10199.yml
│   │   │   ├── nexus-cve-2020-10204.yml
│   │   │   ├── nexus-default-password.yml
│   │   │   ├── nexusdb-cve-2020-24571-path-traversal.yml
│   │   │   ├── nhttpd-cve-2019-16278.yml
│   │   │   ├── node-red-dashboard-file-read-cve-2021-3223.yml
│   │   │   ├── novnc-url-redirection-cve-2021-3654.yml
│   │   │   ├── nps-default-password.yml
│   │   │   ├── ns-asg-file-read.yml
│   │   │   ├── nsfocus-uts-password-leak.yml
│   │   │   ├── nuuo-file-inclusion.yml
│   │   │   ├── odoo-file-read.yml
│   │   │   ├── openfire-cve-2019-18394-ssrf.yml
│   │   │   ├── opentsdb-cve-2020-35476-rce.yml
│   │   │   ├── panabit-gateway-default-password.yml
│   │   │   ├── panabit-ixcache-default-password.yml
│   │   │   ├── pandorafms-cve-2019-20224-rce.yml
│   │   │   ├── pbootcms-database-file-download.yml
│   │   │   ├── php-cgi-cve-2012-1823.yml
│   │   │   ├── phpcms-cve-2018-19127.yml
│   │   │   ├── phpmyadmin-cve-2018-12613-file-inclusion.yml
│   │   │   ├── phpmyadmin-setup-deserialization.yml
│   │   │   ├── phpok-sqli.yml
│   │   │   ├── phpshe-sqli.yml
│   │   │   ├── phpstudy-backdoor-rce.yml
│   │   │   ├── phpstudy-nginx-wrong-resolve.yml
│   │   │   ├── phpunit-cve-2017-9841-rce.yml
│   │   │   ├── powercreator-arbitrary-file-upload.yml
│   │   │   ├── prometheus-url-redirection-cve-2021-29622.yml
│   │   │   ├── pulse-cve-2019-11510.yml
│   │   │   ├── pyspider-unauthorized-access.yml
│   │   │   ├── qibocms-sqli.yml
│   │   │   ├── qilin-bastion-host-rce.yml
│   │   │   ├── qizhi-fortressaircraft-unauthorized.yml
│   │   │   ├── qnap-cve-2019-7192.yml
│   │   │   ├── rabbitmq-default-password.yml
│   │   │   ├── rails-cve-2018-3760-rce.yml
│   │   │   ├── razor-cve-2018-8770.yml
│   │   │   ├── rconfig-cve-2019-16663.yml
│   │   │   ├── resin-cnnvd-200705-315.yml
│   │   │   ├── resin-inputfile-fileread-or-ssrf.yml
│   │   │   ├── resin-viewfile-fileread.yml
│   │   │   ├── rockmongo-default-password.yml
│   │   │   ├── ruijie-eg-cli-rce.yml
│   │   │   ├── ruijie-eg-file-read.yml
│   │   │   ├── ruijie-eg-info-leak.yml
│   │   │   ├── ruijie-eweb-rce-cnvd-2021-09650.yml
│   │   │   ├── ruijie-nbr1300g-cli-password-leak.yml
│   │   │   ├── ruijie-uac-cnvd-2021-14536.yml
│   │   │   ├── ruoyi-management-fileread.yml
│   │   │   ├── saltstack-cve-2020-16846.yml
│   │   │   ├── saltstack-cve-2021-25282-file-write.yml
│   │   │   ├── samsung-wea453e-default-pwd.yml
│   │   │   ├── samsung-wea453e-rce.yml
│   │   │   ├── samsung-wlan-ap-wea453e-rce.yml
│   │   │   ├── sangfor-ad-download.php-filedownload.yml
│   │   │   ├── sangfor-ba-rce.yml
│   │   │   ├── sangfor-edr-arbitrary-admin-login.yml
│   │   │   ├── sangfor-edr-cssp-rce.yml
│   │   │   ├── sangfor-edr-tool-rce.yml
│   │   │   ├── satellian-cve-2020-7980-rce.yml
│   │   │   ├── seacms-before-v992-rce.yml
│   │   │   ├── seacms-rce.yml
│   │   │   ├── seacms-sqli.yml
│   │   │   ├── seacms-v654-rce.yml
│   │   │   ├── seacmsv645-command-exec.yml
│   │   │   ├── secnet-ac-default-password.yml
│   │   │   ├── seeyon-a6-employee-info-leak.yml
│   │   │   ├── seeyon-a6-test-jsp-sql.yml
│   │   │   ├── seeyon-ajax-unauthorized-access.yml
│   │   │   ├── seeyon-cnvd-2020-62422-readfile.yml
│   │   │   ├── seeyon-oa-a8-m-information-disclosure.yml
│   │   │   ├── seeyon-oa-cookie-leak.yml
│   │   │   ├── seeyon-session-leak.yml
│   │   │   ├── seeyon-setextno-jsp-sql.yml
│   │   │   ├── seeyon-unauthoried.yml
│   │   │   ├── seeyon-wooyun-2015-0108235-sqli.yml
│   │   │   ├── seeyon-wooyun-2015-148227.yml
│   │   │   ├── shiro-key.yml
│   │   │   ├── shiziyu-cms-apicontroller-sqli.yml
│   │   │   ├── shopxo-cnvd-2021-15822.yml
│   │   │   ├── showdoc-default-password.yml
│   │   │   ├── showdoc-uploadfile.yml
│   │   │   ├── skywalking-cve-2020-9483-sqli.yml
│   │   │   ├── solarwinds-cve-2020-10148.yml
│   │   │   ├── solr-cve-2017-12629-xxe.yml
│   │   │   ├── solr-cve-2019-0193.yml
│   │   │   ├── solr-fileread.yml
│   │   │   ├── solr-velocity-template-rce.yml
│   │   │   ├── sonarqube-cve-2020-27986-unauth.yml
│   │   │   ├── sonicwall-ssl-vpn-rce.yml
│   │   │   ├── spark-api-unauth.yml
│   │   │   ├── spark-webui-unauth.yml
│   │   │   ├── spon-ip-intercom-ping-rce.yml
│   │   │   ├── spring-actuator-heapdump-file.yml
│   │   │   ├── spring-cloud-cve-2020-5405.yml
│   │   │   ├── spring-cloud-cve-2020-5410.yml
│   │   │   ├── spring-core-rce.yml
│   │   │   ├── spring-cve-2016-4977.yml
│   │   │   ├── springboot-cve-2021-21234.yml
│   │   │   ├── springboot-env-unauth.yml
│   │   │   ├── springcloud-cve-2019-3799.yml
│   │   │   ├── sql-file.yml
│   │   │   ├── struts2-045.yml
│   │   │   ├── struts2-046-1.yml
│   │   │   ├── supervisord-cve-2017-11610.yml
│   │   │   ├── swagger-ui-unauth.yml
│   │   │   ├── tamronos-iptv-rce.yml
│   │   │   ├── telecom-gateway-default-password.yml
│   │   │   ├── tensorboard-unauth.yml
│   │   │   ├── terramaster-cve-2020-15568.yml
│   │   │   ├── terramaster-tos-rce-cve-2020-28188.yml
│   │   │   ├── thinkadmin-v6-readfile.yml
│   │   │   ├── thinkcmf-lfi.yml
│   │   │   ├── thinkcmf-write-shell.yml
│   │   │   ├── thinkphp-v6-file-write.yml
│   │   │   ├── thinkphp5-controller-rce.yml
│   │   │   ├── thinkphp5023-method-rce.yml
│   │   │   ├── tianqing-info-leak.yml
│   │   │   ├── tomcat-cve-2017-12615-rce.yml
│   │   │   ├── tomcat-cve-2018-11759.yml
│   │   │   ├── tomcat-manager-weak.yml
│   │   │   ├── tongda-insert-sql-inject.yml
│   │   │   ├── tongda-meeting-unauthorized-access.yml
│   │   │   ├── tongda-oa-v11.9-api.ali.php-upload.yml
│   │   │   ├── tongda-user-session-disclosure.yml
│   │   │   ├── tongda-v2017-uploadfile.yml
│   │   │   ├── tpshop-directory-traversal.yml
│   │   │   ├── tpshop-sqli.yml
│   │   │   ├── tvt-nvms-1000-file-read-cve-2019-20085.yml
│   │   │   ├── typecho-rce.yml
│   │   │   ├── ueditor-cnvd-2017-20077-file-upload.yml
│   │   │   ├── uwsgi-cve-2018-7490.yml
│   │   │   ├── vbulletin-cve-2019-16759-bypass.yml
│   │   │   ├── vbulletin-cve-2019-16759.yml
│   │   │   ├── vmware-vcenter-arbitrary-file-read.yml
│   │   │   ├── vmware-vcenter-cve-2021-21985-rce.yml
│   │   │   ├── vmware-vcenter-unauthorized-rce-cve-2021-21972.yml
│   │   │   ├── vmware-vrealize-cve-2021-21975-ssrf.yml
│   │   │   ├── weaver-E-Cology-getSqlData-sqli.yml
│   │   │   ├── weaver-ebridge-file-read.yml
│   │   │   ├── weaver-oa-eoffice-v9-upload-getshell.yml
│   │   │   ├── weblogic-console-weak.yml
│   │   │   ├── weblogic-cve-2017-10271.yml
│   │   │   ├── weblogic-cve-2019-2725.yml
│   │   │   ├── weblogic-cve-2019-2729-1.yml
│   │   │   ├── weblogic-cve-2019-2729-2.yml
│   │   │   ├── weblogic-cve-2020-14750.yml
│   │   │   ├── weblogic-ssrf.yml
│   │   │   ├── webmin-cve-2019-15107-rce.yml
│   │   │   ├── weiphp-path-traversal.yml
│   │   │   ├── weiphp-sql.yml
│   │   │   ├── wifisky-default-password-cnvd-2021-39012.yml
│   │   │   ├── wordpress-cve-2019-19985-infoleak.yml
│   │   │   ├── wordpress-ext-adaptive-images-lfi.yml
│   │   │   ├── wordpress-ext-mailpress-rce.yml
│   │   │   ├── wuzhicms-v410-sqli.yml
│   │   │   ├── xdcms-sql.yml
│   │   │   ├── xiuno-bbs-cvnd-2019-01348-reinstallation.yml
│   │   │   ├── xunchi-cnvd-2020-23735-file-read.yml
│   │   │   ├── yapi-rce.yml
│   │   │   ├── yccms-rce.yml
│   │   │   ├── yonyou-grp-u8-sqli-to-rce.yml
│   │   │   ├── yonyou-grp-u8-sqli.yml
│   │   │   ├── yonyou-nc-arbitrary-file-upload.yml
│   │   │   ├── yonyou-nc-bsh-servlet-bshservlet-rce.yml
│   │   │   ├── yonyou-u8-oa-sqli.yml
│   │   │   ├── youphptube-encoder-cve-2019-5127.yml
│   │   │   ├── youphptube-encoder-cve-2019-5128.yml
│   │   │   ├── youphptube-encoder-cve-2019-5129.yml
│   │   │   ├── yungoucms-sqli.yml
│   │   │   ├── zabbix-authentication-bypass.yml
│   │   │   ├── zabbix-cve-2016-10134-sqli.yml
│   │   │   ├── zabbix-default-password.yml
│   │   │   ├── zcms-v3-sqli.yml
│   │   │   ├── zeit-nodejs-cve-2020-5284-directory-traversal.yml
│   │   │   ├── zeroshell-cve-2019-12725-rce.yml
│   │   │   ├── zimbra-cve-2019-9670-xxe.yml
│   │   │   └── zzcms-zsmanage-sqli.yml
│   │   └── webtitle.go
│   ├── scanner/
│   │   ├── type-client-exp.go
│   │   ├── type-client-httppoc.go
│   │   ├── type-client-hydra.go
│   │   ├── type-client-ip.go
│   │   ├── type-client-port.go
│   │   ├── type-client.go
│   │   ├── type-clinet-url.go
│   │   ├── type-config.go
│   │   └── type-response.go
│   ├── slog/
│   │   └── slog.go
│   ├── spy/
│   │   └── spy.go
│   └── stdio/
│       ├── chinese/
│       │   ├── chinese.go
│       │   └── chinese_test.go
│       └── stdio.go
├── go.mod
├── go.sum
├── lib/
│   ├── color/
│   │   ├── color.go
│   │   └── color_test.go
│   ├── dns/
│   │   ├── dns.go
│   │   └── dns_test.go
│   ├── gosmb/
│   │   ├── gosmb.go
│   │   └── gosmb_test.go
│   ├── gotelnet/
│   │   ├── telnet.go
│   │   └── telnet_test.go
│   ├── grdp/
│   │   ├── LICENSE
│   │   ├── README.md
│   │   ├── core/
│   │   │   ├── io.go
│   │   │   ├── io_test.go
│   │   │   ├── rle.go
│   │   │   ├── rle_test.go
│   │   │   ├── socket.go
│   │   │   ├── types.go
│   │   │   └── util.go
│   │   ├── emission/
│   │   │   └── emitter.go
│   │   ├── glog/
│   │   │   └── log.go
│   │   ├── grdp.go
│   │   ├── grdp_test.go
│   │   └── protocol/
│   │       ├── lic/
│   │       │   └── lic.go
│   │       ├── nla/
│   │       │   ├── cssp.go
│   │       │   ├── encode.go
│   │       │   ├── encode_test.go
│   │       │   ├── ntlm.go
│   │       │   └── ntlm_test.go
│   │       ├── pdu/
│   │       │   ├── caps.go
│   │       │   ├── cliprdr.go
│   │       │   ├── data.go
│   │       │   └── pdu.go
│   │       ├── rfb/
│   │       │   └── rfb.go
│   │       ├── sec/
│   │       │   └── sec.go
│   │       ├── t125/
│   │       │   ├── ber/
│   │       │   │   └── ber.go
│   │       │   ├── gcc/
│   │       │   │   └── gcc.go
│   │       │   ├── mcs.go
│   │       │   └── per/
│   │       │       └── per.go
│   │       ├── tpkt/
│   │       │   └── tpkt.go
│   │       └── x224/
│   │           └── x224.go
│   ├── misc/
│   │   ├── misc.go
│   │   └── misc_test.go
│   ├── osping/
│   │   └── osping.go
│   ├── pool/
│   │   ├── pool.go
│   │   └── pool_test.go
│   ├── sflag/
│   │   └── sflag.go
│   ├── simplehttp/
│   │   ├── simplehttp.go
│   │   └── simplehttp_test.go
│   ├── tcpping/
│   │   └── tcpping.go
│   └── uri/
│       └── uri.go
├── qscan.go
├── run/
│   └── run.go
└── static/
    └── fingerprint.txt
Condensed preview — 550 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (7,904K chars).
[
  {
    "path": ".github/conf/.goreleaser.yml",
    "chars": 1174,
    "preview": "before:\n  hooks:\n    - go mod tidy\nbuilds:\n  -\n    id: default\n    env:\n      - CGO_ENABLED=0\n    goos:\n      - windows..."
  },
  {
    "path": ".github/workflows/release.yml",
    "chars": 868,
    "preview": "name: goreleaser\n\non:\n  push:\n    tags:\n      - '*'\n\npermissions:\n  contents: write\n\njobs:\n  goreleaser:\n    runs-on: ub..."
  },
  {
    "path": ".gitignore",
    "chars": 7,
    "preview": ".idea/\n"
  },
  {
    "path": "LICENSE",
    "chars": 35149,
    "preview": "                    GNU GENERAL PUBLIC LICENSE\n                       Version 3, 29 June 2007\n\n Copyright (C) 2007 Free..."
  },
  {
    "path": "README.en.md",
    "chars": 1908,
    "preview": "<h1 align=\"center\"> Qscan </h1>\n\n<p align=\"center\">\n<img src=\"https://img.shields.io/badge/go-1.23-blue\"  alt=\"\"/>\n\n<p a..."
  },
  {
    "path": "README.md",
    "chars": 1058,
    "preview": "<h1 align=\"center\"> Qscan </h1>\n\n<p align=\"center\">\n<img src=\"https://img.shields.io/badge/go-1.23-blue\" />\n\n<p align=\"c..."
  },
  {
    "path": "app/type-args.go",
    "chars": 7454,
    "preview": "package app\n\nimport (\n\t\"Qscan/lib/sflag\"\n\t\"fmt\"\n\t\"github.com/gookit/color\"\n\t\"os\"\n\t\"strings\"\n\t\"time\"\n)\n\ntype args struct..."
  },
  {
    "path": "app/type-config.go",
    "chars": 11268,
    "preview": "package app\n\nimport (\n\t\"Qscan/core/hydra\"\n\t\"Qscan/core/slog\"\n\t\"Qscan/lib/misc\"\n\t\"encoding/csv\"\n\t\"os\"\n\t\"sync\"\n\t\"time\"\n)..."
  },
  {
    "path": "app/type-csvwriter.go",
    "chars": 819,
    "preview": "package app\n\nimport (\n\t\"encoding/csv\"\n\t\"sync\"\n)\n\ntype CSVWriter struct {\n\tf     *csv.Writer\n\ttitle []string\n\tmutex *sync..."
  },
  {
    "path": "app/type-jsonwriter.go",
    "chars": 990,
    "preview": "package app\n\nimport (\n\t\"Qscan/core/slog\"\n\t\"encoding/json\"\n\t\"os\"\n\t\"sync\"\n)\n\ntype JSONWriter struct {\n\tf     *os.File\n\tmut..."
  },
  {
    "path": "core/appfinger/appfinger.go",
    "chars": 2077,
    "preview": "package appfinger\n\nimport (\n\t\"Qscan/core/appfinger/gorpc\"\n\t\"Qscan/core/appfinger/httpfinger\"\n\t\"errors\"\n\t\"net/http\"\n\t\"net..."
  },
  {
    "path": "core/appfinger/appfinger_test.go",
    "chars": 212,
    "preview": "package appfinger\n\nimport \"testing\"\n\nfunc TestT(t *testing.T) {\n\tconvBanner(struct {\n\t\tHost   string\n\t\tAAA    string\n\t\tH..."
  },
  {
    "path": "core/appfinger/database.go",
    "chars": 10649,
    "preview": "package appfinger\n\nimport (\n\t\"Qscan/core/appfinger/httpfinger\"\n\t\"errors\"\n\t\"fmt\"\n\t\"io\"\n\t\"os\"\n\t\"regexp\"\n\t\"strconv\"\n\t\"strin..."
  },
  {
    "path": "core/appfinger/gorpc/rpc.go",
    "chars": 1985,
    "preview": "package gorpc\n\nimport (\n\t\"bytes\"\n\t\"encoding/hex\"\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strings\"\n\t\"time\"\n)\n\nvar (\n\tbufferV1, _ = hex...."
  },
  {
    "path": "core/appfinger/gorpc/rpc_test.go",
    "chars": 180,
    "preview": "package gorpc\n\nimport (\n\t\"fmt\"\n\t\"testing\"\n)\n\nfunc TestNetBIOS(t *testing.T) {\n\ts, err := GetHostname(\"51.79.17.189\")\n\tif..."
  },
  {
    "path": "core/appfinger/httpfinger/http.go",
    "chars": 4472,
    "preview": "package httpfinger\n\nimport (\n\t\"Qscan/core/appfinger/iconhash\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/simplehttp\"\n\t\"cryp..."
  },
  {
    "path": "core/appfinger/iconhash/iconhash.go",
    "chars": 796,
    "preview": "package iconhash\n\nimport (\n\t\"bytes\"\n\t\"encoding/base64\"\n\t\"fmt\"\n\t\"github.com/twmb/murmur3\"\n\t\"io\"\n)\n\nvar isUint32 bool\n\nfun..."
  },
  {
    "path": "core/appfinger/type-banner.go",
    "chars": 4308,
    "preview": "package appfinger\n\nimport (\n\t\"crypto/md5\"\n\t\"encoding/hex\"\n\t\"net\"\n\t\"reflect\"\n\t\"regexp\"\n\t\"strings\"\n)\n\ntype Banner struct {..."
  },
  {
    "path": "core/appfinger/type-fingerprint.go",
    "chars": 350,
    "preview": "package appfinger\n\ntype FingerPrint struct {\n\tProductName []string\n\tHostname    string\n\tDomain      string\n\tMACAddr..."
  },
  {
    "path": "core/gonmap/gonmap.go",
    "chars": 10495,
    "preview": "package gonmap\n\nimport (\n\t\"log\"\n\t\"os\"\n\t\"regexp\"\n\t\"strings\"\n\t\"time\"\n)\n\nvar nmap *Nmap\n\nvar ProbesCount = 0     //探针数\nvar..."
  },
  {
    "path": "core/gonmap/gonmap_test.go",
    "chars": 730,
    "preview": "package gonmap\n\nimport (\n\t\"fmt\"\n\t\"testing\"\n\t\"time\"\n)\n\nfunc TestScan(t *testing.T) {\n\tvar scanner = New()\n\thost := \"192.1..."
  },
  {
    "path": "core/gonmap/nmap-customize-probes.go",
    "chars": 1146,
    "preview": "package gonmap\n\nvar nmapCustomizeProbes = `\nProbe TCP SMB_NEGOTIATE q|\\x00\\x00\\x00\\xc0\\xfeSMB@\\x00\\x00\\x00\\x00\\x00\\x00\\x..."
  },
  {
    "path": "core/gonmap/nmap-service-probes.go",
    "chars": 2499166,
    "preview": "package gonmap\n\nvar nmapServiceProbes = `\n# Nmap service detection probe list -*- mode: fundamental; -*-\n# $Id$\n#\n# This..."
  },
  {
    "path": "core/gonmap/nmap-services.go",
    "chars": 95181,
    "preview": "package gonmap\n\nimport (\n\t\"strconv\"\n\t\"strings\"\n)\n\nvar nmapServicesString = `1\ttcpmux\n2\tcompressnet\n3\tcompressnet\n5\trje\n7..."
  },
  {
    "path": "core/gonmap/simplenet/send_test.go",
    "chars": 1625,
    "preview": "package simplenet\n\nimport (\n\t\"fmt\"\n\t\"regexp\"\n\t\"strconv\"\n\t\"testing\"\n\t\"time\"\n)\n\nfunc TestName(t *testing.T) {\n\tresponse, e..."
  },
  {
    "path": "core/gonmap/simplenet/simplenet.go",
    "chars": 2222,
    "preview": "package simplenet\n\nimport (\n\t\"bytes\"\n\t\"crypto/tls\"\n\t\"fmt\"\n\t\"io\"\n\t\"net\"\n\t\"strings\"\n\t\"time\"\n)\n\nfunc tcpSend(protocol strin..."
  },
  {
    "path": "core/gonmap/type-fingerprint.go",
    "chars": 373,
    "preview": "package gonmap\n\ntype FingerPrint struct {\n\tProbeName        string\n\tMatchRegexString string\n\n\tService         string\n\tPr..."
  },
  {
    "path": "core/gonmap/type-match.go",
    "chars": 4226,
    "preview": "package gonmap\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"regexp\"\n\t\"strconv\"\n\t\"strings\"\n)\n\ntype match struct {\n\t//match <Service> <pat..."
  },
  {
    "path": "core/gonmap/type-nmap.go",
    "chars": 8537,
    "preview": "package gonmap\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"github.com/miekg/dns\"\n\t\"sort\"\n\t\"strings\"\n\t\"time\"\n)\n\ntype Nmap struct {\n\texc..."
  },
  {
    "path": "core/gonmap/type-portlist.go",
    "chars": 1366,
    "preview": "package gonmap\n\nimport (\n\t\"regexp\"\n\t\"strconv\"\n\t\"strings\"\n)\n\nvar portRangeRegx = regexp.MustCompile(\"^(\\\\d+)(?:-(\\\\d+))?$..."
  },
  {
    "path": "core/gonmap/type-probe.go",
    "chars": 4521,
    "preview": "package gonmap\n\nimport (\n\t\"Qscan/core/gonmap/simplenet\"\n\t\"errors\"\n\t\"fmt\"\n\t\"regexp\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time\"\n)\n\ntype..."
  },
  {
    "path": "core/gonmap/type-probelist.go",
    "chars": 515,
    "preview": "package gonmap\n\ntype ProbeList []string\n\nvar emptyProbeList []string\n\nfunc (p ProbeList) removeDuplicate() ProbeList {..."
  },
  {
    "path": "core/gonmap/type-response.go",
    "chars": 637,
    "preview": "package gonmap\n\nconst (\n\tClosed     Status = 0x000a1\n\tOpen              = 0x000b2\n\tMatched           = 0x000c3\n\tNotMatch..."
  },
  {
    "path": "core/hydra/cracker.go",
    "chars": 2831,
    "preview": "package hydra\n\nimport (\n\t\"Qscan/core/hydra/ftp\"\n\t\"Qscan/core/hydra/mongodb\"\n\t\"Qscan/core/hydra/mssql\"\n\t\"Qscan/core/hydra..."
  },
  {
    "path": "core/hydra/default_common_passwords.go",
    "chars": 902,
    "preview": "package hydra\n\nvar DefaultCommonPasswords = []string{\n\t\"123456\", \"admin\", \"admin123\", \"root\", \"\", \"pass123\", \"pass@123\",..."
  },
  {
    "path": "core/hydra/default_ftp_authlist.go",
    "chars": 445,
    "preview": "package hydra\n\nfunc DefaultFtpList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"anonymous\",\n\t\t\"ftp\",\n\t\t\"..."
  },
  {
    "path": "core/hydra/default_mssql_authlist.go",
    "chars": 361,
    "preview": "package hydra\n\nfunc DefaultMssqlList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"sa\",\n\t\t\"sql\",\n\t\t//\"adm..."
  },
  {
    "path": "core/hydra/default_mysql_authlist.go",
    "chars": 365,
    "preview": "package hydra\n\nfunc DefaultMysqlList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"root\",\n\t\t\"mysql\",\n\t\t//..."
  },
  {
    "path": "core/hydra/default_oracle_authlist.go",
    "chars": 1404,
    "preview": "package hydra\n\nfunc DefaultOracleList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"sys\",\n\t\t\"system\",\n\t\t\"..."
  },
  {
    "path": "core/hydra/default_postgresql_authlist.go",
    "chars": 287,
    "preview": "package hydra\n\nfunc DefaultPostgresqlList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"postgres\",\n\t\t\"tes..."
  },
  {
    "path": "core/hydra/default_rdp_authlist.go",
    "chars": 413,
    "preview": "package hydra\n\nfunc DefaultRdpList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"administrator\",\n\t\t\"admin..."
  },
  {
    "path": "core/hydra/default_redis_authlist.go",
    "chars": 569,
    "preview": "package hydra\n\nfunc DefaultRedisList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"\",\n\t\t//\"admin\",\n\t\t//\"t..."
  },
  {
    "path": "core/hydra/default_smb_authlist.go",
    "chars": 493,
    "preview": "package hydra\n\nfunc DefaultSmbList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"administrator\",\n\t\t\"admin..."
  },
  {
    "path": "core/hydra/default_ssh_authlist.go",
    "chars": 1881,
    "preview": "package hydra\n\nfunc DefaultSshList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"root\",\n\t\t\"admin\",\n\t\t//\"t..."
  },
  {
    "path": "core/hydra/default_telnet_authlist.go",
    "chars": 1694,
    "preview": "package hydra\n\nfunc DefaultTelnetList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"admin\",\n\t\t\"root\",\n\t\t\"..."
  },
  {
    "path": "core/hydra/defuault_mongodb_authlist.go",
    "chars": 1212,
    "preview": "package hydra\n\nfunc DefaultMongodbList() *AuthList {\n\ta := NewAuthList()\n\ta.Username = []string{\n\t\t\"admin\",\n\t\t\"test\",..."
  },
  {
    "path": "core/hydra/ftp/ftp.go",
    "chars": 347,
    "preview": "package ftp\n\nimport (\n\t\"fmt\"\n\t\"github.com/jlaffaye/ftp\"\n\t\"time\"\n)\n\nfunc Check(Host, Username, Password string, Port int)..."
  },
  {
    "path": "core/hydra/hydra.go",
    "chars": 5031,
    "preview": "package hydra\n\nimport (\n\t\"Qscan/core/hydra/oracle\"\n\t\"Qscan/lib/gotelnet\"\n\t\"Qscan/lib/misc\"\n\t\"Qscan/lib/pool\"\n\t\"errors\"..."
  },
  {
    "path": "core/hydra/mongodb/mongodb.go",
    "chars": 697,
    "preview": "package mongodb\n\nimport (\n\t\"context\"\n\t\"fmt\"\n\t\"go.mongodb.org/mongo-driver/mongo\"\n\t\"go.mongodb.org/mongo-driver/mongo/opt..."
  },
  {
    "path": "core/hydra/mssql/mssql.go",
    "chars": 649,
    "preview": "package mssql\n\nimport (\n\t\"database/sql\"\n\t\"fmt\"\n\t_ \"github.com/denisenkom/go-mssqldb\"\n\tmssql \"github.com/denisenkom/go-ms..."
  },
  {
    "path": "core/hydra/mysql/mysql.go",
    "chars": 635,
    "preview": "package mysql\n\nimport (\n\t\"database/sql\"\n\t\"fmt\"\n\t\"github.com/go-sql-driver/mysql\"\n\t_ \"github.com/go-sql-driver/mysql\"\n\t\"i..."
  },
  {
    "path": "core/hydra/oracle/oracle.go",
    "chars": 7342,
    "preview": "package oracle\n\nimport (\n\t\"Qscan/core/slog\"\n\t\"database/sql\"\n\t\"errors\"\n\t\"fmt\"\n\t_ \"github.com/sijms/go-ora/v2\"\n\t\"io\"\n\t\"str..."
  },
  {
    "path": "core/hydra/oracle/oracle_test.go",
    "chars": 516,
    "preview": "package oracle\n\nimport (\n\t\"database/sql\"\n\t\"fmt\"\n\t\"testing\"\n\t\"time\"\n)\n\nfunc TestGetSID(t *testing.T) {\n\ttarget := []strin..."
  },
  {
    "path": "core/hydra/postgresql/postgresql.go",
    "chars": 478,
    "preview": "package postgresql\n\nimport (\n\t\"database/sql\"\n\t\"fmt\"\n\t_ \"github.com/lib/pq\"\n\t\"time\"\n)\n\nfunc Check(Host, Username, Passwor..."
  },
  {
    "path": "core/hydra/rdp/grdp.go",
    "chars": 546,
    "preview": "package rdp\n\nimport (\n\t\"Qscan/lib/grdp\"\n\t\"fmt\"\n)\n\nfunc Check(ip, domain, login, password string, port int, protocol stri..."
  },
  {
    "path": "core/hydra/redis/redis.go",
    "chars": 910,
    "preview": "package redis\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"net\"\n\t\"strings\"\n\t\"time\"\n)\n\nfunc Check(Host, Password string, Port int) error..."
  },
  {
    "path": "core/hydra/smb/smb.go",
    "chars": 895,
    "preview": "package smb\n\nimport (\n\t\"context\"\n\t\"errors\"\n\t\"github.com/stacktitan/smb/smb\"\n\t\"time\"\n)\n\nvar (\n\tLoginFailedError  = errors..."
  },
  {
    "path": "core/hydra/smb/smb_test.go",
    "chars": 168,
    "preview": "package smb\n\nimport (\n\t\"fmt\"\n\t\"testing\"\n)\n\nfunc TestCheck(t *testing.T) {\n\terr := Check(\"192.168.0.2\", \"administrator\",..."
  },
  {
    "path": "core/hydra/ssh/ssh.go",
    "chars": 535,
    "preview": "package ssh\n\nimport (\n\t\"fmt\"\n\t\"golang.org/x/crypto/ssh\"\n\t\"net\"\n\t\"time\"\n)\n\nfunc Check(Host, Username, Password string, Po..."
  },
  {
    "path": "core/hydra/telnet/telnet.go",
    "chars": 397,
    "preview": "package telnet\n\nimport (\n\t\"Qscan/lib/gotelnet\"\n)\n\nfunc Check(addr, username, password string, port, serverType int) erro..."
  },
  {
    "path": "core/hydra/type-auth.go",
    "chars": 1317,
    "preview": "package hydra\n\nimport \"strings\"\n\ntype Auth struct {\n\tUsername string\n\tPassword string\n\tOther    map[string]string\n}\n\nvar..."
  },
  {
    "path": "core/hydra/type-authinfo.go",
    "chars": 893,
    "preview": "package hydra\n\nimport (\n\t\"Qscan/lib/color\"\n\t\"fmt\"\n)\n\ntype AuthInfo struct {\n\tProtocol string\n\tPort     int\n\tIPAddr   str..."
  },
  {
    "path": "core/hydra/type-authlist.go",
    "chars": 1399,
    "preview": "package hydra\n\nimport (\n\t\"Qscan/lib/misc\"\n)\n\ntype AuthList struct {\n\tUsername []string\n\tPassword []string\n\tSpecial  []Au..."
  },
  {
    "path": "core/hydra/web/web.go",
    "chars": 1063,
    "preview": "package web\n\nimport (\n\t\"errors\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"time\"\n)\n\nvar (\n\tLoginFailedError  = errors.New(\"login failed\")\n\tLog..."
  },
  {
    "path": "core/pocScan/POC.go",
    "chars": 2123,
    "preview": "package pocScan\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"embed\"\n\t\"fmt\"\n\t\"net/http\"\n\t\"net/url\"\n\t\"strings\"\n\t\"syn..."
  },
  {
    "path": "core/pocScan/Plugins/ActiveMQ.go",
    "chars": 5871,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"strings\"..."
  },
  {
    "path": "core/pocScan/Plugins/Cassandra.go",
    "chars": 5560,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"github.com/gocql/gocql\"\n\t\"..."
  },
  {
    "path": "core/pocScan/Plugins/Elasticsearch.go",
    "chars": 5418,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"crypto/tls\"\n\t\"encoding/base64\"\n\t\"..."
  },
  {
    "path": "core/pocScan/Plugins/FcgiScan.go",
    "chars": 8152,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"bufio\"\n\t\"bytes\"\n\t\"encoding/binary\"\n\t\"errors\"\n\t\"fmt\"..."
  },
  {
    "path": "core/pocScan/Plugins/IMAP.go",
    "chars": 4602,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"bufio\"\n\t\"crypto/tls\"\n\t\"fmt\"\n\t\"io\"..."
  },
  {
    "path": "core/pocScan/Plugins/InfoScan.go",
    "chars": 1383,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/core/pocScan/info\"\n\t\"regexp\"\n\t\"sync\"\n)\n\ntype CheckDatas struct {\n\tBody    []byte\n\tHead..."
  },
  {
    "path": "core/pocScan/Plugins/Kafka.go",
    "chars": 5577,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time..."
  },
  {
    "path": "core/pocScan/Plugins/LDAP.go",
    "chars": 4789,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"strconv\"\n\t\"strings\"\n\t\"time..."
  },
  {
    "path": "core/pocScan/Plugins/Memcached.go",
    "chars": 2007,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"..."
  },
  {
    "path": "core/pocScan/Plugins/Modbus.go",
    "chars": 3147,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"encoding/binary\"\n\t\"fmt\"\n\t\"net\"\n\t\"..."
  },
  {
    "path": "core/pocScan/Plugins/Neo4j.go",
    "chars": 6639,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"github.com/neo4j/neo4j-go-..."
  },
  {
    "path": "core/pocScan/Plugins/NetBIOS.go",
    "chars": 13193,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"bytes\"..."
  },
  {
    "path": "core/pocScan/Plugins/POP3.go",
    "chars": 5028,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"bufio\"\n\t\"crypto/tls\"\n\t\"fmt\"\n\t\"net..."
  },
  {
    "path": "core/pocScan/Plugins/RabbitMQ.go",
    "chars": 5868,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\tamqp \"github.com/rabbitmq/a..."
  },
  {
    "path": "core/pocScan/Plugins/Rsync.go",
    "chars": 7200,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"net\"\n\t\"strconv\"\n\t\"strings\"..."
  },
  {
    "path": "core/pocScan/Plugins/SMTP.go",
    "chars": 5082,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"net\"\n\t\"net/smtp\"\n\t\"strconv..."
  },
  {
    "path": "core/pocScan/Plugins/SNMP.go",
    "chars": 3925,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"github.com/gosnmp/gosnmp\"..."
  },
  {
    "path": "core/pocScan/Plugins/SmbGhost.go",
    "chars": 4164,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"bytes\"..."
  },
  {
    "path": "core/pocScan/Plugins/VNC.go",
    "chars": 3276,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib/misc\"\n\t\"fmt\"\n\t\"github.com/mitchellh/go-vn..."
  },
  {
    "path": "core/pocScan/Plugins/findnet.go",
    "chars": 3741,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"Qscan/core/slog\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/..."
  },
  {
    "path": "core/pocScan/Plugins/ms17010.go",
    "chars": 7347,
    "preview": "package Plugins\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/lib\"\n\t\"Qscan/core/slog\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/..."
  },
  {
    "path": "core/pocScan/info/rules.go",
    "chars": 16724,
    "preview": "package info\n\ntype RuleData struct {\n\tName string\n\tType string\n\tRule string\n}\n\ntype Md5Data struct {\n\tName   string\n\tMd5..."
  },
  {
    "path": "core/pocScan/lib/check.go",
    "chars": 18984,
    "preview": "package lib\n\nimport (\n\t\"Qscan/app\"\n\t\"Qscan/core/pocScan/info\"\n\t\"Qscan/core/slog\"\n\t\"Qscan/core/stdio/chinese\"\n\t\"Qscan/lib..."
  },
  {
    "path": "core/pocScan/lib/client.go",
    "chars": 6267,
    "preview": "package lib\n\nimport (\n\t\"Qscan/app\"\n\t\"context\"\n\t\"crypto/tls\"\n\t\"embed\"\n\t\"errors\"\n\t\"fmt\"\n\t\"golang.org/x/net/proxy\"\n\t\"gopkg...."
  },
  {
    "path": "core/pocScan/lib/eval.go",
    "chars": 20862,
    "preview": "package lib\n\nimport (\n\t\"Qscan/app\"\n\t\"bytes\"\n\t\"compress/gzip\"\n\t\"crypto/md5\"\n\tcrand \"crypto/rand\"\n\t\"encoding/base64\"\n\t\"enc..."
  },
  {
    "path": "core/pocScan/lib/http.pb.go",
    "chars": 16562,
    "preview": "//go:generate protoc --go_out=. http.proto\n\n// Code generated by protoc-gen-go. DO NOT EDIT.\n// versions:\n// \tprotoc-gen..."
  },
  {
    "path": "core/pocScan/lib/http.proto",
    "chars": 643,
    "preview": "syntax = \"proto3\";\npackage lib;\n\noption go_package = \"./;lib\";\n\nmessage UrlType {\n  string scheme = 1;\n  string domain =..."
  },
  {
    "path": "core/pocScan/lib/proxy.go",
    "chars": 1369,
    "preview": "package lib\n\nimport (\n\t\"Qscan/app\"\n\t\"errors\"\n\t\"golang.org/x/net/proxy\"\n\t\"net\"\n\t\"net/url\"\n\t\"strings\"\n\t\"time\"\n)\n\nfunc Wrap..."
  },
  {
    "path": "core/pocScan/lib/shiro.go",
    "chars": 1885,
    "preview": "package lib\n\nimport (\n\t\"bytes\"\n\t\"crypto/aes\"\n\t\"crypto/cipher\"\n\t\"crypto/rand\"\n\t\"encoding/base64\"\n\t\"io\"\n\n\tuuid \"github.com..."
  },
  {
    "path": "core/pocScan/pocs/74cms-sqli-1.yml",
    "chars": 719,
    "preview": "name: poc-yaml-74cms-sqli-1\nset:\n  rand: randomInt(200000000, 210000000)\nrules:\n  - method: POST\n    path: /plus/weixin...."
  },
  {
    "path": "core/pocScan/pocs/74cms-sqli-2.yml",
    "chars": 371,
    "preview": "name: poc-yaml-74cms-sqli-2\nset:\n  rand: randomInt(200000000, 210000000)\nrules:\n  - method: GET\n    path: /plus/ajax_off..."
  },
  {
    "path": "core/pocScan/pocs/74cms-sqli.yml",
    "chars": 368,
    "preview": "name: poc-yaml-74cms-sqli\nrules:\n  - method: GET\n    path: /index.php?m=&c=AjaxPersonal&a=company_focus&company_id[0]=ma..."
  },
  {
    "path": "core/pocScan/pocs/CVE-2017-7504-Jboss-serialization-RCE.yml",
    "chars": 367,
    "preview": "name: poc-yaml-CVE-2017-7504-Jboss-serialization-RCE\nrules:\n  - method: GET\n    path: /jbossmq-httpil/HTTPServerILServle..."
  },
  {
    "path": "core/pocScan/pocs/CVE-2022-22947.yml",
    "chars": 1472,
    "preview": "name: Spring-Cloud-CVE-2022-22947\nset:\n  router: randomLowercase(8)\n  rand1: randomInt(800000000, 1000000000)\n  rand2: r..."
  },
  {
    "path": "core/pocScan/pocs/CVE-2022-22954-VMware-RCE.yml",
    "chars": 413,
    "preview": "name: poc-yaml-CVE-2022-22954-VMware-RCE\nrules:\n  - method: GET\n    path: /catalog-portal/ui/oauth/verify?error=&deviceU..."
  },
  {
    "path": "core/pocScan/pocs/CVE-2022-26134.yml",
    "chars": 1027,
    "preview": "name: Confluence-CVE-2022-26134\n\nrules:\n -  method: GET\n    path: /%24%7B%28%23a%3D%40org.apache.commons.io.IOUtils%40to..."
  },
  {
    "path": "core/pocScan/pocs/Hotel-Internet-Manage-RCE.yml",
    "chars": 410,
    "preview": "name: Hotel-Internet-Manage-RCE\nrules:\n  - method: GET\n    path: \"/manager/radius/server_ping.php?ip=127.0.0.1|cat /etc/..."
  },
  {
    "path": "core/pocScan/pocs/Struts2-062-cve-2021-31805-rce.yml",
    "chars": 1847,
    "preview": "name: poc-yaml-struts2-062-cve-2021-31805-rce\nrules:\n  - method: POST\n    path: /\n    headers:\n      Content-Type: 'mult..."
  },
  {
    "path": "core/pocScan/pocs/active-directory-certsrv-detect.yml",
    "chars": 603,
    "preview": "name: poc-yaml-active-directory-certsrv-detect\nrules:\n  - method: GET\n    path: /certsrv/certrqad.asp\n    follow_redirec..."
  },
  {
    "path": "core/pocScan/pocs/activemq-cve-2016-3088.yml",
    "chars": 942,
    "preview": "name: poc-yaml-activemq-cve-2016-3088\nset:\n  filename: randomLowercase(6)\n  fileContent: randomLowercase(6)\nrules:\n  - m..."
  },
  {
    "path": "core/pocScan/pocs/activemq-default-password.yml",
    "chars": 549,
    "preview": "name: poc-yaml-activemq-default-password\nrules:\n  - method: GET\n    path: /admin/\n    expression: |\n      response.statu..."
  },
  {
    "path": "core/pocScan/pocs/airflow-unauth.yml",
    "chars": 315,
    "preview": "name: poc-yaml-airflow-unauth\nrules:\n  - method: GET\n    path: /admin/\n    expression: |\n      response.status == 200 &&..."
  },
  {
    "path": "core/pocScan/pocs/alibaba-canal-default-password.yml",
    "chars": 686,
    "preview": "name: poc-yaml-alibaba-canal-default-password\nrules:\n  - method: POST\n    path: /api/v1/user/login\n    expression: |..."
  },
  {
    "path": "core/pocScan/pocs/alibaba-canal-info-leak.yml",
    "chars": 483,
    "preview": "name: poc-yaml-alibaba-canal-info-leak\nrules:\n  - method: GET\n    path: /api/v1/canal/config/1/1\n    follow_redirects: f..."
  },
  {
    "path": "core/pocScan/pocs/alibaba-nacos-v1-auth-bypass.yml",
    "chars": 860,
    "preview": "name: poc-yaml-alibaba-nacos-v1-auth-bypass\nset:\n  r1: randomLowercase(16)\n  r2: randomLowercase(16)\nrules:\n  - method:..."
  },
  {
    "path": "core/pocScan/pocs/alibaba-nacos.yml",
    "chars": 319,
    "preview": "name: poc-yaml-alibaba-nacos\nrules:\n  - method: GET\n    path: /nacos/\n    follow_redirects: true\n    expression: |..."
  },
  {
    "path": "core/pocScan/pocs/amtt-hiboss-server-ping-rce.yml",
    "chars": 858,
    "preview": "name: poc-yaml-amtt-hiboss-server-ping-rce\nset:\n  r2: randomLowercase(10)\nrules:\n  - method: GET\n    path: /manager/radi..."
  },
  {
    "path": "core/pocScan/pocs/apache-ambari-default-password.yml",
    "chars": 532,
    "preview": "name: poc-yaml-apache-ambari-default-password\nrules:\n  - method: GET\n    path: /api/v1/users/admin?fields=*,privileges/P..."
  },
  {
    "path": "core/pocScan/pocs/apache-axis-webservice-detect.yml",
    "chars": 646,
    "preview": "name: poc-yaml-apache-axis-webservice-detect\nsets:\n  path:\n    - services\n    - servlet/AxisaxiServlet\n    - servlet/Axi..."
  },
  {
    "path": "core/pocScan/pocs/apache-druid-cve-2021-36749.yml",
    "chars": 1064,
    "preview": "name: poc-yaml-apache-druid-cve-2021-36749\nmanual: true\ntransport: http\ngroups:\n  druid1:\n  - method: POST\n    path: /dr..."
  },
  {
    "path": "core/pocScan/pocs/apache-flink-upload-rce.yml",
    "chars": 1279,
    "preview": "name: poc-yaml-apache-flink-upload-rce\nset:\n    r1: randomLowercase(8)\n    r2: randomLowercase(4)\nrules:\n    - method: G..."
  },
  {
    "path": "core/pocScan/pocs/apache-httpd-cve-2021-40438-ssrf.yml",
    "chars": 4524,
    "preview": "name: poc-yaml-apache-httpd-cve-2021-40438-ssrf\nmanual: true\ntransport: http\nrules:\n  - method: GET\n    path: /?unix:AAA..."
  },
  {
    "path": "core/pocScan/pocs/apache-httpd-cve-2021-41773-path-traversal.yml",
    "chars": 564,
    "preview": "name: poc-yaml-apache-httpd-cve-2021-41773-path-traversal\ngroups:\n  cgibin:\n    - method: GET\n      path: /cgi-bin/.%2e/..."
  },
  {
    "path": "core/pocScan/pocs/apache-httpd-cve-2021-41773-rce.yml",
    "chars": 478,
    "preview": "name: poc-yaml-apache-httpd-cve-2021-41773-rce\nset:\n  r1: randomInt(800000000, 1000000000)\n  r2: randomInt(800000000, 10..."
  },
  {
    "path": "core/pocScan/pocs/apache-kylin-unauth-cve-2020-13937.yml",
    "chars": 418,
    "preview": "name: poc-yaml-apache-kylin-unauth-cve-2020-13937\nrules:\n  - method: GET\n    path: /kylin/api/admin/config\n    expressio..."
  },
  {
    "path": "core/pocScan/pocs/apache-nifi-api-unauthorized-access.yml",
    "chars": 469,
    "preview": "name: poc-yaml-apache-nifi-api-unauthorized-access\nmanual: true\ntransport: http\nrules:\n  - method: GET\n    path: /nifi-a..."
  },
  {
    "path": "core/pocScan/pocs/apache-ofbiz-cve-2018-8033-xxe.yml",
    "chars": 627,
    "preview": "name: poc-yaml-apache-ofbiz-cve-2018-8033-xxe\nrules:\n  - method: POST\n    path: /webtools/control/xmlrpc\n    headers:..."
  },
  {
    "path": "core/pocScan/pocs/apache-ofbiz-cve-2020-9496-xml-deserialization.yml",
    "chars": 937,
    "preview": "name: poc-yaml-apache-ofbiz-cve-2020-9496-xml-deserialization\nset:\n  rand: randomInt(200000000, 210000000)\nrules:\n  - me..."
  },
  {
    "path": "core/pocScan/pocs/aspcms-backend-leak.yml",
    "chars": 497,
    "preview": "name: poc-yaml-aspcms-backend-leak\nrules:\n  - method: GET\n    path: /plug/oem/AspCms_OEMFun.asp\n    expression: |..."
  },
  {
    "path": "core/pocScan/pocs/backup-file.yml",
    "chars": 1694,
    "preview": "name: poc-yaml-backup-file\nset:\n  host: request.url.domain\nsets:\n  path:\n    - \"sql\"\n    - \"www\"\n    - \"wwwroot\"\n    - \"..."
  },
  {
    "path": "core/pocScan/pocs/bash-cve-2014-6271.yml",
    "chars": 442,
    "preview": "name: poc-yaml-bash-cve-2014-6271\nset:\n  r1: randomInt(800000000, 1000000000)\n  r2: randomInt(800000000, 1000000000)\nrul..."
  },
  {
    "path": "core/pocScan/pocs/bt742-pma-unauthorized-access.yml",
    "chars": 420,
    "preview": "name: poc-yaml-bt742-pma-unauthorized-access\nrules:\n  - method: GET\n    path: /pma/\n    follow_redirects: false\n    expr..."
  },
  {
    "path": "core/pocScan/pocs/cacti-weathermap-file-write.yml",
    "chars": 930,
    "preview": "name: poc-yaml-cacti-weathermap-file-write\nrules:\n  - method: GET\n    path: >-\n      /plugins/weathermap/editor.php?plug..."
  },
  {
    "path": "core/pocScan/pocs/chinaunicom-modem-default-password.yml",
    "chars": 328,
    "preview": "name: poc-yaml-chinaunicom-modem-default-password\nrules:\n  - method: POST\n    path: /cu.html\n    body: >-\n      frashnum..."
  },
  {
    "path": "core/pocScan/pocs/cisco-cve-2020-3452-readfile.yml",
    "chars": 600,
    "preview": "name: poc-yaml-cisco-cve-2020-3452-readfile\nrules:\n  - method: GET\n    path: /+CSCOT+/oem-customization?app=AnyConnect&t..."
  },
  {
    "path": "core/pocScan/pocs/citrix-cve-2019-19781-path-traversal.yml",
    "chars": 461,
    "preview": "name: poc-yaml-citrix-cve-2019-19781-path-traversal\nrules:\n  - method: GET\n    path: /vpn/../vpns/cfg/smb.conf\n    follo..."
  },
  {
    "path": "core/pocScan/pocs/citrix-cve-2020-8191-xss.yml",
    "chars": 742,
    "preview": "name: poc-yaml-citrix-cve-2020-8191-xss\nset:\n  r1: randomLowercase(6)\nrules:\n  - method: POST\n    path: /menu/stapp..."
  },
  {
    "path": "core/pocScan/pocs/citrix-cve-2020-8193-unauthorized.yml",
    "chars": 798,
    "preview": "name: poc-yaml-citrix-cve-2020-8193-unauthorized\nset:\n  user: randomLowercase(8)\n  pass: randomLowercase(8)\nrules:\n  - m..."
  },
  {
    "path": "core/pocScan/pocs/citrix-xenmobile-cve-2020-8209.yml",
    "chars": 422,
    "preview": "name: poc-yaml-citrix-xenmobile-cve-2020-8209\nrules:\n  - method: GET\n    path: /jsp/help-sb-download.jsp?sbFileName=../...."
  },
  {
    "path": "core/pocScan/pocs/coldfusion-cve-2010-2861-lfi.yml",
    "chars": 501,
    "preview": "name: poc-yaml-coldfusion-cve-2010-2861-lfi\nrules:\n  - method: GET\n    path: >-\n      /CFIDE/administrator/enter.cfm?loc..."
  },
  {
    "path": "core/pocScan/pocs/confluence-cve-2015-8399.yml",
    "chars": 408,
    "preview": "name: poc-yaml-confluence-cve-2015-8399\nrules:\n  - method: GET\n    path: /spaces/viewdefaultdecorator.action?decoratorNa..."
  },
  {
    "path": "core/pocScan/pocs/confluence-cve-2019-3396-lfi.yml",
    "chars": 662,
    "preview": "name: poc-yaml-confluence-cve-2019-3396-lfi\nrules:\n  - method: POST\n    path: /rest/tinymce/1/macro/preview\n    headers:..."
  },
  {
    "path": "core/pocScan/pocs/confluence-cve-2021-26084.yml",
    "chars": 526,
    "preview": "name: poc-yaml-confluence-cve-2021-26084\nset:\n  r1: randomInt(100000, 999999)\n  r2: randomInt(100000, 999999)\nrules:\n  -..."
  },
  {
    "path": "core/pocScan/pocs/confluence-cve-2021-26085-arbitrary-file-read.yml",
    "chars": 567,
    "preview": "name: poc-yaml-confluence-cve-2021-26085-arbitrary-file-read\nset:\n    rand: randomLowercase(6)\nrules:\n  - method: GET..."
  },
  {
    "path": "core/pocScan/pocs/consul-rexec-rce.yml",
    "chars": 338,
    "preview": "name: poc-yaml-consul-rexec-rce\nrules:\n  - method: GET\n    path: /v1/agent/self\n    expression: |\n      response.status..."
  },
  {
    "path": "core/pocScan/pocs/consul-service-rce.yml",
    "chars": 406,
    "preview": "name: poc-yaml-consul-service-rce\nrules:\n  - method: GET\n    path: /v1/agent/self\n    expression: |\n      response.statu..."
  },
  {
    "path": "core/pocScan/pocs/coremail-cnvd-2019-16798.yml",
    "chars": 375,
    "preview": "name: poc-yaml-coremail-cnvd-2019-16798\nrules:\n  - method: GET\n    path: >-\n      /mailsms/s?func=ADMIN:appState&dumpCon..."
  },
  {
    "path": "core/pocScan/pocs/couchcms-cve-2018-7662.yml",
    "chars": 739,
    "preview": "name: poc-yaml-couchcms-cve-2018-7662\nrules:\n  - method: GET\n    path: /includes/mysql2i/mysql2i.func.php\n    follow_red..."
  },
  {
    "path": "core/pocScan/pocs/couchdb-cve-2017-12635.yml",
    "chars": 704,
    "preview": "name: poc-yaml-couchdb-cve-2017-12635\nset:\n  r1: randomLowercase(32)\nrules:\n  - method: PUT\n    path: '/_users/org.couch..."
  },
  {
    "path": "core/pocScan/pocs/couchdb-unauth.yml",
    "chars": 415,
    "preview": "name: poc-yaml-couchdb-unauth\nrules:\n  - method: GET\n    path: /_config\n    follow_redirects: false\n    expression: >..."
  },
  {
    "path": "core/pocScan/pocs/craftcms-seomatic-cve-2020-9757-rce.yml",
    "chars": 938,
    "preview": "name: poc-yaml-craftcms-seomatic-cve-2020-9757-rce\nset:\n  r1: randomInt(40000, 44800)\n  r2: randomInt(40000, 44800)\ngrou..."
  },
  {
    "path": "core/pocScan/pocs/datang-ac-default-password-cnvd-2021-04128.yml",
    "chars": 572,
    "preview": "name: poc-yaml-datang-ac-default-password-cnvd-2021-04128\nrules:\n  - method: POST\n    path: /login.cgi\n    follow_redire..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-carbuyaction-fileinclude.yml",
    "chars": 638,
    "preview": "name: poc-yaml-dedecms-carbuyaction-fileinclude\nrules:\n  - method: GET\n    path: /plus/carbuyaction.php?dopost=return&co..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-cve-2018-6910.yml",
    "chars": 462,
    "preview": "name: poc-yaml-dedecms-cve-2018-6910\nrules:\n  - method: GET\n    path: /include/downmix.inc.php\n    expression: |\n      r..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-cve-2018-7700-rce.yml",
    "chars": 524,
    "preview": "name: poc-yaml-dedecms-cve-2018-7700-rce\nset:\n  r: randomInt(2000000000, 2100000000)\nrules:\n  - method: GET\n    path: >-..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-guestbook-sqli.yml",
    "chars": 794,
    "preview": "name: poc-yaml-dedecms-guestbook-sqli\nset:\n  r: randomInt(800000000, 1000000000)\nrules:\n  - method: GET\n    path: /plus/..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-membergroup-sqli.yml",
    "chars": 513,
    "preview": "name: poc-yaml-dedecms-membergroup-sqli\nset:\n  r: randomInt(800000000, 1000000000)\nrules:\n  - method: GET\n    path: >-..."
  },
  {
    "path": "core/pocScan/pocs/dedecms-url-redirection.yml",
    "chars": 440,
    "preview": "name: poc-yaml-dedecms-url-redirection\nrules:\n  - method: GET\n    path: >-\n      /plus/download.php?open=1&link=aHR0cHM6..."
  },
  {
    "path": "core/pocScan/pocs/discuz-ml3x-cnvd-2019-22239.yml",
    "chars": 607,
    "preview": "name: poc-yaml-discuz-ml3x-cnvd-2019-22239\nset:\n  r1: randomInt(800000000, 1000000000)\nrules:\n  - method: GET\n    path:..."
  },
  {
    "path": "core/pocScan/pocs/discuz-v72-sqli.yml",
    "chars": 770,
    "preview": "name: poc-yaml-discuz-v72-sqli\nrules:\n  - method: GET\n    path: >-\n      /faq.php?action=grouppermission&gids[99]=%27&gi..."
  },
  {
    "path": "core/pocScan/pocs/discuz-wechat-plugins-unauth.yml",
    "chars": 467,
    "preview": "name: poc-yaml-discuz-wechat-plugins-unauth\nrules:\n  - method: GET\n    path: '/plugin.php?id=wechat:wechat&ac=wxregister..."
  },
  {
    "path": "core/pocScan/pocs/discuz-wooyun-2010-080723.yml",
    "chars": 580,
    "preview": "name: poc-yaml-discuz-wooyun-2010-080723\nset:\n  rand: randomInt(200000000, 210000000)\nrules:\n  - method: GET\n    path: >..."
  },
  {
    "path": "core/pocScan/pocs/django-CVE-2018-14574.yml",
    "chars": 324,
    "preview": "name: poc-yaml-django-CVE-2018-14574\n\nrules:\n  - method: GET\n    path: //www.example.com\n    follow_redirects: false..."
  },
  {
    "path": "core/pocScan/pocs/dlink-850l-info-leak.yml",
    "chars": 689,
    "preview": "name: poc-yaml-dlink-850l-info-leak\nrules:\n  - method: POST\n    path: /hedwig.cgi\n    headers:\n      Content-Type: text/..."
  },
  {
    "path": "core/pocScan/pocs/dlink-cve-2019-16920-rce.yml",
    "chars": 646,
    "preview": "name: poc-yaml-dlink-cve-2019-16920-rce\nset:\n  reverse: newReverse()\n  reverseURL: reverse.url\nrules:\n  - method: POST..."
  },
  {
    "path": "core/pocScan/pocs/dlink-cve-2019-17506.yml",
    "chars": 507,
    "preview": "name: poc-yaml-dlink-cve-2019-17506\nrules:\n  - method: POST\n    path: /getcfg.php\n    headers:\n      Content-Type: appli..."
  },
  {
    "path": "core/pocScan/pocs/dlink-cve-2020-25078-account-disclosure.yml",
    "chars": 452,
    "preview": "name: poc-yaml-dlink-cve-2020-25078-account-disclosure\nrules:\n  - method: GET\n    path: >-\n      /config/getuser?index=0..."
  },
  {
    "path": "core/pocScan/pocs/dlink-cve-2020-9376-dump-credentials.yml",
    "chars": 588,
    "preview": "name: poc-yaml-dlink-cve-2020-9376-dump-credentials\nrules:\n  - method: POST\n    path: /getcfg.php\n    headers:\n      Con..."
  },
  {
    "path": "core/pocScan/pocs/dlink-dsl-2888a-rce.yml",
    "chars": 1144,
    "preview": "name: poc-yaml-dlink-dsl-2888a-rce\nrules:\n  - method: GET\n    path: /page/login/login.html\n    follow_redirects: false..."
  },
  {
    "path": "core/pocScan/pocs/docker-api-unauthorized-rce.yml",
    "chars": 476,
    "preview": "name: poc-yaml-docker-api-unauthorized-rce\nrules:\n  - method: GET\n    path: /info\n    follow_redirects: false\n    expres..."
  },
  {
    "path": "core/pocScan/pocs/docker-registry-api-unauth.yml",
    "chars": 595,
    "preview": "name: poc-yaml-docker-registry-api-unauth\nrules:\n  - method: GET\n    path: /v2/\n    follow_redirects: false\n    expressi..."
  },
  {
    "path": "core/pocScan/pocs/dotnetcms-sqli.yml",
    "chars": 665,
    "preview": "name: poc-yaml-dotnetcms-sqli\nset:\n  r1: randomInt(800000000, 1000000000)\n  r2: randomInt(1, 100)\nrules:\n  - method: GET..."
  },
  {
    "path": "core/pocScan/pocs/draytek-cve-2020-8515.yml",
    "chars": 717,
    "preview": "name: poc-yaml-draytek-cve-2020-8515\nrules:\n  - method: POST\n    path: /cgi-bin/mainfunction.cgi\n    headers:\n      Cont..."
  },
  {
    "path": "core/pocScan/pocs/druid-monitor-unauth.yml",
    "chars": 343,
    "preview": "name: poc-yaml-druid-monitor-unauth\nrules:\n  - method: GET\n    path: /druid/index.html\n    expression: |\n      response...."
  },
  {
    "path": "core/pocScan/pocs/drupal-cve-2014-3704-sqli.yml",
    "chars": 557,
    "preview": "name: poc-yaml-drupal-cve-2014-3704-sqli\nrules:\n  - method: POST\n    path: /?q=node&destination=node\n    body: >-..."
  },
  {
    "path": "core/pocScan/pocs/drupal-cve-2018-7600-rce.yml",
    "chars": 1427,
    "preview": "name: poc-yaml-drupal-cve-2018-7600-rce\nset:\n  r1: randomLowercase(4)\n  r2: randomLowercase(4)\ngroups:\n  drupal8:\n    -..."
  },
  {
    "path": "core/pocScan/pocs/drupal-cve-2019-6340.yml",
    "chars": 1265,
    "preview": "name: poc-yaml-drupal-cve-2019-6340\nset:\n  host: request.url.host\n  r1: randomLowercase(4)\n  r2: randomLowercase(4)\nrule..."
  },
  {
    "path": "core/pocScan/pocs/dubbo-admin-default-password.yml",
    "chars": 786,
    "preview": "name: poc-yaml-dubbo-admin-default-password\ngroups:\n  root:\n    - method: GET\n      path: /\n      headers:\n        Autho..."
  },
  {
    "path": "core/pocScan/pocs/duomicms-sqli.yml",
    "chars": 429,
    "preview": "name: poc-yaml-duomicms-sqli\nrules:\n  - method: GET\n    path: >-\n      /duomiphp/ajax.php?action=addfav&id=1&uid=1%20and..."
  },
  {
    "path": "core/pocScan/pocs/dvr-cve-2018-9995.yml",
    "chars": 438,
    "preview": "name: poc-yaml-dvr-cve-2018-9995\nrules:\n  - method: GET\n    path: >-\n      /device.rsp?opt=user&cmd=list\n    headers:..."
  },
  {
    "path": "core/pocScan/pocs/e-office-v10-sql-inject.yml",
    "chars": 495,
    "preview": "name: e-office-v10-sql-inject\nrules:\n  - method: GET\n    path: /eoffice10/server/ext/system_support/leave_record.php?flo..."
  },
  {
    "path": "core/pocScan/pocs/e-office-v9-upload-cnvd-2021-49104.yml",
    "chars": 790,
    "preview": "name: e-office-v9-upload-cnvd-2021-49104\nset:\n  r1: randomLowercase(8)\nrules:\n  - method: POST\n    path: /general/index/..."
  },
  {
    "path": "core/pocScan/pocs/e-zkeco-cnvd-2020-57264-read-file.yml",
    "chars": 379,
    "preview": "name: poc-yaml-e-zkeco-cnvd-2020-57264-read-file\nrules:\n  - method: GET\n    path: /iclock/ccccc/windows/win.ini\n    expr..."
  },
  {
    "path": "core/pocScan/pocs/ecology-arbitrary-file-upload.yml",
    "chars": 975,
    "preview": "name: poc-yaml-weaver-oa-arbitrary-file-upload\nset:\n  r1: randomLowercase(4)\n  r2: randomInt(40000, 44800)\n  r3: randomI..."
  },
  {
    "path": "core/pocScan/pocs/ecology-filedownload-directory-traversal.yml",
    "chars": 364,
    "preview": "name: poc-yaml-ecology-filedownload-directory-traversal\nrules:\n  - method: GET\n    path: /weaver/ln.FileDownload?fpath=...."
  },
  {
    "path": "core/pocScan/pocs/ecology-javabeanshell-rce.yml",
    "chars": 495,
    "preview": "name: poc-yaml-ecology-javabeanshell-rce\nset:\n  r1: randomInt(40000, 44800)\n  r2: randomInt(40000, 44800)\nrules:\n  - met..."
  },
  {
    "path": "core/pocScan/pocs/ecology-springframework-directory-traversal.yml",
    "chars": 392,
    "preview": "name: poc-yaml-ecology-springframework-directory-traversal\nrules:\n  - method: GET\n    path: /weaver/org.springframework...."
  },
  {
    "path": "core/pocScan/pocs/ecology-syncuserinfo-sqli.yml",
    "chars": 493,
    "preview": "name: poc-yaml-ecology-syncuserinfo-sqli\nset:\n  r1: randomInt(40000, 44800)\n  r2: randomInt(40000, 44800)\nrules:\n  - met..."
  },
  {
    "path": "core/pocScan/pocs/ecology-v8-sqli.yml",
    "chars": 550,
    "preview": "name: poc-yaml-ecology-v8-sqli\nset:\n  r1: randomInt(1000, 9999)\n  r2: randomInt(1000, 9999)\nrules:\n  - method: GET\n    p..."
  },
  {
    "path": "core/pocScan/pocs/ecology-validate-sqli.yml",
    "chars": 2704,
    "preview": "name: poc-yaml-ecology-validate-sqli\nset:\n  r1: randomInt(8000, 9999)\n  r2: randomInt(800, 1000)\nrules:\n  - method: POST..."
  },
  {
    "path": "core/pocScan/pocs/ecology-workflowcentertreedata-sqli.yml",
    "chars": 2860,
    "preview": "name: poc-yaml-ecology-workflowcentertreedata-sqli\nset:\n  r1: randomInt(4000, 9999)\n  r2: randomInt(800, 1000)\nrules:..."
  },
  {
    "path": "core/pocScan/pocs/ecology-workflowservicexml.yml",
    "chars": 56011,
    "preview": "name: poc-yaml-ecology-workflowservicexml\nset:\n  rand1: randomInt(1000, 9999)\n  rand2: randomInt(1000, 9999)\ngroups:\n  w..."
  },
  {
    "path": "core/pocScan/pocs/ecshop-cnvd-2020-58823-sqli.yml",
    "chars": 429,
    "preview": "name: poc-yaml-ecshop-cnvd-2020-58823-sqli\nset:\n  r1: randomInt(40000, 44800)\nrules:\n  - method: POST\n    path: /delete_..."
  },
  {
    "path": "core/pocScan/pocs/ecshop-collection-list-sqli.yml",
    "chars": 547,
    "preview": "name: poc-yaml-ecshop-collection-list-sqli\nset:\n    r1: randomInt(10000, 99999)\nrules:\n  - method: GET\n    path: /user.p..."
  },
  {
    "path": "core/pocScan/pocs/ecshop-login-sqli.yml",
    "chars": 586,
    "preview": "name: poc-yaml-ecshop-login-sqli\nset:\n  r1: randomInt(10000, 99999)\nrules:\n  - method: GET\n    path: /user.php?act=login..."
  },
  {
    "path": "core/pocScan/pocs/ecshop-rce.yml",
    "chars": 1470,
    "preview": "name: poc-yaml-ecshop-rce\nset:\n  r1: randomInt(40000, 44800)\n  r2: randomInt(40000, 44800)\ngroups:\n  2.x:\n    - method:..."
  },
  {
    "path": "core/pocScan/pocs/eea-info-leak-cnvd-2021-10543.yml",
    "chars": 418,
    "preview": "name: poc-yaml-eea-info-leak-cnvd-2021-10543\nrules:\n  - method: GET\n    path: \"/authenticationserverservlet\"\n    express..."
  },
  {
    "path": "core/pocScan/pocs/elasticsearch-cve-2014-3120.yml",
    "chars": 1048,
    "preview": "name: poc-yaml-elasticsearch-cve-2014-3120\nset:\n  r: randomInt(800000000, 1000000000)\n  r1: randomInt(800000000, 1000000..."
  },
  {
    "path": "core/pocScan/pocs/elasticsearch-cve-2015-1427.yml",
    "chars": 875,
    "preview": "name: poc-yaml-elasticsearch-cve-2015-1427\nset:\n  r1: randomInt(40000, 44800)\n  r2: randomInt(40000, 44800)\nrules:\n  - m..."
  },
  {
    "path": "core/pocScan/pocs/elasticsearch-cve-2015-3337-lfi.yml",
    "chars": 358,
    "preview": "name: poc-yaml-elasticsearch-cve-2015-3337-lfi\nrules:\n  - method: GET\n    path: /_plugin/head/../../../../../../../../....."
  },
  {
    "path": "core/pocScan/pocs/elasticsearch-cve-2015-5531.yml",
    "chars": 1450,
    "preview": "name: poc-yaml-elasticsearch-cve-2015-5531\nset:\n  r1: randomLowercase(4)\nrules:\n  - method: PUT\n    path: /_snapshot/{{r..."
  },
  {
    "path": "core/pocScan/pocs/elasticsearch-unauth.yml",
    "chars": 481,
    "preview": "name: poc-yaml-elasticsearch-unauth\nrules:\n  - method: GET\n    path: /\n    follow_redirects: false\n    expression: |..."
  },
  {
    "path": "core/pocScan/pocs/etcd-unauth.yml",
    "chars": 790,
    "preview": "name: poc-yaml-etcd-unauth\nset:\n  r1: randomLowercase(32)\n  r2: randomLowercase(32)\n  r3: randomLowercase(32)\nrules:\n  -..."
  },
  {
    "path": "core/pocScan/pocs/etcd-v3-unauth.yml",
    "chars": 340,
    "preview": "name: poc-yaml-etcd-v3-unauth\nrules:\n  - method: GET\n    path: /version\n    follow_redirects: false\n    expression: |..."
  },
  {
    "path": "core/pocScan/pocs/etouch-v2-sqli.yml",
    "chars": 557,
    "preview": "name: poc-yaml-etouch-v2-sqli\nrules:\n  - method: GET\n    path: >-\n      /upload/mobile/index.php?c=category&a=asynclist&..."
  }
]

// ... and 350 more files (download for full content)

About this extraction

This page contains the full source code of the qi4L/qscan GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 550 files (7.0 MB), approximately 1.9M tokens. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!