Full Code of qi4L/qscan for AI

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

Directory structure:
qscan/

├── .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/ c
qscan/

├── .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
SYMBOL INDEX (1874 symbols across 145 files)

FILE: app/type-args.go
  type args (line 12) | type args struct
    method Parse (line 59) | func (o *args) Parse() {
    method define (line 71) | func (o *args) define() {
    method SetLogo (line 120) | func (o *args) SetLogo(logo string) {
    method SetUsage (line 124) | func (o *args) SetUsage(usage string) {
    method SetSyntax (line 128) | func (o *args) SetSyntax(syntax string) {
    method SetHelp (line 132) | func (o *args) SetHelp(help string) {
    method CheckArgs (line 137) | func (o *args) CheckArgs() {
    method printBanner (line 157) | func (o *args) printBanner() {
  type PocInfo (line 44) | type PocInfo struct
  type HostInfo (line 49) | type HostInfo struct
  function gradient (line 173) | func gradient(text string, coloRR []*color.Style256) string {
  function CheckErrs (line 200) | func CheckErrs(err error) error {

FILE: app/type-config.go
  type Config (line 13) | type Config struct
    method loadPort (line 134) | func (c *Config) loadPort() {
    method loadExcludedPort (line 148) | func (c *Config) loadExcludedPort() {
    method loadOutput (line 171) | func (c *Config) loadOutput() {
    method loadScanPing (line 184) | func (c *Config) loadScanPing() {
    method loadHydraMod (line 193) | func (c *Config) loadHydraMod(splice []string) {
  function ConfigInit (line 38) | func ConfigInit() {
  function loadOutputJSON (line 78) | func loadOutputJSON(path string) *JSONWriter {
  function loadOutputCSV (line 102) | func loadOutputCSV(path string) *CSVWriter {
  function New (line 205) | func New() Config {

FILE: app/type-csvwriter.go
  type CSVWriter (line 8) | type CSVWriter struct
    method inTitle (line 14) | func (cw *CSVWriter) inTitle(title string) bool {
    method Push (line 23) | func (cw *CSVWriter) Push(m map[string]string) {

FILE: app/type-jsonwriter.go
  type JSONWriter (line 10) | type JSONWriter struct
    method Push (line 15) | func (jw *JSONWriter) Push(m map[string]string) {

FILE: core/appfinger/appfinger.go
  function Search (line 21) | func Search(URL *url.URL, banner *Banner) *FingerPrint {
  function SupportCheck (line 37) | func SupportCheck(protocol string) bool {
  function GetBannerWithResponse (line 41) | func GetBannerWithResponse(URL *url.URL, response string, req *http.Requ...
  function GetBannerWithURL (line 54) | func GetBannerWithURL(URL *url.URL, req *http.Request, cli *http.Client)...
  function convHttpBanner (line 66) | func convHttpBanner(URL *url.URL, banner *Banner) *httpfinger.Banner {

FILE: core/appfinger/appfinger_test.go
  function TestT (line 5) | func TestT(t *testing.T) {

FILE: core/appfinger/database.go
  function getRegexp (line 22) | func getRegexp(pattern string) *regexp.Regexp {
  function add (line 40) | func add(productName string, expression string) error {
  function InitDatabase (line 49) | func InitDatabase(path string) (n int, lastErr error) {
  function InitDatabaseFS (line 57) | func InitDatabaseFS(fs io.Reader) (n int, lastErr error) {
  function Clear (line 78) | func Clear() {
  function search (line 82) | func search(banner *httpfinger.Banner) []string {
  type Expression (line 93) | type Expression struct
    method match (line 136) | func (e *Expression) match(banner *httpfinger.Banner) bool {
    method makeBoolExpression (line 142) | func (e *Expression) makeBoolExpression(banner *httpfinger.Banner) str...
    method Split (line 151) | func (e *Expression) Split() []string {
    method Reduction (line 159) | func (e *Expression) Reduction(s string) string {
  function parseExpression (line 104) | func parseExpression(expr string) (*Expression, error) {
  function exprCharVerification (line 167) | func exprCharVerification(expr string) error {
  function exprSyntaxVerification (line 184) | func exprSyntaxVerification(expr string) error {
  type Param (line 193) | type Param struct
    method match (line 258) | func (p *Param) match(banner *httpfinger.Banner) bool {
    method String (line 302) | func (p *Param) String() string {
  type Operator (line 198) | type Operator
  constant unequal (line 201) | unequal    Operator = "!="
  constant equal (line 202) | equal               = "="
  constant regxEqual (line 203) | regxEqual           = "~="
  constant superEqual (line 204) | superEqual          = "=="
  function parseParam (line 222) | func parseParam(expr string) (*Param, error) {
  constant and (line 307) | and = iota
  constant or (line 308) | or
  function convOperator (line 311) | func convOperator(expr string) Operator {
  function parseBoolFromString (line 326) | func parseBoolFromString(expr string) (bool, error) {
  function stringParse (line 337) | func stringParse(expr string) (bool, error) {
  function parseCoupleBool (line 384) | func parseCoupleBool(first bool, next bool, operator int) bool {
  function findCoupleBracketIndex (line 394) | func findCoupleBracketIndex(expr string) (int, error) {
  function trimParentheses (line 420) | func trimParentheses(s string) string {
  function splitExpression (line 441) | func splitExpression(s string) []string {
  function recursiveSplitExpression (line 498) | func recursiveSplitExpression(s string) []string {
  type fingerPrint (line 512) | type fingerPrint struct
    method Match (line 545) | func (f *fingerPrint) Match(banner *httpfinger.Banner) string {
  function parseFingerPrint (line 524) | func parseFingerPrint(productName string, expressionString string) (*fin...

FILE: core/appfinger/gorpc/rpc.go
  function GetHostname (line 19) | func GetHostname(host string) ([]string, error) {
  function getResponse (line 32) | func getResponse(netloc string) ([]byte, error) {
  function resolvingResponse (line 73) | func resolvingResponse(text []byte) []string {

FILE: core/appfinger/gorpc/rpc_test.go
  function TestNetBIOS (line 8) | func TestNetBIOS(t *testing.T) {

FILE: core/appfinger/httpfinger/http.go
  type Banner (line 17) | type Banner struct
  function GetBannerWithURL (line 30) | func GetBannerWithURL(URL *url.URL, req *http.Request, cli *http.Client)...
  function GetBannerWithResponse (line 63) | func GetBannerWithResponse(URL *url.URL, response string, req *http.Requ...
  function getIcon (line 93) | func getIcon(URL url.URL, body string) string {
  function getIconPath (line 108) | func getIconPath(body string) string {
  function getIconHash (line 121) | func getIconHash(URL string) string {
  function getTitle (line 130) | func getTitle(body string) string {
  function getHash (line 141) | func getHash(body string) string {
  function getICP (line 159) | func getICP(body string) string {
  function GetURLPortString (line 165) | func GetURLPortString(URL *url.URL) string {
  function getStatusCode (line 181) | func getStatusCode(responseRaw string) int {

FILE: core/appfinger/iconhash/iconhash.go
  function standBase64 (line 13) | func standBase64(braw []byte) []byte {
  function mmh3Hash32 (line 27) | func mmh3Hash32(raw []byte) string {
  function Encode (line 36) | func Encode(buf []byte) string {
  function EncodeReader (line 40) | func EncodeReader(r io.Reader) (string, error) {

FILE: core/appfinger/type-banner.go
  type Banner (line 12) | type Banner struct
  function convBanner (line 26) | func convBanner(other interface{}) *Banner {
  function convBannerWithRaw (line 58) | func convBannerWithRaw(response string) *Banner {
  function getHash (line 70) | func getHash(body string) string {
  function findDomain (line 98) | func findDomain(strArr ...string) string {
  function findIP (line 119) | func findIP(strArr ...string) string {
  function removeDuplicate (line 135) | func removeDuplicate(p []string) []string {

FILE: core/appfinger/type-fingerprint.go
  type FingerPrint (line 3) | type FingerPrint struct
    method AddProduct (line 16) | func (f *FingerPrint) AddProduct(productName string) {
  function New (line 12) | func New() *FingerPrint {

FILE: core/gonmap/gonmap.go
  type Logger (line 20) | type Logger interface
  function init (line 26) | func init() {
  function initWithFilter (line 30) | func initWithFilter(filter int) {
  function statistical (line 69) | func statistical() {
  function repairNMAPString (line 80) | func repairNMAPString() {
  function customNMAPMatch (line 106) | func customNMAPMatch() {
  function optimizeNMAPProbes (line 141) | func optimizeNMAPProbes() {
  function SetFilter (line 168) | func SetFilter(filter int) {
  function SetLogger (line 172) | func SetLogger(v Logger) {
  function New (line 177) | func New() *Nmap {
  function GuessProtocol (line 182) | func GuessProtocol(port int) string {
  function FixProtocol (line 192) | func FixProtocol(oldProtocol string) string {

FILE: core/gonmap/gonmap_test.go
  function TestScan (line 9) | func TestScan(t *testing.T) {

FILE: core/gonmap/simplenet/send_test.go
  function TestName (line 11) | func TestName(t *testing.T) {
  function TestRuneALl (line 46) | func TestRuneALl(t *testing.T) {
  function TestUDPSend (line 62) | func TestUDPSend(t *testing.T) {

FILE: core/gonmap/simplenet/simplenet.go
  function tcpSend (line 13) | func tcpSend(protocol string, netloc string, data string, duration time....
  function tlsSend (line 48) | func tlsSend(protocol string, netloc string, data string, duration time....
  function Send (line 91) | func Send(protocol string, tls bool, netloc string, data string, duratio...

FILE: core/gonmap/type-fingerprint.go
  type FingerPrint (line 3) | type FingerPrint struct

FILE: core/gonmap/type-match.go
  type match (line 11) | type match struct
    method getPatternRegexp (line 73) | func (m *match) getPatternRegexp(pattern string, opt string) *regexp.R...
    method getVersionInfo (line 94) | func (m *match) getVersionInfo(s string, regID string) string {
    method makeVersionInfo (line 102) | func (m *match) makeVersionInfo(s string, f *FingerPrint) {
    method makeVersionInfoSubHelper (line 112) | func (m *match) makeVersionInfoSubHelper(s string, pattern string) str...
  function parseMatch (line 39) | func parseMatch(s string, soft bool) *match {

FILE: core/gonmap/type-nmap.go
  type Nmap (line 12) | type Nmap struct
    method ScanTimeout (line 33) | func (n *Nmap) ScanTimeout(ip string, port int, timeout time.Duration)...
    method Scan (line 58) | func (n *Nmap) Scan(ip string, port int) (status Status, response *Res...
    method getRealResponse (line 80) | func (n *Nmap) getRealResponse(host string, port int, timeout time.Dur...
    method getResponseBySSLSecondProbes (line 94) | func (n *Nmap) getResponseBySSLSecondProbes(host string, port int, tim...
    method getResponseByHTTPS (line 108) | func (n *Nmap) getResponseByHTTPS(host string, port int, timeout time....
    method getResponseByProbes (line 113) | func (n *Nmap) getResponseByProbes(host string, port int, timeout time...
    method getResponse (line 145) | func (n *Nmap) getResponse(host string, port int, tls bool, timeout ti...
    method getFinger (line 184) | func (n *Nmap) getFinger(responseRaw string, tls bool, requestName str...
    method convResponse (line 217) | func (n *Nmap) convResponse(s1 string) string {
    method SetTimeout (line 224) | func (n *Nmap) SetTimeout(timeout time.Duration) {
    method OpenDeepIdentify (line 228) | func (n *Nmap) OpenDeepIdentify() {
    method AddMatch (line 233) | func (n *Nmap) AddMatch(probeName string, expr string) {
    method loads (line 240) | func (n *Nmap) loads(s string) {
    method loadExclude (line 273) | func (n *Nmap) loadExclude(expr string) {
    method pushProbe (line 277) | func (n *Nmap) pushProbe(p probe) {
    method fixFallback (line 300) | func (n *Nmap) fixFallback() {
    method isCommand (line 314) | func (n *Nmap) isCommand(line string) bool {
    method sortOfRarity (line 339) | func (n *Nmap) sortOfRarity(list ProbeList) ProbeList {
  function DnsScan (line 350) | func DnsScan(host string, port int) bool {

FILE: core/gonmap/type-portlist.go
  type PortList (line 12) | type PortList
    method removeDuplicate (line 38) | func (p PortList) removeDuplicate() PortList {
    method exist (line 50) | func (p PortList) exist(port int) bool {
    method append (line 59) | func (p PortList) append(ports ...int) PortList {
  function parsePortList (line 16) | func parsePortList(express string) PortList {

FILE: core/gonmap/type-probe.go
  type probe (line 13) | type probe struct
    method scan (line 37) | func (p *probe) scan(host string, port int, tls bool, timeout time.Dur...
    method match (line 53) | func (p *probe) match(s string) *FingerPrint {
    method loadLine (line 98) | func (p *probe) loadLine(s string) {
    method loadProbe (line 126) | func (p *probe) loadProbe(s string) {
    method loadMatch (line 146) | func (p *probe) loadMatch(s string, soft bool) {
    method loadPorts (line 159) | func (p *probe) loadPorts(expr string, ssl bool) {
    method getInt (line 167) | func (p *probe) getInt(expr string) int {
    method getString (line 175) | func (p *probe) getString(expr string) string {
  function parseProbe (line 88) | func parseProbe(lines []string) *probe {

FILE: core/gonmap/type-probelist.go
  type ProbeList (line 3) | type ProbeList
    method removeDuplicate (line 7) | func (p ProbeList) removeDuplicate() ProbeList {
    method exist (line 19) | func (p ProbeList) exist(probeName string) bool {

FILE: core/gonmap/type-response.go
  constant Closed (line 4) | Closed     Status = 0x000a1
  constant Open (line 5) | Open              = 0x000b2
  constant Matched (line 6) | Matched           = 0x000c3
  constant NotMatched (line 7) | NotMatched        = 0x000d4
  constant Unknown (line 8) | Unknown           = 0x000e5
  type Status (line 11) | type Status
    method String (line 13) | func (s Status) String() string {
  type Response (line 30) | type Response struct

FILE: core/hydra/cracker.go
  function rdpCracker (line 21) | func rdpCracker(IPAddr string, port int) func(interface{}) error {
  function smbCracker (line 32) | func smbCracker(i interface{}) error {
  function webCracker (line 38) | func webCracker(i interface{}) error {
  function sshCracker (line 44) | func sshCracker(i interface{}) error {
  function telnetCracker (line 49) | func telnetCracker(serverType int) func(interface{}) error {
  function getTelnetServerType (line 56) | func getTelnetServerType(ip string, port int) int {
  function mysqlCracker (line 66) | func mysqlCracker(i interface{}) error {
  function mssqlCracker (line 71) | func mssqlCracker(i interface{}) error {
  function redisCracker (line 76) | func redisCracker(i interface{}) error {
  function ftpCracker (line 81) | func ftpCracker(i interface{}) error {
  function postgresqlCracker (line 86) | func postgresqlCracker(i interface{}) error {
  function oracleCracker (line 91) | func oracleCracker(sid string) func(interface{}) error {
  function mongodbCracker (line 99) | func mongodbCracker(i interface{}) error {

FILE: core/hydra/default_ftp_authlist.go
  function DefaultFtpList (line 3) | func DefaultFtpList() *AuthList {

FILE: core/hydra/default_mssql_authlist.go
  function DefaultMssqlList (line 3) | func DefaultMssqlList() *AuthList {

FILE: core/hydra/default_mysql_authlist.go
  function DefaultMysqlList (line 3) | func DefaultMysqlList() *AuthList {

FILE: core/hydra/default_oracle_authlist.go
  function DefaultOracleList (line 3) | func DefaultOracleList() *AuthList {

FILE: core/hydra/default_postgresql_authlist.go
  function DefaultPostgresqlList (line 3) | func DefaultPostgresqlList() *AuthList {

FILE: core/hydra/default_rdp_authlist.go
  function DefaultRdpList (line 3) | func DefaultRdpList() *AuthList {

FILE: core/hydra/default_redis_authlist.go
  function DefaultRedisList (line 3) | func DefaultRedisList() *AuthList {

FILE: core/hydra/default_smb_authlist.go
  function DefaultSmbList (line 3) | func DefaultSmbList() *AuthList {

FILE: core/hydra/default_ssh_authlist.go
  function DefaultSshList (line 3) | func DefaultSshList() *AuthList {

FILE: core/hydra/default_telnet_authlist.go
  function DefaultTelnetList (line 3) | func DefaultTelnetList() *AuthList {

FILE: core/hydra/defuault_mongodb_authlist.go
  function DefaultMongodbList (line 3) | func DefaultMongodbList() *AuthList {

FILE: core/hydra/ftp/ftp.go
  function Check (line 9) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/hydra.go
  type Cracker (line 14) | type Cracker struct
    method Retries (line 95) | func (c *Cracker) Retries(i int) {
    method success (line 102) | func (c *Cracker) success(info Auth) {
    method Run (line 107) | func (c *Cracker) Run() (*Auth, error) {
    method initJobFunc (line 130) | func (c *Cracker) initJobFunc() loginType {
    method generateWorker (line 179) | func (c *Cracker) generateWorker(f func(interface{}) error) func(inter...
    method dispatcher (line 202) | func (c *Cracker) dispatcher(onlyPassword bool) {
  function init (line 25) | func init() {
  function InitDefaultAuthMap (line 29) | func InitDefaultAuthMap() {
  type loginType (line 45) | type loginType
  constant ProtocolInvalid (line 48) | ProtocolInvalid                 loginType = "ProtocolInvalid"
  constant UsernameAndPassword (line 49) | UsernameAndPassword                       = "UsernameAndPassword"
  constant OnlyPassword (line 50) | OnlyPassword                              = "OnlyPassword"
  constant UnauthorizedAccessVulnerability (line 51) | UnauthorizedAccessVulnerability           = "UnauthorizedAccessVulnerabi...
  function NewCracker (line 74) | func NewCracker(info *AuthInfo, isAuthUpdate bool, threads int) *Cracker {
  function InitCustomAuthMap (line 215) | func InitCustomAuthMap(user, pass []string) {
  function Ok (line 221) | func Ok(protocol string) bool {

FILE: core/hydra/mongodb/mongodb.go
  function Check (line 12) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/mssql/mssql.go
  function Check (line 13) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/mysql/mysql.go
  function Check (line 13) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/oracle/oracle.go
  function Check (line 75) | func Check(Host, Username, Password string, Port int, SID string) error {
  function GetSID (line 96) | func GetSID(Host string, Port int, sids []string) string {
  function CheckSID (line 105) | func CheckSID(sid, Host string, Port int) bool {

FILE: core/hydra/oracle/oracle_test.go
  function TestGetSID (line 10) | func TestGetSID(t *testing.T) {
  function TestConnect (line 21) | func TestConnect(t *testing.T) {

FILE: core/hydra/postgresql/postgresql.go
  function Check (line 10) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/rdp/grdp.go
  function Check (line 8) | func Check(ip, domain, login, password string, port int, protocol string...

FILE: core/hydra/redis/redis.go
  function Check (line 11) | func Check(Host, Password string, Port int) error {
  function readResponse (line 37) | func readResponse(conn net.Conn) (r string, err error) {

FILE: core/hydra/smb/smb.go
  function Check (line 15) | func Check(Host, Username, Domain, Password string, Port int) error {

FILE: core/hydra/smb/smb_test.go
  function TestCheck (line 8) | func TestCheck(t *testing.T) {

FILE: core/hydra/ssh/ssh.go
  function Check (line 10) | func Check(Host, Username, Password string, Port int) error {

FILE: core/hydra/telnet/telnet.go
  function Check (line 7) | func Check(addr, username, password string, port, serverType int) error {

FILE: core/hydra/type-auth.go
  type Auth (line 5) | type Auth struct
    method MakePassword (line 47) | func (a *Auth) MakePassword() {
    method Map (line 53) | func (a *Auth) Map() map[string]string {
  function NewAuth (line 13) | func NewAuth() Auth {
  function NewAuthFromPasswords (line 22) | func NewAuthFromPasswords(passwords []string) []Auth {
  function NewAuthFromUsernameAndPassword (line 30) | func NewAuthFromUsernameAndPassword(usernames, passwords []string) []Auth {
  function NewSpecialAuth (line 40) | func NewSpecialAuth(username, password string) Auth {

FILE: core/hydra/type-authinfo.go
  type AuthInfo (line 8) | type AuthInfo struct
    method Display (line 27) | func (a *AuthInfo) Display() string {
  function NewAuthInfo (line 16) | func NewAuthInfo(IPAddr string, Port int, Protocol string) *AuthInfo {

FILE: core/hydra/type-authlist.go
  type AuthList (line 7) | type AuthList struct
    method IsEmpty (line 19) | func (a *AuthList) IsEmpty() bool {
    method Merge (line 26) | func (a *AuthList) Merge(list *AuthList) {
    method Replace (line 34) | func (a *AuthList) Replace(list *AuthList) {
    method Length (line 46) | func (a *AuthList) Length() int {
    method Dict (line 53) | func (a *AuthList) Dict(onlyPassword bool) []Auth {
  function NewAuthList (line 13) | func NewAuthList() *AuthList {

FILE: core/hydra/web/web.go
  function Check (line 15) | func Check(Host, Username, Domain, Password string, Port int) error {

FILE: core/pocScan/POC.go
  function WebScan (line 19) | func WebScan(info *app.HostInfo) {
  function Execute (line 39) | func Execute(PocInfo app.PocInfo) {
  function initpoc (line 56) | func initpoc() {
  function filterPoc (line 73) | func filterPoc(pocname string) (pocs []*lib.Poc) {
  function removeStandardPorts (line 86) | func removeStandardPorts(rawURL string) (string, error) {

FILE: core/pocScan/Plugins/ActiveMQ.go
  function ActiveMQScan (line 14) | func ActiveMQScan(info *app.HostInfo) (tmperr error) {
  function ActiveMQConn (line 186) | func ActiveMQConn(info *app.HostInfo, user string, pass string) (bool, e...

FILE: core/pocScan/Plugins/Cassandra.go
  function CassandraScan (line 14) | func CassandraScan(info *app.HostInfo) (tmperr error) {
  function CassandraConn (line 178) | func CassandraConn(info *app.HostInfo, user string, pass string) (bool, ...

FILE: core/pocScan/Plugins/Elasticsearch.go
  function ElasticScan (line 16) | func ElasticScan(info *app.HostInfo) (tmperr error) {
  function ElasticConn (line 181) | func ElasticConn(info *app.HostInfo, user string, pass string) (bool, er...

FILE: core/pocScan/Plugins/FcgiScan.go
  function FcgiScan (line 23) | func FcgiScan(info *app.HostInfo) error {
  constant FCGI_BEGIN_REQUEST (line 115) | FCGI_BEGIN_REQUEST uint8 = iota + 1
  constant FCGI_ABORT_REQUEST (line 116) | FCGI_ABORT_REQUEST
  constant FCGI_END_REQUEST (line 117) | FCGI_END_REQUEST
  constant FCGI_PARAMS (line 118) | FCGI_PARAMS
  constant FCGI_STDIN (line 119) | FCGI_STDIN
  constant FCGI_STDOUT (line 120) | FCGI_STDOUT
  constant FCGI_STDERR (line 121) | FCGI_STDERR
  constant FCGI_RESPONDER (line 125) | FCGI_RESPONDER uint8 = iota + 1
  constant maxWrite (line 129) | maxWrite = 6553500
  constant maxPad (line 130) | maxPad   = 255
  type header (line 133) | type header struct
    method init (line 142) | func (h *header) init(recType uint8, reqId uint16, contentLength int) {
  type record (line 150) | type record struct
    method read (line 155) | func (rec *record) read(r io.Reader) (err error) {
    method content (line 169) | func (r *record) content() []byte {
  type FCGIClient (line 173) | type FCGIClient struct
    method writeRecord (line 190) | func (c *FCGIClient) writeRecord(recType uint8, reqId uint16, content ...
    method writeBeginRequest (line 208) | func (c *FCGIClient) writeBeginRequest(reqId uint16, role uint16, flag...
    method writeEndRequest (line 213) | func (c *FCGIClient) writeEndRequest(reqId uint16, appStatus int, prot...
    method writePairs (line 220) | func (c *FCGIClient) writePairs(recType uint8, reqId uint16, pairs map...
    method Request (line 323) | func (c *FCGIClient) Request(env map[string]string, reqStr string) (re...
  function New (line 181) | func New(addr string, timeout int64) (fcgi *FCGIClient, err error) {
  function readSize (line 240) | func readSize(s []byte) (uint32, int) {
  function readString (line 256) | func readString(s []byte, size uint32) string {
  function encodeSize (line 263) | func encodeSize(b []byte, size uint32) int {
  type bufWriter (line 275) | type bufWriter struct
    method Close (line 280) | func (w *bufWriter) Close() error {
  function newWriter (line 288) | func newWriter(c *FCGIClient, recType uint8, reqId uint16) *bufWriter {
  type streamWriter (line 296) | type streamWriter struct
    method Write (line 302) | func (w *streamWriter) Write(p []byte) (int, error) {
    method Close (line 318) | func (w *streamWriter) Close() error {

FILE: core/pocScan/Plugins/IMAP.go
  function IMAPScan (line 18) | func IMAPScan(info *app.HostInfo) (tmperr error) {
  function IMAPConn (line 124) | func IMAPConn(info *app.HostInfo, user string, pass string) (bool, error) {
  function tryIMAPAuth (line 152) | func tryIMAPAuth(conn net.Conn, user string, pass string, timeout time.D...

FILE: core/pocScan/Plugins/InfoScan.go
  type CheckDatas (line 9) | type CheckDatas struct
  function getInfoRegexp (line 19) | func getInfoRegexp(pattern string) *regexp.Regexp {
  function InfoCheck (line 37) | func InfoCheck(Url string, CheckData *[]CheckDatas) []string {
  function removeDuplicateElement (line 63) | func removeDuplicateElement(languages []string) []string {

FILE: core/pocScan/Plugins/Kafka.go
  function KafkaScan (line 15) | func KafkaScan(info *app.HostInfo) (tmperr error) {
  function KafkaConn (line 171) | func KafkaConn(info *app.HostInfo, user string, pass string) (bool, erro...

FILE: core/pocScan/Plugins/LDAP.go
  function LDAPScan (line 15) | func LDAPScan(info *app.HostInfo) (tmperr error) {
  function LDAPConn (line 156) | func LDAPConn(info *app.HostInfo, user string, pass string) (bool, error) {

FILE: core/pocScan/Plugins/Memcached.go
  function MemcachedScan (line 15) | func MemcachedScan(info *app.HostInfo) error {

FILE: core/pocScan/Plugins/Modbus.go
  function ModbusScan (line 15) | func ModbusScan(info *app.HostInfo) error {
  function buildModbusRequest (line 93) | func buildModbusRequest() []byte {
  function isValidModbusResponse (line 111) | func isValidModbusResponse(response []byte) bool {
  function parseModbusResponse (line 132) | func parseModbusResponse(response []byte) string {

FILE: core/pocScan/Plugins/Neo4j.go
  function Neo4jScan (line 14) | func Neo4jScan(info *app.HostInfo) (tmperr error) {
  function Neo4jConn (line 215) | func Neo4jConn(info *app.HostInfo, user string, pass string) (bool, erro...

FILE: core/pocScan/Plugins/NetBIOS.go
  function NetBIOSQ (line 20) | func NetBIOSQ(info *app.HostInfo) error {
  function ReadBytes (line 71) | func ReadBytes(conn net.Conn) ([]byte, error) {
  function NetBIOS1 (line 101) | func NetBIOS1(info *app.HostInfo) (netbios NetBiosInfo, err error) {
  function GetNbnsname (line 160) | func GetNbnsname(info *app.HostInfo) (netbios NetBiosInfo, err error) {
  function bytetoint (line 182) | func bytetoint(text byte) (int, error) {
  function netbiosEncode (line 188) | func netbiosEncode(name string) (output []byte) {
  type NetBiosInfo (line 264) | type NetBiosInfo struct
    method String (line 276) | func (info *NetBiosInfo) String() (output string) {
  function ParseNetBios (line 315) | func ParseNetBios(input []byte) (netbios NetBiosInfo, err error) {
  function ParseNTLM (line 359) | func ParseNTLM(ret []byte) (netbios NetBiosInfo, err error) {
  function JoinNetBios (line 431) | func JoinNetBios(netbios1, netbios2 *NetBiosInfo) *NetBiosInfo {

FILE: core/pocScan/Plugins/POP3.go
  function POP3Scan (line 16) | func POP3Scan(info *app.HostInfo) (tmperr error) {
  function POP3Conn (line 129) | func POP3Conn(info *app.HostInfo, user string, pass string) (success boo...
  function tryPOP3Auth (line 156) | func tryPOP3Auth(conn net.Conn, user string, pass string, timeout time.D...

FILE: core/pocScan/Plugins/RabbitMQ.go
  function RabbitMQScan (line 16) | func RabbitMQScan(info *app.HostInfo) (tmperr error) {
  function RabbitMQConn (line 210) | func RabbitMQConn(info *app.HostInfo, user string, pass string) (bool, e...

FILE: core/pocScan/Plugins/Rsync.go
  function RsyncScan (line 14) | func RsyncScan(info *app.HostInfo) (tmperr error) {
  function RsyncConn (line 174) | func RsyncConn(info *app.HostInfo, user string, pass string) (bool, erro...

FILE: core/pocScan/Plugins/SMTP.go
  function SmtpScanQ (line 16) | func SmtpScanQ(info *app.HostInfo) (tmperr error) {
  function SmtpConn (line 177) | func SmtpConn(info *app.HostInfo, user string, pass string) (bool, error) {

FILE: core/pocScan/Plugins/SNMP.go
  function SNMPScan (line 15) | func SNMPScan(info *app.HostInfo) (tmperr error) {
  function SNMPConnect (line 125) | func SNMPConnect(info *app.HostInfo, community string, portNum int) (boo...

FILE: core/pocScan/Plugins/SmbGhost.go
  constant pkt (line 15) | pkt = "\x00" + // session
  function SmbGhost (line 101) | func SmbGhost(info *app.HostInfo) error {
  function SmbGhostScan (line 108) | func SmbGhostScan(info *app.HostInfo) error {

FILE: core/pocScan/Plugins/VNC.go
  function VncScan (line 14) | func VncScan(info *app.HostInfo) (tmperr error) {
  function VncConn (line 120) | func VncConn(info *app.HostInfo, pass string) (flag bool, err error) {

FILE: core/pocScan/Plugins/findnet.go
  function Findnet (line 23) | func Findnet(info *app.HostInfo) error {
  function FindnetScan (line 28) | func FindnetScan(info *app.HostInfo) error {
  function HexUnicodeStringToString (line 71) | func HexUnicodeStringToString(src string) string {
  function read (line 96) | func read(text []byte, host string) error {

FILE: core/pocScan/Plugins/ms17010.go
  function MS17010 (line 38) | func MS17010(info *app.HostInfo) error {
  function MS17010Scan (line 47) | func MS17010Scan(info *app.HostInfo) error {
  function AesDecrypt (line 191) | func AesDecrypt(cryted string, key string) string {
  function PKCS7UnPadding (line 210) | func PKCS7UnPadding(origData []byte) []byte {

FILE: core/pocScan/info/rules.go
  type RuleData (line 3) | type RuleData struct
  type Md5Data (line 9) | type Md5Data struct
  type PocData (line 14) | type PocData struct

FILE: core/pocScan/lib/check.go
  type Task (line 27) | type Task struct
  function CheckMultiPoc (line 32) | func CheckMultiPoc(req *http.Request, pocs []*Poc, workers int) {
  function executePoc (line 86) | func executePoc(oReq *http.Request, p *Poc) (bool, error, string) {
  function getRegexp (line 237) | func getRegexp(pattern string) *regexp.Regexp {
  function doSearch (line 259) | func doSearch(re string, body string) map[string]string {
  function optimizeCookies (line 282) | func optimizeCookies(rawCookie string) (output string) {
  function newReverse (line 299) | func newReverse() *Reverse {
  function clusterpoc (line 315) | func clusterpoc(oReq *http.Request, p *Poc, variableMap map[string]inter...
  function isFuzz (line 523) | func isFuzz(rule Rules, Sets ListMap) bool {
  function Combo (line 541) | func Combo(input ListMap) (output [][]string) {
  function MakeData (line 553) | func MakeData(base [][]string, nextData []string) (output [][]string) {
  function clustersend (line 565) | func clustersend(oReq *http.Request, variableMap map[string]interface{},...
  function cloneRules (line 630) | func cloneRules(tags Rules) Rules {
  function cloneMap (line 642) | func cloneMap(tags map[string]string) map[string]string {
  function evalset (line 650) | func evalset(env *cel.Env, variableMap map[string]interface{}, k string,...
  function evalset1 (line 667) | func evalset1(env *cel.Env, variableMap map[string]interface{}, k string...
  function CheckInfoPoc (line 677) | func CheckInfoPoc(infostr string) string {
  function GetHeader (line 686) | func GetHeader(header map[string]string) (output string) {

FILE: core/pocScan/lib/client.go
  function Inithttp (line 28) | func Inithttp() {
  function InitHttpClient (line 39) | func InitHttpClient(ThreadsNum int, DownProxy string, Timeout time.Durat...
  type Poc (line 97) | type Poc struct
  type StrMap (line 108) | type StrMap
    method UnmarshalYAML (line 126) | func (r *StrMap) UnmarshalYAML(unmarshal func(interface{}) error) error {
  type ListMap (line 109) | type ListMap
    method UnmarshalYAML (line 175) | func (r *ListMap) UnmarshalYAML(unmarshal func(interface{}) error) err...
  type RuleMap (line 110) | type RuleMap
    method UnmarshalYAML (line 157) | func (r *RuleMap) UnmarshalYAML(unmarshal func(interface{}) error) err...
  type StrItem (line 112) | type StrItem struct
  type ListItem (line 116) | type ListItem struct
  type RuleItem (line 121) | type RuleItem struct
  type Rules (line 199) | type Rules struct
  type Detail (line 210) | type Detail struct
  function LoadMultiPoc (line 217) | func LoadMultiPoc(Pocs embed.FS, pocname string) []*Poc {
  function LoadPoc (line 229) | func LoadPoc(fileName string, Pocs embed.FS) (*Poc, error) {
  function SelectPoc (line 245) | func SelectPoc(Pocs embed.FS, pocname string) []string {
  function LoadPocbyPath (line 259) | func LoadPocbyPath(fileName string) (*Poc, error) {

FILE: core/pocScan/lib/eval.go
  function NewEnv (line 29) | func NewEnv(c *CustomLib) (*cel.Env, error) {
  function Evaluate (line 33) | func Evaluate(env *cel.Env, expression string, params map[string]interfa...
  function UrlTypeToString (line 57) | func UrlTypeToString(u *UrlType) string {
  type CustomLib (line 93) | type CustomLib struct
    method CompileOptions (line 525) | func (c *CustomLib) CompileOptions() []cel.EnvOption {
    method ProgramOptions (line 529) | func (c *CustomLib) ProgramOptions() []cel.ProgramOption {
    method UpdateCompileOptions (line 533) | func (c *CustomLib) UpdateCompileOptions(args StrMap) {
  function NewEnvOption (line 98) | func NewEnvOption() CustomLib {
  function randomLowercase (line 555) | func randomLowercase(n int) string {
  function randomUppercase (line 562) | func randomUppercase(n int) string {
  function randomString (line 569) | func randomString(n int) string {
  function reverseCheck (line 576) | func reverseCheck(r *Reverse, timeout int64) bool {
  function RandomCryptoStr (line 597) | func RandomCryptoStr(letterBytes string, n int) string {
  function RandomStr (line 616) | func RandomStr(randSource *rand.Rand, letterBytes string, n int) string {
  function DoRequest (line 638) | func DoRequest(req *http.Request, redirect bool) (*Response, error) {
  function ParseUrl (line 666) | func ParseUrl(u *url.URL) *UrlType {
  function ParseRequest (line 678) | func ParseRequest(oReq *http.Request) (*Request, error) {
  function ParseResponse (line 700) | func ParseResponse(oResp *http.Response) (*Response, error) {
  function getRespBody (line 715) | func getRespBody(oResp *http.Response) (body []byte, err error) {

FILE: core/pocScan/lib/http.pb.go
  constant _ (line 20) | _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  constant _ (line 22) | _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  type UrlType (line 25) | type UrlType struct
    method Reset (line 39) | func (x *UrlType) Reset() {
    method String (line 48) | func (x *UrlType) String() string {
    method ProtoMessage (line 52) | func (*UrlType) ProtoMessage() {}
    method ProtoReflect (line 54) | func (x *UrlType) ProtoReflect() protoreflect.Message {
    method Descriptor (line 67) | func (*UrlType) Descriptor() ([]byte, []int) {
    method GetScheme (line 71) | func (x *UrlType) GetScheme() string {
    method GetDomain (line 78) | func (x *UrlType) GetDomain() string {
    method GetHost (line 85) | func (x *UrlType) GetHost() string {
    method GetPort (line 92) | func (x *UrlType) GetPort() string {
    method GetPath (line 99) | func (x *UrlType) GetPath() string {
    method GetQuery (line 106) | func (x *UrlType) GetQuery() string {
    method GetFragment (line 113) | func (x *UrlType) GetFragment() string {
  type Request (line 120) | type Request struct
    method Reset (line 132) | func (x *Request) Reset() {
    method String (line 141) | func (x *Request) String() string {
    method ProtoMessage (line 145) | func (*Request) ProtoMessage() {}
    method ProtoReflect (line 147) | func (x *Request) ProtoReflect() protoreflect.Message {
    method Descriptor (line 160) | func (*Request) Descriptor() ([]byte, []int) {
    method GetUrl (line 164) | func (x *Request) GetUrl() *UrlType {
    method GetMethod (line 171) | func (x *Request) GetMethod() string {
    method GetHeaders (line 178) | func (x *Request) GetHeaders() map[string]string {
    method GetContentType (line 185) | func (x *Request) GetContentType() string {
    method GetBody (line 192) | func (x *Request) GetBody() []byte {
  type Response (line 199) | type Response struct
    method Reset (line 212) | func (x *Response) Reset() {
    method String (line 221) | func (x *Response) String() string {
    method ProtoMessage (line 225) | func (*Response) ProtoMessage() {}
    method ProtoReflect (line 227) | func (x *Response) ProtoReflect() protoreflect.Message {
    method Descriptor (line 240) | func (*Response) Descriptor() ([]byte, []int) {
    method GetUrl (line 244) | func (x *Response) GetUrl() *UrlType {
    method GetStatus (line 251) | func (x *Response) GetStatus() int32 {
    method GetHeaders (line 258) | func (x *Response) GetHeaders() map[string]string {
    method GetContentType (line 265) | func (x *Response) GetContentType() string {
    method GetBody (line 272) | func (x *Response) GetBody() []byte {
    method GetDuration (line 279) | func (x *Response) GetDuration() float64 {
  type Reverse (line 286) | type Reverse struct
    method Reset (line 297) | func (x *Reverse) Reset() {
    method String (line 306) | func (x *Reverse) String() string {
    method ProtoMessage (line 310) | func (*Reverse) ProtoMessage() {}
    method ProtoReflect (line 312) | func (x *Reverse) ProtoReflect() protoreflect.Message {
    method Descriptor (line 325) | func (*Reverse) Descriptor() ([]byte, []int) {
    method GetUrl (line 329) | func (x *Reverse) GetUrl() string {
    method GetDomain (line 336) | func (x *Reverse) GetDomain() string {
    method GetIp (line 343) | func (x *Reverse) GetIp() string {
    method GetIsDomainNameServer (line 350) | func (x *Reverse) GetIsDomainNameServer() bool {
  function file_http_proto_rawDescGZIP (line 419) | func file_http_proto_rawDescGZIP() []byte {
  function init (line 447) | func init() { file_http_proto_init() }
  function file_http_proto_init (line 448) | func file_http_proto_init() {

FILE: core/pocScan/lib/proxy.go
  function WrapperTcpWithTimeout (line 13) | func WrapperTcpWithTimeout(network, address string, timeout time.Duratio...
  function WrapperTCP (line 18) | func WrapperTCP(network, address string, forward *net.Dialer) (net.Conn,...
  function Socks5Dailer (line 41) | func Socks5Dailer(forward *net.Dialer) (proxy.Dialer, error) {

FILE: core/pocScan/lib/shiro.go
  function Padding (line 19) | func Padding(plainText []byte, blockSize int) []byte {
  function GetShrioCookie (line 28) | func GetShrioCookie(key, mode string) string {
  function AES_CBC_Encrypt (line 38) | func AES_CBC_Encrypt(shirokey string) string {
  function AES_GCM_Encrypt (line 56) | func AES_GCM_Encrypt(shirokey string) string {

FILE: core/pocScan/webtitle.go
  function WebTitle (line 24) | func WebTitle(info *app.HostInfo) error {
  function GOWebTitle (line 31) | func GOWebTitle(info *app.HostInfo) (err error, CheckData []Plugins.Chec...
  function geturl (line 107) | func geturl(info *app.HostInfo, flag int, CheckData []Plugins.CheckDatas...
  function getRespBody (line 186) | func getRespBody(oResp *http.Response) ([]byte, error) {
  function gettitle (line 210) | func gettitle(body []byte) (title string) {
  function GetProtocol (line 230) | func GetProtocol(host string, Timeout int64) (protocol string) {
  function WrapperTcpWithTimeout (line 263) | func WrapperTcpWithTimeout(network, address string, timeout time.Duratio...
  function WrapperTCP (line 268) | func WrapperTCP(network, address string, forward *net.Dialer) (net.Conn,...
  function Socks5Dailer (line 291) | func Socks5Dailer(forward *net.Dialer) (proxy.Dialer, error) {

FILE: core/scanner/type-client-exp.go
  type foo4 (line 5) | type foo4 struct
  type EXPClient (line 10) | type EXPClient struct
    method Push (line 28) | func (c *EXPClient) Push(addr net.IP, port int) {
  function NewEXPScanner (line 15) | func NewEXPScanner(config *Config) *EXPClient {

FILE: core/scanner/type-client-httppoc.go
  type foo5 (line 5) | type foo5 struct
  type HTTPPOCClient (line 9) | type HTTPPOCClient struct
    method Push (line 27) | func (c *HTTPPOCClient) Push(URL *url.URL) {
  function NewHTTPPOCScanner (line 14) | func NewHTTPPOCScanner(config *Config) *HTTPPOCClient {

FILE: core/scanner/type-client-hydra.go
  type HydraClient (line 9) | type HydraClient struct
    method Push (line 46) | func (c *HydraClient) Push(addr net.IP, port int, protocol string) {
  type foo3 (line 15) | type foo3 struct
  function NewHydraScanner (line 21) | func NewHydraScanner(config *Config) *HydraClient {

FILE: core/scanner/type-client-ip.go
  type IPClient (line 9) | type IPClient struct
    method Push (line 43) | func (c *IPClient) Push(ips ...net.IP) {
  function NewIPScanner (line 16) | func NewIPScanner(config *Config) *IPClient {

FILE: core/scanner/type-client-port.go
  type foo1 (line 8) | type foo1 struct
  type PortClient (line 13) | type PortClient struct
    method Push (line 55) | func (c *PortClient) Push(ip net.IP, num int) {
  function NewPortScanner (line 23) | func NewPortScanner(config *Config) *PortClient {

FILE: core/scanner/type-client.go
  type client (line 5) | type client struct
    method Stop (line 12) | func (c *client) Stop() {
    method Start (line 17) | func (c *client) Start() {
    method Run (line 21) | func (c *client) Run() {
    method Defer (line 25) | func (c *client) Defer(f func()) {
    method IsDone (line 29) | func (c *client) IsDone() bool {
    method RunningThreads (line 33) | func (c *client) RunningThreads() int {
  function newConfig (line 37) | func newConfig(config *Config, threads int) *client {

FILE: core/scanner/type-clinet-url.go
  type foo2 (line 11) | type foo2 struct
  constant NotSupportProtocol (line 19) | NotSupportProtocol = "protocol is not support"
  type URLClient (line 22) | type URLClient struct
    method Push (line 70) | func (c *URLClient) Push(URL *url.URL, response *gonmap.Response, req ...
  function NewURLScanner (line 28) | func NewURLScanner(config *Config) *URLClient {
  function appendTcpBannerInFinger (line 74) | func appendTcpBannerInFinger(finger *appfinger.FingerPrint, gonmapFinger...

FILE: core/scanner/type-config.go
  type Config (line 5) | type Config struct
  function DefaultConfig (line 14) | func DefaultConfig() *Config {

FILE: core/scanner/type-response.go
  type Banner (line 3) | type Banner struct
  type FingerPrint (line 13) | type FingerPrint struct

FILE: core/slog/slog.go
  type Level (line 14) | type Level
  constant DEBUG (line 17) | DEBUG Level = 0x0000a1
  constant INFO (line 18) | INFO        = 0x0000b2
  constant WARN (line 19) | WARN        = 0x0000c3
  constant ERROR (line 20) | ERROR       = 0x0000d4
  constant DATA (line 21) | DATA        = 0x0000f5
  constant NONE (line 22) | NONE        = 0x0000e6
  type Logger (line 25) | type Logger struct
    method Printf (line 31) | func (l *Logger) Printf(format string, s ...interface{}) {
    method Println (line 36) | func (l *Logger) Println(s ...interface{}) {
  function debugModifier (line 73) | func debugModifier(s string) string {
  function debugFilter (line 81) | func debugFilter(s string) bool {
  function Printf (line 99) | func Printf(level Level, format string, s ...interface{}) {
  function Println (line 103) | func Println(level Level, s ...interface{}) {
  function SetLevel (line 124) | func SetLevel(level Level) {
  function SetOutput (line 142) | func SetOutput(writer io.Writer) {
  function Debug (line 150) | func Debug() *Logger {

FILE: core/spy/spy.go
  function Start (line 20) | func Start() {
  function makeInterfaceGatwayList (line 97) | func makeInterfaceGatwayList() []string {
  function internetTesting (line 115) | func internetTesting() bool {
  function dnsTesting (line 125) | func dnsTesting() bool {
  function getInterfaces (line 135) | func getInterfaces() (up []string, down []string) {
  function HostDiscoveryIcmpPool (line 159) | func HostDiscoveryIcmpPool(gatewayArr []string) {
  function pushTarget (line 184) | func pushTarget(ip string) {

FILE: core/stdio/chinese/chinese.go
  function ByteToGBK (line 8) | func ByteToGBK(strBuf []byte) []byte {
  function ByteToUTF8 (line 26) | func ByteToUTF8(strBuf []byte) []byte {
  function ToGBK (line 44) | func ToGBK(str string) string {
  function ToUTF8 (line 51) | func ToUTF8(str string) string {
  function isUtf8 (line 57) | func isUtf8(buf []byte) bool {

FILE: core/stdio/chinese/chinese_test.go
  function TestRune (line 8) | func TestRune(t *testing.T) {

FILE: core/stdio/stdio.go
  constant utf8 (line 15) | utf8 = 0x00000a1
  constant gbk (line 16) | gbk  = 0x00000b2
  type Writer (line 21) | type Writer struct
    method Write (line 29) | func (w *Writer) Write(p []byte) (n int, err error) {
  function init (line 23) | func init() {
  function SetUTF8 (line 41) | func SetUTF8() {
  function SetGBK (line 45) | func SetGBK() {
  function SetEncoding (line 49) | func SetEncoding(s string) {

FILE: lib/color/color.go
  function init (line 44) | func init() {
  function Enabled (line 50) | func Enabled() {
  function Disabled (line 54) | func Disabled() {
  function convANSI (line 58) | func convANSI(s string, color int, background int, format []int) string {
  function convColor (line 77) | func convColor(s string, color string) string {
  function convBackground (line 80) | func convBackground(s string, color string) string {
  function convFormats (line 84) | func convFormats(s string, formats []int) string {
  function convFormat (line 88) | func convFormat(s string, format string) string {
  function Bold (line 92) | func Bold(s string) string {
  function Italic (line 96) | func Italic(s string) string {
  function Underline (line 100) | func Underline(s string) string {
  function Overturn (line 104) | func Overturn(s string) string {
  function Red (line 108) | func Red(s string) string {
  function RedB (line 111) | func RedB(s string) string {
  function White (line 115) | func White(s string) string {
  function WhiteB (line 118) | func WhiteB(s string) string {
  function Yellow (line 122) | func Yellow(s string) string {
  function YellowB (line 125) | func YellowB(s string) string {
  function Green (line 129) | func Green(s string) string {
  function GreenB (line 132) | func GreenB(s string) string {
  function Purple (line 136) | func Purple(s string) string {
  function PurpleB (line 139) | func PurpleB(s string) string {
  function Cyan (line 143) | func Cyan(s string) string {
  function CyanB (line 146) | func CyanB(s string) string {
  function Blue (line 150) | func Blue(s string) string {
  function BlueB (line 153) | func BlueB(s string) string {
  function Black (line 157) | func Black(s string) string {
  function BlackB (line 161) | func BlackB(s string) string {
  function Important (line 165) | func Important(s string) string {
  function Warning (line 172) | func Warning(s string) string {
  function Tips (line 179) | func Tips(s string) string {
  function Random (line 184) | func Random(s string) string {
  function Count (line 188) | func Count(s string) int {
  function Clear (line 193) | func Clear(s string) string {
  function RandomImportant (line 222) | func RandomImportant(s string) string {
  function StrSliceRandomColor (line 227) | func StrSliceRandomColor(strSlice []string) string {
  function StrMapRandomColor (line 236) | func StrMapRandomColor(m map[string]string, printKey bool, importantKey ...
  function StrRandomColor (line 261) | func StrRandomColor(chars string) string {
  function randomFgColor (line 280) | func randomFgColor() colorR.Color {
  function randomBgColor (line 289) | func randomBgColor() colorR.Color {
  function isInStrArr (line 297) | func isInStrArr(slice []string, val string) bool {

FILE: lib/color/color_test.go
  type gogo (line 8) | type gogo struct
  function TestColor (line 13) | func TestColor(t *testing.T) {
  function TestStr (line 38) | func TestStr(t *testing.T) {

FILE: lib/dns/dns.go
  function LookupCNAME (line 19) | func LookupCNAME(domain string) ([]string, error) {
  function LookupCNAMEWithServer (line 32) | func LookupCNAMEWithServer(domain, domainServer string) ([]string, error) {
  function LookupIP (line 53) | func LookupIP(domain string) ([]string, error) {
  function generateResolver (line 69) | func generateResolver() []*net.Resolver {

FILE: lib/dns/dns_test.go
  function TestDNS (line 11) | func TestDNS(t *testing.T) {

FILE: lib/gosmb/gosmb.go
  constant pkt (line 10) | pkt = "\x00\x00\x00\xc0\xfeSMB@\x00\x00\x00\x00\x00\x00\x00\x00\x00\x1f\...
  function SmbGhostScan (line 20) | func SmbGhostScan(host string) error {

FILE: lib/gosmb/gosmb_test.go
  function TestName (line 5) | func TestName(t *testing.T) {

FILE: lib/gotelnet/telnet.go
  constant TIME_DELAY_AFTER_WRITE (line 15) | TIME_DELAY_AFTER_WRITE = 300 * time.Millisecond
  constant IAC (line 18) | IAC  = byte(255)
  constant DONT (line 19) | DONT = byte(254)
  constant DO (line 20) | DO   = byte(253)
  constant WONT (line 21) | WONT = byte(252)
  constant WILL (line 22) | WILL = byte(251)
  constant SB (line 23) | SB   = byte(250)
  constant SE (line 24) | SE   = byte(240)
  constant NULL (line 26) | NULL  = byte(0)
  constant EOF (line 27) | EOF   = byte(236)
  constant SUSP (line 28) | SUSP  = byte(237)
  constant ABORT (line 29) | ABORT = byte(238)
  constant REOR (line 30) | REOR  = byte(239)
  constant NOP (line 31) | NOP   = byte(241)
  constant DM (line 32) | DM    = byte(242)
  constant BRK (line 33) | BRK   = byte(243)
  constant IP (line 34) | IP    = byte(244)
  constant AO (line 35) | AO    = byte(245)
  constant AYT (line 36) | AYT   = byte(246)
  constant EC (line 37) | EC    = byte(247)
  constant EL (line 38) | EL    = byte(248)
  constant GA (line 39) | GA    = byte(249)
  constant BINARY (line 43) | BINARY         = byte(0)
  constant ECHO (line 44) | ECHO           = byte(1)
  constant RCP (line 45) | RCP            = byte(2)
  constant SGA (line 46) | SGA            = byte(3)
  constant NAMS (line 47) | NAMS           = byte(4)
  constant STATUS (line 48) | STATUS         = byte(5)
  constant TM (line 49) | TM             = byte(6)
  constant RCTE (line 50) | RCTE           = byte(7)
  constant NAOL (line 51) | NAOL           = byte(8)
  constant NAOP (line 52) | NAOP           = byte(9)
  constant NAOCRD (line 53) | NAOCRD         = byte(10)
  constant NAOHTS (line 54) | NAOHTS         = byte(11)
  constant NAOHTD (line 55) | NAOHTD         = byte(12)
  constant NAOFFD (line 56) | NAOFFD         = byte(13)
  constant NAOVTS (line 57) | NAOVTS         = byte(14)
  constant NAOVTD (line 58) | NAOVTD         = byte(15)
  constant NAOLFD (line 59) | NAOLFD         = byte(16)
  constant XASCII (line 60) | XASCII         = byte(17)
  constant LOGOUT (line 61) | LOGOUT         = byte(18)
  constant BM (line 62) | BM             = byte(19)
  constant DET (line 63) | DET            = byte(20)
  constant SUPDUP (line 64) | SUPDUP         = byte(21)
  constant SUPDUPOUTPUT (line 65) | SUPDUPOUTPUT   = byte(22)
  constant SNDLOC (line 66) | SNDLOC         = byte(23)
  constant TTYPE (line 67) | TTYPE          = byte(24)
  constant EOR (line 68) | EOR            = byte(25)
  constant TUID (line 69) | TUID           = byte(26)
  constant OUTMRK (line 70) | OUTMRK         = byte(27)
  constant TTYLOC (line 71) | TTYLOC         = byte(28)
  constant VT3270REGIME (line 72) | VT3270REGIME   = byte(29)
  constant X3PAD (line 73) | X3PAD          = byte(30)
  constant NAWS (line 74) | NAWS           = byte(31)
  constant TSPEED (line 75) | TSPEED         = byte(32)
  constant LFLOW (line 76) | LFLOW          = byte(33)
  constant LINEMODE (line 77) | LINEMODE       = byte(34)
  constant XDISPLOC (line 78) | XDISPLOC       = byte(35)
  constant OLD_ENVIRON (line 79) | OLD_ENVIRON    = byte(36)
  constant AUTHENTICATION (line 80) | AUTHENTICATION = byte(37)
  constant ENCRYPT (line 81) | ENCRYPT        = byte(38)
  constant NEW_ENVIRON (line 82) | NEW_ENVIRON    = byte(39)
  constant TN3270E (line 87) | TN3270E             = byte(40)
  constant XAUTH (line 88) | XAUTH               = byte(41)
  constant CHARSET (line 89) | CHARSET             = byte(42)
  constant RSP (line 90) | RSP                 = byte(43)
  constant COM_PORT_OPTION (line 91) | COM_PORT_OPTION     = byte(44)
  constant SUPPRESS_LOCAL_ECHO (line 92) | SUPPRESS_LOCAL_ECHO = byte(45)
  constant TLS (line 93) | TLS                 = byte(46)
  constant KERMIT (line 94) | KERMIT              = byte(47)
  constant SEND_URL (line 95) | SEND_URL            = byte(48)
  constant FORWARD_X (line 96) | FORWARD_X           = byte(49)
  constant PRAGMA_LOGON (line 97) | PRAGMA_LOGON        = byte(138)
  constant SSPI_LOGON (line 98) | SSPI_LOGON          = byte(139)
  constant PRAGMA_HEARTBEAT (line 99) | PRAGMA_HEARTBEAT    = byte(140)
  constant EXOPL (line 100) | EXOPL               = byte(255)
  constant NOOPT (line 101) | NOOPT               = byte(0)
  constant Closed (line 105) | Closed = iota
  constant UnauthorizedAccess (line 106) | UnauthorizedAccess
  constant OnlyPassword (line 107) | OnlyPassword
  constant UsernameAndPassword (line 108) | UsernameAndPassword
  type Client (line 111) | type Client struct
    method Connect (line 133) | func (c *Client) Connect() error {
    method WriteContext (line 168) | func (c *Client) WriteContext(s string) {
    method ReadContext (line 172) | func (c *Client) ReadContext() string {
    method Netloc (line 183) | func (c *Client) Netloc() string {
    method Close (line 187) | func (c *Client) Close() {
    method SerializationResponse (line 191) | func (c *Client) SerializationResponse(responseBuf []byte) (displayBuf...
    method MakeReplyFromList (line 237) | func (c *Client) MakeReplyFromList(list [][]byte) []byte {
    method MakeReply (line 245) | func (c *Client) MakeReply(command []byte) []byte {
    method read (line 320) | func (c *Client) read() ([]byte, error) {
    method write (line 332) | func (c *Client) write(buf []byte) error {
    method Login (line 342) | func (c *Client) Login() error {
    method MakeServerType (line 356) | func (c *Client) MakeServerType() int {
    method loginForOnlyPassword (line 387) | func (c *Client) loginForOnlyPassword() error {
    method loginForUsernameAndPassword (line 407) | func (c *Client) loginForUsernameAndPassword() error {
    method Clear (line 425) | func (c *Client) Clear() {
    method isLoginFailed (line 446) | func (c *Client) isLoginFailed(responseString string) bool {
    method isLoginSucceed (line 468) | func (c *Client) isLoginSucceed(responseString string) bool {
  function New (line 121) | func New(addr string, port int) *Client {

FILE: lib/gotelnet/telnet_test.go
  function TestTelnet (line 8) | func TestTelnet(t *testing.T) {
  function TestByte (line 18) | func TestByte(t *testing.T) {

FILE: lib/grdp/core/io.go
  type ReadBytesComplete (line 8) | type ReadBytesComplete
  function StartReadBytes (line 10) | func StartReadBytes(len int, r io.Reader, cb ReadBytesComplete) {
  function ReadBytes (line 19) | func ReadBytes(len int, r io.Reader) ([]byte, error) {
  function ReadByte (line 25) | func ReadByte(r io.Reader) (byte, error) {
  function ReadUInt8 (line 30) | func ReadUInt8(r io.Reader) (uint8, error) {
  function ReadUint16LE (line 35) | func ReadUint16LE(r io.Reader) (uint16, error) {
  function ReadUint16BE (line 44) | func ReadUint16BE(r io.Reader) (uint16, error) {
  function ReadUInt32LE (line 53) | func ReadUInt32LE(r io.Reader) (uint32, error) {
  function ReadUInt32BE (line 62) | func ReadUInt32BE(r io.Reader) (uint32, error) {
  function WriteByte (line 71) | func WriteByte(data byte, w io.Writer) (int, error) {
  function WriteBytes (line 77) | func WriteBytes(data []byte, w io.Writer) (int, error) {
  function WriteUInt8 (line 81) | func WriteUInt8(data uint8, w io.Writer) (int, error) {
  function WriteUInt16BE (line 87) | func WriteUInt16BE(data uint16, w io.Writer) (int, error) {
  function WriteUInt16LE (line 93) | func WriteUInt16LE(data uint16, w io.Writer) (int, error) {
  function WriteUInt32LE (line 99) | func WriteUInt32LE(data uint32, w io.Writer) (int, error) {
  function WriteUInt32BE (line 105) | func WriteUInt32BE(data uint32, w io.Writer) (int, error) {
  function PutUint16BE (line 111) | func PutUint16BE(data uint16) (uint8, uint8) {
  function Uint16BE (line 117) | func Uint16BE(d0, d1 uint8) uint16 {
  function RGB565ToRGB (line 125) | func RGB565ToRGB(data uint16) (r, g, b uint8) {

FILE: lib/grdp/core/io_test.go
  function TestWriteUInt16LE (line 11) | func TestWriteUInt16LE(t *testing.T) {

FILE: lib/grdp/core/rle.go
  function CVAL (line 8) | func CVAL(p *[]uint8) int {
  function CVAL2 (line 14) | func CVAL2(p *[]uint8, v *uint16) {
  function REPEAT (line 21) | func REPEAT(f func(), count, x *int, width int) {
  function decompress2 (line 212) | func decompress2(output *[]uint8, width, height int, input []uint8, size...
  function processPlane (line 718) | func processPlane(in *[]uint8, width, height int, output *[]uint8, j int...
  function decompress4 (line 809) | func decompress4(output *[]uint8, width, height int, input []uint8, size...
  function Decompress (line 837) | func Decompress(input []uint8, width, height int, Bpp int) []uint8 {

FILE: lib/grdp/core/socket.go
  type SocketLayer (line 16) | type SocketLayer struct
    method Read (line 29) | func (s *SocketLayer) Read(b []byte) (n int, err error) {
    method Write (line 36) | func (s *SocketLayer) Write(b []byte) (n int, err error) {
    method Close (line 43) | func (s *SocketLayer) Close() error {
    method StartTLS (line 53) | func (s *SocketLayer) StartTLS() error {
    method TlsPubKey (line 69) | func (s *SocketLayer) TlsPubKey() ([]byte, error) {
  function NewSocketLayer (line 21) | func NewSocketLayer(conn net.Conn) *SocketLayer {
  type PublicKey (line 64) | type PublicKey struct

FILE: lib/grdp/core/types.go
  type Transport (line 5) | type Transport interface
  type FastPathListener (line 15) | type FastPathListener interface
  type FastPathSender (line 19) | type FastPathSender interface

FILE: lib/grdp/core/util.go
  function Reverse (line 9) | func Reverse(s []byte) []byte {
  function Random (line 16) | func Random(n int) []byte {
  function convertUTF16ToLittleEndianBytes (line 26) | func convertUTF16ToLittleEndianBytes(u []uint16) []byte {
  function UnicodeEncode (line 35) | func UnicodeEncode(p string) []byte {
  function UnicodeDecode (line 39) | func UnicodeDecode(p []byte) string {

FILE: lib/grdp/emission/emitter.go
  constant DefaultMaxListeners (line 16) | DefaultMaxListeners = 10
  type RecoveryListener (line 22) | type RecoveryListener
  type Emitter (line 25) | type Emitter struct
    method AddListener (line 45) | func (emitter *Emitter) AddListener(event, listener interface{}) *Emit...
    method On (line 70) | func (emitter *Emitter) On(event, listener interface{}) *Emitter {
    method RemoveListener (line 78) | func (emitter *Emitter) RemoveListener(event, listener interface{}) *E...
    method Off (line 120) | func (emitter *Emitter) Off(event, listener interface{}) *Emitter {
    method Once (line 129) | func (emitter *Emitter) Once(event, listener interface{}) *Emitter {
    method Emit (line 158) | func (emitter *Emitter) Emit(event interface{}, arguments ...interface...
    method callListeners (line 195) | func (emitter *Emitter) callListeners(listeners []reflect.Value, event...
    method RecoverWith (line 235) | func (emitter *Emitter) RecoverWith(listener RecoveryListener) *Emitter {
    method SetMaxListeners (line 245) | func (emitter *Emitter) SetMaxListeners(max int) *Emitter {
    method GetListenerCount (line 254) | func (emitter *Emitter) GetListenerCount(event interface{}) (count int) {
  function NewEmitter (line 266) | func NewEmitter() (emitter *Emitter) {

FILE: lib/grdp/glog/log.go
  function init (line 9) | func init() {
  type LEVEL (line 19) | type LEVEL
  constant DEBUG (line 22) | DEBUG LEVEL = iota
  constant INFO (line 23) | INFO
  constant WARN (line 24) | WARN
  constant ERROR (line 25) | ERROR
  constant NONE (line 26) | NONE
  function SetLogger (line 29) | func SetLogger(l *log.Logger) {
  function SetLevel (line 34) | func SetLevel(l LEVEL) {
  function checkLogger (line 38) | func checkLogger() {
  function Debug (line 44) | func Debug(v ...interface{}) {
  function Debugf (line 53) | func Debugf(f string, v ...interface{}) {
  function Info (line 62) | func Info(v ...interface{}) {
  function Infof (line 71) | func Infof(f string, v ...interface{}) {
  function Warn (line 80) | func Warn(v ...interface{}) {
  function Error (line 90) | func Error(v ...interface{}) {
  function Errorf (line 99) | func Errorf(f string, v ...interface{}) {

FILE: lib/grdp/grdp.go
  constant PROTOCOL_RDP (line 24) | PROTOCOL_RDP = "PROTOCOL_RDP"
  constant PROTOCOL_SSL (line 25) | PROTOCOL_SSL = "PROTOCOL_SSL"
  type Client (line 28) | type Client struct
    method loginForSSL (line 47) | func (g *Client) loginForSSL(domain, user, pwd string) error {
    method loginForRDP (line 110) | func (g *Client) loginForRDP(domain, user, pwd string) error {
  function NewClient (line 38) | func NewClient(host string, logLevel glog.LEVEL) *Client {
  function Login (line 189) | func Login(target, domain, username, password string) error {
  function LoginForSSL (line 209) | func LoginForSSL(target, domain, username, password string) error {
  function LoginForRDP (line 220) | func LoginForRDP(target, domain, username, password string) error {
  function VerifyProtocol (line 231) | func VerifyProtocol(target string) string {

FILE: lib/grdp/grdp_test.go
  function testrdp (line 9) | func testrdp(target string) {
  function TestName (line 37) | func TestName(t *testing.T) {

FILE: lib/grdp/protocol/lic/lic.go
  constant LICENSE_REQUEST (line 10) | LICENSE_REQUEST             = 0x01
  constant PLATFORM_CHALLENGE (line 11) | PLATFORM_CHALLENGE          = 0x02
  constant NEW_LICENSE (line 12) | NEW_LICENSE                 = 0x03
  constant UPGRADE_LICENSE (line 13) | UPGRADE_LICENSE             = 0x04
  constant LICENSE_INFO (line 14) | LICENSE_INFO                = 0x12
  constant NEW_LICENSE_REQUEST (line 15) | NEW_LICENSE_REQUEST         = 0x13
  constant PLATFORM_CHALLENGE_RESPONSE (line 16) | PLATFORM_CHALLENGE_RESPONSE = 0x15
  constant ERROR_ALERT (line 17) | ERROR_ALERT                 = 0xFF
  constant ERR_INVALID_SERVER_CERTIFICATE (line 22) | ERR_INVALID_SERVER_CERTIFICATE = 0x00000001
  constant ERR_NO_LICENSE (line 23) | ERR_NO_LICENSE                 = 0x00000002
  constant ERR_INVALID_SCOPE (line 24) | ERR_INVALID_SCOPE              = 0x00000004
  constant ERR_NO_LICENSE_SERVER (line 25) | ERR_NO_LICENSE_SERVER          = 0x00000006
  constant STATUS_VALID_CLIENT (line 26) | STATUS_VALID_CLIENT            = 0x00000007
  constant ERR_INVALID_CLIENT (line 27) | ERR_INVALID_CLIENT             = 0x00000008
  constant ERR_INVALID_PRODUCTID (line 28) | ERR_INVALID_PRODUCTID          = 0x0000000B
  constant ERR_INVALID_MESSAGE_LEN (line 29) | ERR_INVALID_MESSAGE_LEN        = 0x0000000C
  constant ERR_INVALID_MAC (line 30) | ERR_INVALID_MAC                = 0x00000003
  constant ST_TOTAL_ABORT (line 35) | ST_TOTAL_ABORT          = 0x00000001
  constant ST_NO_TRANSITION (line 36) | ST_NO_TRANSITION        = 0x00000002
  constant ST_RESET_PHASE_TO_START (line 37) | ST_RESET_PHASE_TO_START = 0x00000003
  constant ST_RESEND_LAST_MESSAGE (line 38) | ST_RESEND_LAST_MESSAGE  = 0x00000004
  type BinaryBlobType (line 47) | type BinaryBlobType
  constant BB_ANY_BLOB (line 50) | BB_ANY_BLOB                 = 0x0000
  constant BB_DATA_BLOB (line 51) | BB_DATA_BLOB                = 0x0001
  constant BB_RANDOM_BLOB (line 52) | BB_RANDOM_BLOB              = 0x0002
  constant BB_CERTIFICATE_BLOB (line 53) | BB_CERTIFICATE_BLOB         = 0x0003
  constant BB_ERROR_BLOB (line 54) | BB_ERROR_BLOB               = 0x0004
  constant BB_ENCRYPTED_DATA_BLOB (line 55) | BB_ENCRYPTED_DATA_BLOB      = 0x0009
  constant BB_KEY_EXCHG_ALG_BLOB (line 56) | BB_KEY_EXCHG_ALG_BLOB       = 0x000D
  constant BB_SCOPE_BLOB (line 57) | BB_SCOPE_BLOB               = 0x000E
  constant BB_CLIENT_USER_NAME_BLOB (line 58) | BB_CLIENT_USER_NAME_BLOB    = 0x000F
  constant BB_CLIENT_MACHINE_NAME_BLOB (line 59) | BB_CLIENT_MACHINE_NAME_BLOB = 0x0010
  type ErrorMessage (line 62) | type ErrorMessage struct
  function readErrorMessage (line 68) | func readErrorMessage(r io.Reader) *ErrorMessage {
  type LicensePacket (line 75) | type LicensePacket struct
  function ReadLicensePacket (line 82) | func ReadLicensePacket(r io.Reader) *LicensePacket {
  type LicenseBinaryBlob (line 104) | type LicenseBinaryBlob struct
  function NewLicenseBinaryBlob (line 110) | func NewLicenseBinaryBlob(WBlobType uint16) *LicenseBinaryBlob {
  type ProductInformation (line 120) | type ProductInformation struct
  type ServerLicenseRequest (line 137) | type ServerLicenseRequest struct
  type ClientNewLicenseRequest (line 154) | type ClientNewLicenseRequest struct
  type ServerPlatformChallenge (line 167) | type ServerPlatformChallenge struct
  type ClientPLatformChallengeResponse (line 179) | type ClientPLatformChallengeResponse struct

FILE: lib/grdp/protocol/nla/cssp.go
  type NegoToken (line 9) | type NegoToken struct
  type TSRequest (line 13) | type TSRequest struct
  type TSCredentials (line 21) | type TSCredentials struct
  type TSPasswordCreds (line 26) | type TSPasswordCreds struct
  type TSCspDataDetail (line 32) | type TSCspDataDetail struct
  type TSSmartCardCreds (line 40) | type TSSmartCardCreds struct
  function EncodeDERTRequest (line 47) | func EncodeDERTRequest(msgs []Message, authInfo []byte, pubKeyAuth []byt...
  function DecodeDERTRequest (line 76) | func DecodeDERTRequest(s []byte) (*TSRequest, error) {
  function EncodeDERTCredentials (line 81) | func EncodeDERTCredentials(domain, username, password []byte) []byte {
  function DecodeDERTCredentials (line 95) | func DecodeDERTCredentials(s []byte) (*TSCredentials, error) {

FILE: lib/grdp/protocol/nla/encode.go
  function MD4 (line 13) | func MD4(data []byte) []byte {
  function MD5 (line 19) | func MD5(data []byte) []byte {
  function HMAC_MD5 (line 25) | func HMAC_MD5(key, data []byte) []byte {
  function NTOWFv2 (line 32) | func NTOWFv2(password, user, domain string) []byte {
  function LMOWFv2 (line 37) | func LMOWFv2(password, user, domain string) []byte {
  function RC4K (line 41) | func RC4K(key, src []byte) []byte {

FILE: lib/grdp/protocol/nla/encode_test.go
  function TestNTOWFv2 (line 10) | func TestNTOWFv2(t *testing.T) {
  function TestRC4K (line 24) | func TestRC4K(t *testing.T) {

FILE: lib/grdp/protocol/nla/ntlm.go
  constant WINDOWS_MINOR_VERSION_0 (line 18) | WINDOWS_MINOR_VERSION_0 = 0x00
  constant WINDOWS_MINOR_VERSION_1 (line 19) | WINDOWS_MINOR_VERSION_1 = 0x01
  constant WINDOWS_MINOR_VERSION_2 (line 20) | WINDOWS_MINOR_VERSION_2 = 0x02
  constant WINDOWS_MINOR_VERSION_3 (line 21) | WINDOWS_MINOR_VERSION_3 = 0x03
  constant WINDOWS_MAJOR_VERSION_5 (line 23) | WINDOWS_MAJOR_VERSION_5 = 0x05
  constant WINDOWS_MAJOR_VERSION_6 (line 24) | WINDOWS_MAJOR_VERSION_6 = 0x06
  constant NTLMSSP_REVISION_W2K3 (line 25) | NTLMSSP_REVISION_W2K3   = 0x0F
  constant MsvAvEOL (line 29) | MsvAvEOL             = 0x0000
  constant MsvAvNbComputerName (line 30) | MsvAvNbComputerName  = 0x0001
  constant MsvAvNbDomainName (line 31) | MsvAvNbDomainName    = 0x0002
  constant MsvAvDnsComputerName (line 32) | MsvAvDnsComputerName = 0x0003
  constant MsvAvDnsDomainName (line 33) | MsvAvDnsDomainName   = 0x0004
  constant MsvAvDnsTreeName (line 34) | MsvAvDnsTreeName     = 0x0005
  constant MsvAvFlags (line 35) | MsvAvFlags           = 0x0006
  constant MsvAvTimestamp (line 36) | MsvAvTimestamp       = 0x0007
  constant MsvAvSingleHost (line 37) | MsvAvSingleHost      = 0x0008
  constant MsvAvTargetName (line 38) | MsvAvTargetName      = 0x0009
  constant MsvChannelBindings (line 39) | MsvChannelBindings   = 0x000A
  type AVPair (line 42) | type AVPair struct
  constant NTLMSSP_NEGOTIATE_56 (line 49) | NTLMSSP_NEGOTIATE_56                       = 0x80000000
  constant NTLMSSP_NEGOTIATE_KEY_EXCH (line 50) | NTLMSSP_NEGOTIATE_KEY_EXCH                 = 0x40000000
  constant NTLMSSP_NEGOTIATE_128 (line 51) | NTLMSSP_NEGOTIATE_128                      = 0x20000000
  constant NTLMSSP_NEGOTIATE_VERSION (line 52) | NTLMSSP_NEGOTIATE_VERSION                  = 0x02000000
  constant NTLMSSP_NEGOTIATE_TARGET_INFO (line 53) | NTLMSSP_NEGOTIATE_TARGET_INFO              = 0x00800000
  constant NTLMSSP_REQUEST_NON_NT_SESSION_KEY (line 54) | NTLMSSP_REQUEST_NON_NT_SESSION_KEY         = 0x00400000
  constant NTLMSSP_NEGOTIATE_IDENTIFY (line 55) | NTLMSSP_NEGOTIATE_IDENTIFY                 = 0x00100000
  constant NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY (line 56) | NTLMSSP_NEGOTIATE_EXTENDED_SESSIONSECURITY = 0x00080000
  constant NTLMSSP_TARGET_TYPE_SERVER (line 57) | NTLMSSP_TARGET_TYPE_SERVER                 = 0x00020000
  constant NTLMSSP_TARGET_TYPE_DOMAIN (line 58) | NTLMSSP_TARGET_TYPE_DOMAIN                 = 0x00010000
  constant NTLMSSP_NEGOTIATE_ALWAYS_SIGN (line 59) | NTLMSSP_NEGOTIATE_ALWAYS_SIGN              = 0x00008000
  constant NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED (line 60) | NTLMSSP_NEGOTIATE_OEM_WORKSTATION_SUPPLIED = 0x00002000
  constant NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED (line 61) | NTLMSSP_NEGOTIATE_OEM_DOMAIN_SUPPLIED      = 0x00001000
  constant NTLMSSP_NEGOTIATE_NTLM (line 62) | NTLMSSP_NEGOTIATE_NTLM                     = 0x00000200
  constant NTLMSSP_NEGOTIATE_LM_KEY (line 63) | NTLMSSP_NEGOTIATE_LM_KEY                   = 0x00000080
  constant NTLMSSP_NEGOTIATE_DATAGRAM (line 64) | NTLMSSP_NEGOTIATE_DATAGRAM                 = 0x00000040
  constant NTLMSSP_NEGOTIATE_SEAL (line 65) | NTLMSSP_NEGOTIATE_SEAL                     = 0x00000020
  constant NTLMSSP_NEGOTIATE_SIGN (line 66) | NTLMSSP_NEGOTIATE_SIGN                     = 0x00000010
  constant NTLMSSP_REQUEST_TARGET (line 67) | NTLMSSP_REQUEST_TARGET                     = 0x00000004
  constant NTLM_NEGOTIATE_OEM (line 68) | NTLM_NEGOTIATE_OEM                         = 0x00000002
  constant NTLMSSP_NEGOTIATE_UNICODE (line 69) | NTLMSSP_NEGOTIATE_UNICODE                  = 0x00000001
  type NVersion (line 72) | type NVersion struct
  function NewNVersion (line 80) | func NewNVersion() NVersion {
  type Message (line 89) | type Message interface
  type NegotiateMessage (line 93) | type NegotiateMessage struct
    method Serialize (line 114) | func (m *NegotiateMessage) Serialize() []byte {
  function NewNegotiateMessage (line 107) | func NewNegotiateMessage() *NegotiateMessage {
  type ChallengeMessage (line 124) | type ChallengeMessage struct
    method Serialize (line 140) | func (m *ChallengeMessage) Serialize() []byte {
    method BaseLen (line 158) | func (m *ChallengeMessage) BaseLen() uint32 {
    method getTargetInfo (line 162) | func (m *ChallengeMessage) getTargetInfo() []byte {
    method getTargetName (line 170) | func (m *ChallengeMessage) getTargetName() []byte {
    method getTargetInfoTimestamp (line 178) | func (m *ChallengeMessage) getTargetInfoTimestamp(data []byte) []byte {
  function NewChallengeMessage (line 150) | func NewChallengeMessage() *ChallengeMessage {
  type AuthenticateMessage (line 194) | type AuthenticateMessage struct
    method BaseLen (line 221) | func (m *AuthenticateMessage) BaseLen() uint32 {
    method Serialize (line 272) | func (m *AuthenticateMessage) Serialize() []byte {
  function NewAuthenticateMessage (line 225) | func NewAuthenticateMessage(negFlag uint32, domain, user, workstation []...
  type NTLMv2 (line 279) | type NTLMv2 struct
    method GetNegotiateMessage (line 302) | func (n *NTLMv2) GetNegotiateMessage() *NegotiateMessage {
    method ComputeResponseV2 (line 318) | func (n *NTLMv2) ComputeResponseV2(respKeyNT, respKeyLM, serverChallen...
    method GetAuthenticateMessage (line 366) | func (n *NTLMv2) GetAuthenticateMessage(s []byte) (*AuthenticateMessag...
    method GetEncodedCredentials (line 467) | func (n *NTLMv2) GetEncodedCredentials() ([]byte, []byte, []byte) {
  function NewNTLMv2 (line 291) | func NewNTLMv2(domain, user, password string) *NTLMv2 {
  function MIC (line 347) | func MIC(exportedSessionKey []byte, negotiateMessage, challengeMessage, ...
  function concat (line 355) | func concat(bs ...[]byte) []byte {
  type NTLMv2Security (line 474) | type NTLMv2Security struct
    method GssEncrypt (line 482) | func (n *NTLMv2Security) GssEncrypt(s []byte) []byte {
    method GssDecrypt (line 504) | func (n *NTLMv2Security) GssDecrypt(s []byte) []byte {

FILE: lib/grdp/protocol/pdu/caps.go
  type CapsType (line 17) | type CapsType
  constant CAPSTYPE_GENERAL (line 20) | CAPSTYPE_GENERAL                 CapsType = 0x0001
  constant CAPSTYPE_BITMAP (line 21) | CAPSTYPE_BITMAP                           = 0x0002
  constant CAPSTYPE_ORDER (line 22) | CAPSTYPE_ORDER                            = 0x0003
  constant CAPSTYPE_BITMAPCACHE (line 23) | CAPSTYPE_BITMAPCACHE                      = 0x0004
  constant CAPSTYPE_CONTROL (line 24) | CAPSTYPE_CONTROL                          = 0x0005
  constant CAPSTYPE_ACTIVATION (line 25) | CAPSTYPE_ACTIVATION                       = 0x0007
  constant CAPSTYPE_POINTER (line 26) | CAPSTYPE_POINTER                          = 0x0008
  constant CAPSTYPE_SHARE (line 27) | CAPSTYPE_SHARE                            = 0x0009
  constant CAPSTYPE_COLORCACHE (line 28) | CAPSTYPE_COLORCACHE                       = 0x000A
  constant CAPSTYPE_SOUND (line 29) | CAPSTYPE_SOUND                            = 0x000C
  constant CAPSTYPE_INPUT (line 30) | CAPSTYPE_INPUT                            = 0x000D
  constant CAPSTYPE_FONT (line 31) | CAPSTYPE_FONT                             = 0x000E
  constant CAPSTYPE_BRUSH (line 32) | CAPSTYPE_BRUSH                            = 0x000F
  constant CAPSTYPE_GLYPHCACHE (line 33) | CAPSTYPE_GLYPHCACHE                       = 0x0010
  constant CAPSTYPE_OFFSCREENCACHE (line 34) | CAPSTYPE_OFFSCREENCACHE                   = 0x0011
  constant CAPSTYPE_BITMAPCACHE_HOSTSUPPORT (line 35) | CAPSTYPE_BITMAPCACHE_HOSTSUPPORT          = 0x0012
  constant CAPSTYPE_BITMAPCACHE_REV2 (line 36) | CAPSTYPE_BITMAPCACHE_REV2                 = 0x0013
  constant CAPSTYPE_VIRTUALCHANNEL (line 37) | CAPSTYPE_VIRTUALCHANNEL                   = 0x0014
  constant CAPSTYPE_DRAWNINEGRIDCACHE (line 38) | CAPSTYPE_DRAWNINEGRIDCACHE                = 0x0015
  constant CAPSTYPE_DRAWGDIPLUS (line 39) | CAPSTYPE_DRAWGDIPLUS                      = 0x0016
  constant CAPSTYPE_RAIL (line 40) | CAPSTYPE_RAIL                             = 0x0017
  constant CAPSTYPE_WINDOW (line 41) | CAPSTYPE_WINDOW                           = 0x0018
  constant CAPSETTYPE_COMPDESK (line 42) | CAPSETTYPE_COMPDESK                       = 0x0019
  constant CAPSETTYPE_MULTIFRAGMENTUPDATE (line 43) | CAPSETTYPE_MULTIFRAGMENTUPDATE            = 0x001A
  constant CAPSETTYPE_LARGE_POINTER (line 44) | CAPSETTYPE_LARGE_POINTER                  = 0x001B
  constant CAPSETTYPE_SURFACE_COMMANDS (line 45) | CAPSETTYPE_SURFACE_COMMANDS               = 0x001C
  constant CAPSETTYPE_BITMAP_CODECS (line 46) | CAPSETTYPE_BITMAP_CODECS                  = 0x001D
  constant CAPSSETTYPE_FRAME_ACKNOWLEDGE (line 47) | CAPSSETTYPE_FRAME_ACKNOWLEDGE             = 0x001E
  type MajorType (line 50) | type MajorType
  constant OSMAJORTYPE_UNSPECIFIED (line 53) | OSMAJORTYPE_UNSPECIFIED MajorType = 0x0000
  constant OSMAJORTYPE_WINDOWS (line 54) | OSMAJORTYPE_WINDOWS               = 0x0001
  constant OSMAJORTYPE_OS2 (line 55) | OSMAJORTYPE_OS2                   = 0x0002
  constant OSMAJORTYPE_MACINTOSH (line 56) | OSMAJORTYPE_MACINTOSH             = 0x0003
  constant OSMAJORTYPE_UNIX (line 57) | OSMAJORTYPE_UNIX                  = 0x0004
  constant OSMAJORTYPE_IOS (line 58) | OSMAJORTYPE_IOS                   = 0x0005
  constant OSMAJORTYPE_OSX (line 59) | OSMAJORTYPE_OSX                   = 0x0006
  constant OSMAJORTYPE_ANDROID (line 60) | OSMAJORTYPE_ANDROID               = 0x0007
  type MinorType (line 63) | type MinorType
  constant OSMINORTYPE_UNSPECIFIED (line 66) | OSMINORTYPE_UNSPECIFIED    MinorType = 0x0000
  constant OSMINORTYPE_WINDOWS_31X (line 67) | OSMINORTYPE_WINDOWS_31X              = 0x0001
  constant OSMINORTYPE_WINDOWS_95 (line 68) | OSMINORTYPE_WINDOWS_95               = 0x0002
  constant OSMINORTYPE_WINDOWS_NT (line 69) | OSMINORTYPE_WINDOWS_NT               = 0x0003
  constant OSMINORTYPE_OS2_V21 (line 70) | OSMINORTYPE_OS2_V21                  = 0x0004
  constant OSMINORTYPE_POWER_PC (line 71) | OSMINORTYPE_POWER_PC                 = 0x0005
  constant OSMINORTYPE_MACINTOSH (line 72) | OSMINORTYPE_MACINTOSH                = 0x0006
  constant OSMINORTYPE_NATIVE_XSERVER (line 73) | OSMINORTYPE_NATIVE_XSERVER           = 0x0007
  constant OSMINORTYPE_PSEUDO_XSERVER (line 74) | OSMINORTYPE_PSEUDO_XSERVER           = 0x0008
  constant OSMINORTYPE_WINDOWS_RT (line 75) | OSMINORTYPE_WINDOWS_RT               = 0x0009
  constant FASTPATH_OUTPUT_SUPPORTED (line 79) | FASTPATH_OUTPUT_SUPPORTED  uint16 = 0x0001
  constant NO_BITMAP_COMPRESSION_HDR (line 80) | NO_BITMAP_COMPRESSION_HDR         = 0x0400
  constant LONG_CREDENTIALS_SUPPORTED (line 81) | LONG_CREDENTIALS_SUPPORTED        = 0x0004
  constant AUTORECONNECT_SUPPORTED (line 82) | AUTORECONNECT_SUPPORTED           = 0x0008
  constant ENC_SALTED_CHECKSUM (line 83) | ENC_SALTED_CHECKSUM               = 0x0010
  type OrderFlag (line 86) | type OrderFlag
  constant NEGOTIATEORDERSUPPORT (line 89) | NEGOTIATEORDERSUPPORT   OrderFlag = 0x0002
  constant ZEROBOUNDSDELTASSUPPORT (line 90) | ZEROBOUNDSDELTASSUPPORT           = 0x0008
  constant COLORINDEXSUPPORT (line 91) | COLORINDEXSUPPORT                 = 0x0020
  constant SOLIDPATTERNBRUSHONLY (line 92) | SOLIDPATTERNBRUSHONLY             = 0x0040
  constant ORDERFLAGS_EXTRA_FLAGS (line 93) | ORDERFLAGS_EXTRA_FLAGS            = 0x0080
  type Order (line 99) | type Order
  constant TS_NEG_DSTBLT_INDEX (line 102) | TS_NEG_DSTBLT_INDEX             Order = 0x00
  constant TS_NEG_PATBLT_INDEX (line 103) | TS_NEG_PATBLT_INDEX                   = 0x01
  constant TS_NEG_SCRBLT_INDEX (line 104) | TS_NEG_SCRBLT_INDEX                   = 0x02
  constant TS_NEG_MEMBLT_INDEX (line 105) | TS_NEG_MEMBLT_INDEX                   = 0x03
  constant TS_NEG_MEM3BLT_INDEX (line 106) | TS_NEG_MEM3BLT_INDEX                  = 0x04
  constant TS_NEG_DRAWNINEGRID_INDEX (line 107) | TS_NEG_DRAWNINEGRID_INDEX             = 0x07
  constant TS_NEG_LINETO_INDEX (line 108) | TS_NEG_LINETO_INDEX                   = 0x08
  constant TS_NEG_MULTI_DRAWNINEGRID_INDEX (line 109) | TS_NEG_MULTI_DRAWNINEGRID_INDEX       = 0x09
  constant TS_NEG_SAVEBITMAP_INDEX (line 110) | TS_NEG_SAVEBITMAP_INDEX               = 0x0B
  constant TS_NEG_MULTIDSTBLT_INDEX (line 111) | TS_NEG_MULTIDSTBLT_INDEX              = 0x0F
  constant TS_NEG_MULTIPATBLT_INDEX (line 112) | TS_NEG_MULTIPATBLT_INDEX              = 0x10
  constant TS_NEG_MULTISCRBLT_INDEX (line 113) | TS_NEG_MULTISCRBLT_INDEX              = 0x11
  constant TS_NEG_MULTIOPAQUERECT_INDEX (line 114) | TS_NEG_MULTIOPAQUERECT_INDEX          = 0x12
  constant TS_NEG_FAST_INDEX_INDEX (line 115) | TS_NEG_FAST_INDEX_INDEX               = 0x13
  constant TS_NEG_POLYGON_SC_INDEX (line 116) | TS_NEG_POLYGON_SC_INDEX               = 0x14
  constant TS_NEG_POLYGON_CB_INDEX (line 117) | TS_NEG_POLYGON_CB_INDEX               = 0x15
  constant TS_NEG_POLYLINE_INDEX (line 118) | TS_NEG_POLYLINE_INDEX                 = 0x16
  constant TS_NEG_FAST_GLYPH_INDEX (line 119) | TS_NEG_FAST_GLYPH_INDEX               = 0x18
  constant TS_NEG_ELLIPSE_SC_INDEX (line 120) | TS_NEG_ELLIPSE_SC_INDEX               = 0x19
  constant TS_NEG_ELLIPSE_CB_INDEX (line 121) | TS_NEG_ELLIPSE_CB_INDEX               = 0x1A
  constant TS_NEG_INDEX_INDEX (line 122) | TS_NEG_INDEX_INDEX                    = 0x1B
  type OrderEx (line 125) | type OrderEx
  constant ORDERFLAGS_EX_CACHE_BITMAP_REV3_SUPPORT (line 128) | ORDERFLAGS_EX_CACHE_BITMAP_REV3_SUPPORT   OrderEx = 0x0002
  constant ORDERFLAGS_EX_ALTSEC_FRAME_MARKER_SUPPORT (line 129) | ORDERFLAGS_EX_ALTSEC_FRAME_MARKER_SUPPORT         = 0x0004
  constant INPUT_FLAG_SCANCODES (line 137) | INPUT_FLAG_SCANCODES       uint16 = 0x0001
  constant INPUT_FLAG_MOUSEX (line 138) | INPUT_FLAG_MOUSEX                 = 0x0004
  constant INPUT_FLAG_FASTPATH_INPUT (line 139) | INPUT_FLAG_FASTPATH_INPUT         = 0x0008
  constant INPUT_FLAG_UNICODE (line 140) | INPUT_FLAG_UNICODE                = 0x0010
  constant INPUT_FLAG_FASTPATH_INPUT2 (line 141) | INPUT_FLAG_FASTPATH_INPUT2        = 0x0020
  constant INPUT_FLAG_UNUSED1 (line 142) | INPUT_FLAG_UNUSED1                = 0x0040
  constant INPUT_FLAG_UNUSED2 (line 143) | INPUT_FLAG_UNUSED2                = 0x0080
  constant INPUT_FLAG_MOUSE_HWHEEL (line 144) | INPUT_FLAG_MOUSE_HWHEEL           = 0x0100
  type BrushSupport (line 150) | type BrushSupport
  constant BRUSH_DEFAULT (line 153) | BRUSH_DEFAULT    BrushSupport = 0x00000000
  constant BRUSH_COLOR_8x8 (line 154) | BRUSH_COLOR_8x8               = 0x00000001
  constant BRUSH_COLOR_FULL (line 155) | BRUSH_COLOR_FULL              = 0x00000002
  type GlyphSupport (line 161) | type GlyphSupport
  constant GLYPH_SUPPORT_NONE (line 164) | GLYPH_SUPPORT_NONE    GlyphSupport = 0x0000
  constant GLYPH_SUPPORT_PARTIAL (line 165) | GLYPH_SUPPORT_PARTIAL              = 0x0001
  constant GLYPH_SUPPORT_FULL (line 166) | GLYPH_SUPPORT_FULL                 = 0x0002
  constant GLYPH_SUPPORT_ENCODE (line 167) | GLYPH_SUPPORT_ENCODE               = 0x0003
  type OffscreenSupportLevel (line 173) | type OffscreenSupportLevel
  constant OSL_FALSE (line 176) | OSL_FALSE OffscreenSupportLevel = 0x00000000
  constant OSL_TRUE (line 177) | OSL_TRUE                        = 0x00000001
  type VirtualChannelCompressionFlag (line 183) | type VirtualChannelCompressionFlag
  constant VCCAPS_NO_COMPR (line 186) | VCCAPS_NO_COMPR    VirtualChannelCompressionFlag = 0x00000000
  constant VCCAPS_COMPR_SC (line 187) | VCCAPS_COMPR_SC                                  = 0x00000001
  constant VCCAPS_COMPR_CS_8K (line 188) | VCCAPS_COMPR_CS_8K                               = 0x00000002
  type SoundFlag (line 191) | type SoundFlag
  constant SOUND_NONE (line 194) | SOUND_NONE       SoundFlag = 0x0000
  constant SOUND_BEEPS_FLAG (line 195) | SOUND_BEEPS_FLAG           = 0x0001
  type RailsupportLevel (line 198) | type RailsupportLevel
  constant RAIL_LEVEL_SUPPORTED (line 201) | RAIL_LEVEL_SUPPORTED                           = 0x00000001
  constant RAIL_LEVEL_DOCKED_LANGBAR_SUPPORTED (line 202) | RAIL_LEVEL_DOCKED_LANGBAR_SUPPORTED            = 0x00000002
  constant RAIL_LEVEL_SHELL_INTEGRATION_SUPPORTED (line 203) | RAIL_LEVEL_SHELL_INTEGRATION_SUPPORTED         = 0x00000004
  constant RAIL_LEVEL_LANGUAGE_IME_SYNC_SUPPORTED (line 204) | RAIL_LEVEL_LANGUAGE_IME_SYNC_SUPPORTED         = 0x00000008
  constant RAIL_LEVEL_SERVER_TO_CLIENT_IME_SYNC_SUPPORTED (line 205) | RAIL_LEVEL_SERVER_TO_CLIENT_IME_SYNC_SUPPORTED = 0x00000010
  constant RAIL_LEVEL_HIDE_MINIMIZED_APPS_SUPPORTED (line 206) | RAIL_LEVEL_HIDE_MINIMIZED_APPS_SUPPORTED       = 0x00000020
  constant RAIL_LEVEL_WINDOW_CLOAKING_SUPPORTED (line 207) | RAIL_LEVEL_WINDOW_CLOAKING_SUPPORTED           = 0x00000040
  constant RAIL_LEVEL_HANDSHAKE_EX_SUPPORTED (line 208) | RAIL_LEVEL_HANDSHAKE_EX_SUPPORTED              = 0x00000080
  constant INPUT_EVENT_SYNC (line 212) | INPUT_EVENT_SYNC     = 0x0000
  constant INPUT_EVENT_UNUSED (line 213) | INPUT_EVENT_UNUSED   = 0x0002
  constant INPUT_EVENT_SCANCODE (line 214) | INPUT_EVENT_SCANCODE = 0x0004
  constant INPUT_EVENT_UNICODE (line 215) | INPUT_EVENT_UNICODE  = 0x0005
  constant INPUT_EVENT_MOUSE (line 216) | INPUT_EVENT_MOUSE    = 0x8001
  constant INPUT_EVENT_MOUSEX (line 217) | INPUT_EVENT_MOUSEX   = 0x8002
  constant PTRFLAGS_HWHEEL (line 221) | PTRFLAGS_HWHEEL         = 0x0400
  constant PTRFLAGS_WHEEL (line 222) | PTRFLAGS_WHEEL          = 0x0200
  constant PTRFLAGS_WHEEL_NEGATIVE (line 223) | PTRFLAGS_WHEEL_NEGATIVE = 0x0100
  constant WheelRotationMask (line 224) | WheelRotationMask       = 0x01FF
  constant PTRFLAGS_MOVE (line 225) | PTRFLAGS_MOVE           = 0x0800
  constant PTRFLAGS_DOWN (line 226) | PTRFLAGS_DOWN           = 0x8000
  constant PTRFLAGS_BUTTON1 (line 227) | PTRFLAGS_BUTTON1        = 0x1000
  constant PTRFLAGS_BUTTON2 (line 228) | PTRFLAGS_BUTTON2        = 0x2000
  constant PTRFLAGS_BUTTON3 (line 229) | PTRFLAGS_BUTTON3        = 0x4000
  constant KBDFLAGS_EXTENDED (line 233) | KBDFLAGS_EXTENDED = 0x0100
  constant KBDFLAGS_DOWN (line 234) | KBDFLAGS_DOWN     = 0x4000
  constant KBDFLAGS_RELEASE (line 235) | KBDFLAGS_RELEASE  = 0x8000
  type Capability (line 238) | type Capability interface
  type GeneralCapability (line 242) | type GeneralCapability struct
    method Type (line 257) | func (*GeneralCapability) Type() CapsType {
  type BitmapCapability (line 261) | type BitmapCapability struct
    method Type (line 278) | func (*BitmapCapability) Type() CapsType {
  type BitmapCacheCapability (line 282) | type BitmapCacheCapability struct
    method Type (line 298) | func (*BitmapCacheCapability) Type() CapsType {
  type OrderCapability (line 302) | type OrderCapability struct
    method Type (line 323) | func (*OrderCapability) Type() CapsType {
  type PointerCapability (line 327) | type PointerCapability struct
    method Type (line 334) | func (*PointerCapability) Type() CapsType {
  type InputCapability (line 338) | type InputCapability struct
    method Type (line 355) | func (*InputCapability) Type() CapsType {
  type BrushCapability (line 359) | type BrushCapability struct
    method Type (line 364) | func (*BrushCapability) Type() CapsType {
  type cacheEntry (line 368) | type cacheEntry struct
  type GlyphCapability (line 373) | type GlyphCapability struct
    method Type (line 381) | func (*GlyphCapability) Type() CapsType {
  type OffscreenBitmapCacheCapability (line 385) | type OffscreenBitmapCacheCapability struct
    method Type (line 392) | func (*OffscreenBitmapCacheCapability) Type() CapsType {
  type VirtualChannelCapability (line 396) | type VirtualChannelCapability struct
    method Type (line 402) | func (*VirtualChannelCapability) Type() CapsType {
  type SoundCapability (line 406) | type SoundCapability struct
    method Type (line 412) | func (*SoundCapability) Type() CapsType {
  type ControlCapability (line 416) | type ControlCapability struct
    method Type (line 423) | func (*ControlCapability) Type() CapsType {
  type WindowActivationCapability (line 427) | type WindowActivationCapability struct
    method Type (line 434) | func (*WindowActivationCapability) Type() CapsType {
  type FontCapability (line 438) | type FontCapability struct
    method Type (line 443) | func (*FontCapability) Type() CapsType {
  type ColorCacheCapability (line 447) | type ColorCacheCapability struct
    method Type (line 452) | func (*ColorCacheCapability) Type() CapsType {
  type ShareCapability (line 456) | type ShareCapability struct
    method Type (line 461) | func (*ShareCapability) Type() CapsType {
  type MultiFragmentUpdate (line 465) | type MultiFragmentUpdate struct
    method Type (line 470) | func (*MultiFragmentUpdate) Type() CapsType {
  type DrawGDIPlusCapability (line 476) | type DrawGDIPlusCapability struct
    method Type (line 485) | func (*DrawGDIPlusCapability) Type() CapsType {
  type BitmapCodec (line 490) | type BitmapCodec struct
  type BitmapCodecS (line 498) | type BitmapCodecS struct
  type BitmapCodecsCapability (line 504) | type BitmapCodecsCapability struct
    method Type (line 508) | func (*BitmapCodecsCapability) Type() CapsType {
  type BitmapCacheHostSupportCapability (line 513) | type BitmapCacheHostSupportCapability struct
    method Type (line 519) | func (*BitmapCacheHostSupportCapability) Type() CapsType {
  type LargePointerCapability (line 524) | type LargePointerCapability struct
    method Type (line 528) | func (*LargePointerCapability) Type() CapsType {
  type RemoteProgramsCapability (line 533) | type RemoteProgramsCapability struct
    method Type (line 537) | func (*RemoteProgramsCapability) Type() CapsType {
  type WindowListCapability (line 542) | type WindowListCapability struct
    method Type (line 548) | func (*WindowListCapability) Type() CapsType {
  type DesktopCompositionCapability (line 553) | type DesktopCompositionCapability struct
    method Type (line 557) | func (*DesktopCompositionCapability) Type() CapsType {
  type SurfaceCommandsCapability (line 562) | type SurfaceCommandsCapability struct
    method Type (line 567) | func (*SurfaceCommandsCapability) Type() CapsType {
  function readCapability (line 571) | func readCapability(r io.Reader) (Capability, error) {

FILE: lib/grdp/protocol/pdu/cliprdr.go
  type MsgType (line 50) | type MsgType
  constant CB_MONITOR_READY (line 53) | CB_MONITOR_READY         = 0x0001
  constant CB_FORMAT_LIST (line 54) | CB_FORMAT_LIST           = 0x0002
  constant CB_FORMAT_LIST_RESPONSE (line 55) | CB_FORMAT_LIST_RESPONSE  = 0x0003
  constant CB_FORMAT_DATA_REQUEST (line 56) | CB_FORMAT_DATA_REQUEST   = 0x0004
  constant CB_FORMAT_DATA_RESPONSE (line 57) | CB_FORMAT_DATA_RESPONSE  = 0x0005
  constant CB_TEMP_DIRECTORY (line 58) | CB_TEMP_DIRECTORY        = 0x0006
  constant CB_CLIP_CAPS (line 59) | CB_CLIP_CAPS             = 0x0007
  constant CB_FILECONTENTS_REQUEST (line 60) | CB_FILECONTENTS_REQUEST  = 0x0008
  constant CB_FILECONTENTS_RESPONSE (line 61) | CB_FILECONTENTS_RESPONSE = 0x0009
  constant CB_LOCK_CLIPDATA (line 62) | CB_LOCK_CLIPDATA         = 0x000A
  constant CB_UNLOCK_CLIPDATA (line 63) | CB_UNLOCK_CLIPDATA       = 0x000B
  type MsgFlags (line 66) | type MsgFlags
  constant CB_RESPONSE_OK (line 69) | CB_RESPONSE_OK   = 0x0001
  constant CB_RESPONSE_FAIL (line 70) | CB_RESPONSE_FAIL = 0x0002
  constant CB_ASCII_NAMES (line 71) | CB_ASCII_NAMES   = 0x0004
  type DwFlags (line 74) | type DwFlags
  constant FILECONTENTS_SIZE (line 77) | FILECONTENTS_SIZE  = 0x00000001
  constant FILECONTENTS_RANGE (line 78) | FILECONTENTS_RANGE = 0x00000002
  type CliprdrPDUHeader (line 81) | type CliprdrPDUHeader struct
  function NewCliprdrPDUHeader (line 87) | func NewCliprdrPDUHeader(mType, flags uint16, ln uint32) *CliprdrPDUHead...
  type CliprdrClient (line 127) | type CliprdrClient struct
  function process_message (line 135) | func process_message(s []byte) {
  type CliprdrGeneralCapabilitySet (line 176) | type CliprdrGeneralCapabilitySet struct
  type CliprdrCapabilitySets (line 182) | type CliprdrCapabilitySets struct
  type CliprdrCapabilitiesPDU (line 187) | type CliprdrCapabilitiesPDU struct
  type CliprdrMonitorReady (line 194) | type CliprdrMonitorReady struct
  type GeneralFlags (line 198) | type GeneralFlags
  constant CB_USE_LONG_FORMAT_NAMES (line 202) | CB_USE_LONG_FORMAT_NAMES     = 0x00000002
  constant CB_STREAM_FILECLIP_ENABLED (line 203) | CB_STREAM_FILECLIP_ENABLED   = 0x00000004
  constant CB_FILECLIP_NO_FILE_PATHS (line 204) | CB_FILECLIP_NO_FILE_PATHS    = 0x00000008
  constant CB_CAN_LOCK_CLIPDATA (line 205) | CB_CAN_LOCK_CLIPDATA         = 0x00000010
  constant CB_HUGE_FILE_SUPPORT_ENABLED (line 206) | CB_HUGE_FILE_SUPPORT_ENABLED = 0x00000020
  constant CB_CAPS_VERSION_1 (line 211) | CB_CAPS_VERSION_1 = 0x00000001
  constant CB_CAPS_VERSION_2 (line 212) | CB_CAPS_VERSION_2 = 0x00000002
  constant CB_CAPSTYPE_GENERAL_LEN (line 215) | CB_CAPSTYPE_GENERAL_LEN = 12
  function CliprdrInit (line 218) | func CliprdrInit(context CliprdrClient) {
  type CliprdrTempDirectory (line 275) | type CliprdrTempDirectory struct
  type CliprdrFormat (line 281) | type CliprdrFormat struct
  type CliprdrFormatList (line 285) | type CliprdrFormatList struct
  type ClipboardFormats (line 290) | type ClipboardFormats
  constant CB_FORMAT_HTML (line 293) | CB_FORMAT_HTML             = 0xD010
  constant CB_FORMAT_PNG (line 294) | CB_FORMAT_PNG              = 0xD011
  constant CB_FORMAT_JPEG (line 295) | CB_FORMAT_JPEG             = 0xD012
  constant CB_FORMAT_GIF (line 296) | CB_FORMAT_GIF              = 0xD013
  constant CB_FORMAT_TEXTURILIST (line 297) | CB_FORMAT_TEXTURILIST      = 0xD014
  constant CB_FORMAT_GNOMECOPIEDFILES (line 298) | CB_FORMAT_GNOMECOPIEDFILES = 0xD015
  constant CB_FORMAT_MATECOPIEDFILES (line 299) | CB_FORMAT_MATECOPIEDFILES  = 0xD016
  type CliprdrCtrlClipboardData (line 303) | type CliprdrCtrlClipboardData struct
  type CliprdrFormatDataRequest (line 309) | type CliprdrFormatDataRequest struct
  type CliprdrFormatDataResponse (line 313) | type CliprdrFormatDataResponse struct
  type CliprdrFileContentsRequest (line 319) | type CliprdrFileContentsRequest struct
  function NewCliprdrFileContentsRequest (line 330) | func NewCliprdrFileContentsRequest() *CliprdrFileContentsRequest {
  type CliprdrFileContentsResponse (line 336) | type CliprdrFileContentsResponse struct

FILE: lib/grdp/protocol/pdu/data.go
  constant PDUTYPE_DEMANDACTIVEPDU (line 15) | PDUTYPE_DEMANDACTIVEPDU  = 0x11
  constant PDUTYPE_CONFIRMACTIVEPDU (line 16) | PDUTYPE_CONFIRMACTIVEPDU = 0x13
  constant PDUTYPE_DEACTIVATEALLPDU (line 17) | PDUTYPE_DEACTIVATEALLPDU = 0x16
  constant PDUTYPE_DATAPDU (line 18) | PDUTYPE_DATAPDU          = 0x17
  constant PDUTYPE_SERVER_REDIR_PKT (line 19) | PDUTYPE_SERVER_REDIR_PKT = 0x1A
  constant PDUTYPE2_UPDATE (line 23) | PDUTYPE2_UPDATE                      = 0x02
  constant PDUTYPE2_CONTROL (line 24) | PDUTYPE2_CONTROL                     = 0x14
  constant PDUTYPE2_POINTER (line 25) | PDUTYPE2_POINTER                     = 0x1B
  constant PDUTYPE2_INPUT (line 26) | PDUTYPE2_INPUT                       = 0x1C
  constant PDUTYPE2_SYNCHRONIZE (line 27) | PDUTYPE2_SYNCHRONIZE                 = 0x1F
  constant PDUTYPE2_REFRESH_RECT (line 28) | PDUTYPE2_REFRESH_RECT                = 0x21
  constant PDUTYPE2_PLAY_SOUND (line 29) | PDUTYPE2_PLAY_SOUND                  = 0x22
  constant PDUTYPE2_SUPPRESS_OUTPUT (line 30) | PDUTYPE2_SUPPRESS_OUTPUT             = 0x23
  constant PDUTYPE2_SHUTDOWN_REQUEST (line 31) | PDUTYPE2_SHUTDOWN_REQUEST            = 0x24
  constant PDUTYPE2_SHUTDOWN_DENIED (line 32) | PDUTYPE2_SHUTDOWN_DENIED             = 0x25
  constant PDUTYPE2_SAVE_SESSION_INFO (line 33) | PDUTYPE2_SAVE_SESSION_INFO           = 0x26
  constant PDUTYPE2_FONTLIST (line 34) | PDUTYPE2_FONTLIST                    = 0x27
  constant PDUTYPE2_FONTMAP (line 35) | PDUTYPE2_FONTMAP                     = 0x28
  constant PDUTYPE2_SET_KEYBOARD_INDICATORS (line 36) | PDUTYPE2_SET_KEYBOARD_INDICATORS     = 0x29
  constant PDUTYPE2_BITMAPCACHE_PERSISTENT_LIST (line 37) | PDUTYPE2_BITMAPCACHE_PERSISTENT_LIST = 0x2B
  constant PDUTYPE2_BITMAPCACHE_ERROR_PDU (line 38) | PDUTYPE2_BITMAPCACHE_ERROR_PDU       = 0x2C
  constant PDUTYPE2_SET_KEYBOARD_IME_STATUS (line 39) | PDUTYPE2_SET_KEYBOARD_IME_STATUS     = 0x2D
  constant PDUTYPE2_OFFSCRCACHE_ERROR_PDU (line 40) | PDUTYPE2_OFFSCRCACHE_ERROR_PDU       = 0x2E
  constant PDUTYPE2_SET_ERROR_INFO_PDU (line 41) | PDUTYPE2_SET_ERROR_INFO_PDU          = 0x2F
  constant PDUTYPE2_DRAWNINEGRID_ERROR_PDU (line 42) | PDUTYPE2_DRAWNINEGRID_ERROR_PDU      = 0x30
  constant PDUTYPE2_DRAWGDIPLUS_ERROR_PDU (line 43) | PDUTYPE2_DRAWGDIPLUS_ERROR_PDU       = 0x31
  constant PDUTYPE2_ARC_STATUS_PDU (line 44) | PDUTYPE2_ARC_STATUS_PDU              = 0x32
  constant PDUTYPE2_STATUS_INFO_PDU (line 45) | PDUTYPE2_STATUS_INFO_PDU             = 0x36
  constant PDUTYPE2_MONITOR_LAYOUT_PDU (line 46) | PDUTYPE2_MONITOR_LAYOUT_PDU          = 0x37
  constant CTRLACTION_REQUEST_CONTROL (line 50) | CTRLACTION_REQUEST_CONTROL = 0x0001
  constant CTRLACTION_GRANTED_CONTROL (line 51) | CTRLACTION_GRANTED_CONTROL = 0x0002
  constant CTRLACTION_DETACH (line 52) | CTRLACTION_DETACH          = 0x0003
  constant CTRLACTION_COOPERATE (line 53) | CTRLACTION_COOPERATE       = 0x0004
  constant STREAM_UNDEFINED (line 57) | STREAM_UNDEFINED = 0x00
  constant STREAM_LOW (line 58) | STREAM_LOW       = 0x01
  constant STREAM_MED (line 59) | STREAM_MED       = 0x02
  constant STREAM_HI (line 60) | STREAM_HI        = 0x04
  constant FASTPATH_UPDATETYPE_ORDERS (line 64) | FASTPATH_UPDATETYPE_ORDERS       = 0x0
  constant FASTPATH_UPDATETYPE_BITMAP (line 65) | FASTPATH_UPDATETYPE_BITMAP       = 0x1
  constant FASTPATH_UPDATETYPE_PALETTE (line 66) | FASTPATH_UPDATETYPE_PALETTE      = 0x2
  constant FASTPATH_UPDATETYPE_SYNCHRONIZE (line 67) | FASTPATH_UPDATETYPE_SYNCHRONIZE  = 0x3
  constant FASTPATH_UPDATETYPE_SURFCMDS (line 68) | FASTPATH_UPDATETYPE_SURFCMDS     = 0x4
  constant FASTPATH_UPDATETYPE_PTR_NULL (line 69) | FASTPATH_UPDATETYPE_PTR_NULL     = 0x5
  constant FASTPATH_UPDATETYPE_PTR_DEFAULT (line 70) | FASTPATH_UPDATETYPE_PTR_DEFAULT  = 0x6
  constant FASTPATH_UPDATETYPE_PTR_POSITION (line 71) | FASTPATH_UPDATETYPE_PTR_POSITION = 0x8
  constant FASTPATH_UPDATETYPE_COLOR (line 72) | FASTPATH_UPDATETYPE_COLOR        = 0x9
  constant FASTPATH_UPDATETYPE_CACHED (line 73) | FASTPATH_UPDATETYPE_CACHED       = 0xA
  constant FASTPATH_UPDATETYPE_POINTER (line 74) | FASTPATH_UPDATETYPE_POINTER      = 0xB
  constant BITMAP_COMPRESSION (line 78) | BITMAP_COMPRESSION = 0x0001
  type ShareDataHeader (line 82) | type ShareDataHeader struct
  function NewShareDataHeader (line 92) | func NewShareDataHeader(size int, type2 uint8, shareId uint32) *ShareDat...
  type PDUMessage (line 101) | type PDUMessage interface
  type DemandActivePDU (line 106) | type DemandActivePDU struct
    method Type (line 117) | func (d *DemandActivePDU) Type() uint16 {
    method Serialize (line 121) | func (d *DemandActivePDU) Serialize() []byte {
  function readDemandActivePDU (line 141) | func readDemandActivePDU(r io.Reader) (*DemandActivePDU, error) {
  type ConfirmActivePDU (line 176) | type ConfirmActivePDU struct
    method Type (line 187) | func (*ConfirmActivePDU) Type() uint16 {
    method Serialize (line 191) | func (c *ConfirmActivePDU) Serialize() []byte {
  function NewConfirmActivePDU (line 243) | func NewConfirmActivePDU() *ConfirmActivePDU {
  function readConfirmActivePDU (line 251) | func readConfirmActivePDU(r io.Reader) (*ConfirmActivePDU, error) {
  type DeactiveAllPDU (line 283) | type DeactiveAllPDU struct
    method Type (line 289) | func (*DeactiveAllPDU) Type() uint16 {
    method Serialize (line 293) | func (d *DeactiveAllPDU) Serialize() []byte {
  function readDeactiveAllPDU (line 299) | func readDeactiveAllPDU(r io.Reader) (*DeactiveAllPDU, error) {
  type DataPDU (line 305) | type DataPDU struct
    method Type (line 310) | func (*DataPDU) Type() uint16 {
    method Serialize (line 314) | func (d *DataPDU) Serialize() []byte {
  function NewDataPDU (line 321) | func NewDataPDU(data DataPDUData, shareId uint32) *DataPDU {
  function readDataPDU (line 330) | func readDataPDU(r io.Reader) (*DataPDU, error) {
  type DataPDUData (line 376) | type DataPDUData interface
  type SynchronizeDataPDU (line 380) | type SynchronizeDataPDU struct
    method Type2 (line 385) | func (*SynchronizeDataPDU) Type2() uint8 {
  function NewSynchronizeDataPDU (line 389) | func NewSynchronizeDataPDU(targetUser uint16) *SynchronizeDataPDU {
  type ControlDataPDU (line 396) | type ControlDataPDU struct
    method Type2 (line 402) | func (*ControlDataPDU) Type2() uint8 {
  type FontListDataPDU (line 406) | type FontListDataPDU struct
    method Type2 (line 413) | func (*FontListDataPDU) Type2() uint8 {
  type ErrorInfoDataPDU (line 417) | type ErrorInfoDataPDU struct
    method Type2 (line 421) | func (*ErrorInfoDataPDU) Type2() uint8 {
  type FontMapDataPDU (line 425) | type FontMapDataPDU struct
    method Type2 (line 432) | func (*FontMapDataPDU) Type2() uint8 {
  type InfoType (line 436) | type InfoType
  constant INFOTYPE_LOGON (line 439) | INFOTYPE_LOGON               = 0x00000000
  constant INFOTYPE_LOGON_LONG (line 440) | INFOTYPE_LOGON_LONG          = 0x00000001
  constant INFOTYPE_LOGON_PLAINNOTIFY (line 441) | INFOTYPE_LOGON_PLAINNOTIFY   = 0x00000002
  constant INFOTYPE_LOGON_EXTENDED_INFO (line 442) | INFOTYPE_LOGON_EXTENDED_INFO = 0x00000003
  constant LOGON_EX_AUTORECONNECTCOOKIE (line 445) | LOGON_EX_AUTORECONNECTCOOKIE = 0x00000001
  constant LOGON_EX_LOGONERRORS (line 446) | LOGON_EX_LOGONERRORS         = 0x00000002
  type LogonFields (line 449) | type LogonFields struct
  type SaveSessionInfo (line 456) | type SaveSessionInfo struct
    method logonInfoV1 (line 464) | func (s *SaveSessionInfo) logonInfoV1(r io.Reader) (err error) {
    method logonInfoV2 (line 478) | func (s *SaveSessionInfo) logonInfoV2(r io.Reader) (err error) {
    method logonPlainNotify (line 495) | func (s *SaveSessionInfo) logonPlainNotify(r io.Reader) (err error) {
    method logonInfoExtended (line 499) | func (s *SaveSessionInfo) logonInfoExtended(r io.Reader) (err error) {
    method Unpack (line 526) | func (s *SaveSessionInfo) Unpack(r io.Reader) (err error) {
    method Type2 (line 545) | func (*SaveSessionInfo) Type2() uint8 {
  type PersistKeyPDU (line 549) | type PersistKeyPDU struct
    method Type2 (line 565) | func (*PersistKeyPDU) Type2() uint8 {
  type UpdateData (line 569) | type UpdateData interface
  type BitmapCompressedDataHeader (line 574) | type BitmapCompressedDataHeader struct
  type BitmapData (line 581) | type BitmapData struct
    method IsCompress (line 595) | func (b *BitmapData) IsCompress() bool {
  type FastPathBitmapUpdateDataPDU (line 599) | type FastPathBitmapUpdateDataPDU struct
    method Unpack (line 605) | func (f *FastPathBitmapUpdateDataPDU) Unpack(r io.Reader) error {
    method FastPathUpdateType (line 637) | func (*FastPathBitmapUpdateDataPDU) FastPathUpdateType() uint8 {
  type FastPathUpdatePDU (line 641) | type FastPathUpdatePDU struct
  constant FASTPATH_OUTPUT_COMPRESSION_USED (line 649) | FASTPATH_OUTPUT_COMPRESSION_USED = 0x2
  function readFastPathUpdatePDU (line 652) | func readFastPathUpdatePDU(r io.Reader) (*FastPathUpdatePDU, error) {
  type ShareControlHeader (line 698) | type ShareControlHeader struct
  type PDU (line 704) | type PDU struct
    method serialize (line 755) | func (p *PDU) serialize() []byte {
  function NewPDU (line 709) | func NewPDU(userId uint16, message PDUMessage) *PDU {
  function readPDU (line 720) | func readPDU(r io.Reader) (*PDU, error) {
  type SlowPathInputEvent (line 762) | type SlowPathInputEvent struct
  type PointerEvent (line 769) | type PointerEvent struct
    method Serialize (line 775) | func (p *PointerEvent) Serialize() []byte {
  type SynchronizeEvent (line 781) | type SynchronizeEvent struct
    method Serialize (line 786) | func (p *SynchronizeEvent) Serialize() []byte {
  type ScancodeKeyEvent (line 792) | type ScancodeKeyEvent struct
    method Serialize (line 798) | func (p *ScancodeKeyEvent) Serialize() []byte {
  type UnicodeKeyEvent (line 804) | type UnicodeKeyEvent struct
    method Serialize (line 810) | func (p *UnicodeKeyEvent) Serialize() []byte {
  type ClientInputEventPDU (line 816) | type ClientInputEventPDU struct
    method Type2 (line 822) | func (*ClientInputEventPDU) Type2() uint8 {

FILE: lib/grdp/protocol/pdu/pdu.go
  type PDULayer (line 15) | type PDULayer struct
    method sendPDU (line 105) | func (p *PDULayer) sendPDU(message PDUMessage) {
    method sendDataPDU (line 110) | func (p *PDULayer) sendDataPDU(message DataPDUData) {
    method SetFastPathSender (line 115) | func (p *PDULayer) SetFastPathSender(f core.FastPathSender) {
  function NewPDULayer (line 27) | func NewPDULayer(t core.Transport) *PDULayer {
  type Client (line 119) | type Client struct
    method connect (line 134) | func (c *Client) connect(data *gcc.ClientCoreData, userId uint16, chan...
    method recvDemandActivePDU (line 142) | func (c *Client) recvDemandActivePDU(s []byte) {
    method sendConfirmActivePDU (line 174) | func (c *Client) sendConfirmActivePDU() {
    method sendClientFinalizeSynchronizePDU (line 219) | func (c *Client) sendClientFinalizeSynchronizePDU() {
    method recvServerSynchronizePDU (line 228) | func (c *Client) recvServerSynchronizePDU(s []byte) {
    method recvServerControlCooperatePDU (line 250) | func (c *Client) recvServerControlCooperatePDU(s []byte) {
    method recvServerControlGrantedPDU (line 276) | func (c *Client) recvServerControlGrantedPDU(s []byte) {
    method recvServerFontMapPDU (line 302) | func (c *Client) recvServerFontMapPDU(s []byte) {
    method recvPDU (line 323) | func (c *Client) recvPDU(s []byte) {
    method RecvFastPath (line 338) | func (c *Client) RecvFastPath(secFlag byte, s []byte) {
    method SendInputEvents (line 359) | func (c *Client) SendInputEvents(msgType uint16, events []InputEventsI...
  function NewClient (line 126) | func NewClient(t core.Transport) *Client {
  type InputEventsInterface (line 355) | type InputEventsInterface interface

FILE: lib/grdp/protocol/rfb/rfb.go
  constant RFB003003 (line 22) | RFB003003 = "RFB 003.003\n"
  constant RFB003007 (line 23) | RFB003007 = "RFB 003.007\n"
  constant RFB003008 (line 24) | RFB003008 = "RFB 003.008\n"
  constant SEC_INVALID (line 29) | SEC_INVALID uint8 = 0
  constant SEC_NONE (line 30) | SEC_NONE    uint8 = 1
  constant SEC_VNC (line 31) | SEC_VNC     uint8 = 2
  type RFBConn (line 34) | type RFBConn struct
    method Read (line 53) | func (fc *RFBConn) Read(b []byte) (n int, err error) {
    method Write (line 57) | func (fc *RFBConn) Write(data []byte) (n int, err error) {
    method Close (line 62) | func (fc *RFBConn) Close() error {
    method recvProtocolVersion (line 65) | func (fc *RFBConn) recvProtocolVersion(s []byte, err error) {
    method checkSecurityList (line 82) | func (fc *RFBConn) checkSecurityList(s []byte, err error) {
    method recvSecurityList (line 89) | func (fc *RFBConn) recvSecurityList(s []byte, err error) {
    method recvVNCChallenge (line 138) | func (fc *RFBConn) recvVNCChallenge(s []byte, err error) {
    method recvSecurityResult (line 156) | func (fc *RFBConn) recvSecurityResult(s []byte, err error) {
    method recvServerInit (line 176) | func (fc *RFBConn) recvServerInit(s []byte, err error) {
    method checkServerName (line 188) | func (fc *RFBConn) checkServerName(s []byte, err error) {
    method recvServerName (line 195) | func (fc *RFBConn) recvServerName(s []byte, err error) {
    method sendPixelFormat (line 205) | func (fc *RFBConn) sendPixelFormat() {
    method sendSetEncoding (line 218) | func (fc *RFBConn) sendSetEncoding() {
    method sendFramebufferUpdateRequest (line 236) | func (fc *RFBConn) sendFramebufferUpdateRequest(Incremental uint8,
    method recvServerOrder (line 251) | func (fc *RFBConn) recvServerOrder(s []byte, err error) {
    method recvFrameBufferUpdateHeader (line 278) | func (fc *RFBConn) recvFrameBufferUpdateHeader(s []byte, err error) {
    method recvRectHeader (line 300) | func (fc *RFBConn) recvRectHeader(s []byte, err error) {
    method recvRectBody (line 314) | func (fc *RFBConn) recvRectBody(s []byte, err error) {
    method recvServerCutTextHeader (line 333) | func (fc *RFBConn) recvServerCutTextHeader(s []byte, err error) {
    method recvServerCutTextBody (line 345) | func (fc *RFBConn) recvServerCutTextBody(s []byte, err error) {
  function NewRFBConn (line 43) | func NewRFBConn(s net.Conn) *RFBConn {
  function fixDesKeyByte (line 112) | func fixDesKeyByte(val byte) byte {
  function fixDesKey (line 124) | func fixDesKey(key []byte) []byte {
  type ServerInit (line 170) | type ServerInit struct
  type FrameBufferUpdateRequest (line 228) | type FrameBufferUpdateRequest struct
  type BitRect (line 268) | type BitRect struct
  type Rectangles (line 273) | type Rectangles struct
  type Rectangle (line 292) | type Rectangle struct
  type ServerCutTextHeader (line 328) | type ServerCutTextHeader struct
  type PixelFormat (line 351) | type PixelFormat struct
  function ReadPixelFormat (line 366) | func ReadPixelFormat(r io.Reader) *PixelFormat {
  function NewPixelFormat (line 383) | func NewPixelFormat() *PixelFormat {
  type RFB (line 389) | type RFB struct
    method recvProtocolVersion (line 408) | func (fb *RFB) recvProtocolVersion(version string) {
    method SendKeyEvent (line 424) | func (fb *RFB) SendKeyEvent(k *KeyEvent) {
    method SendPointEvent (line 440) | func (fb *RFB) SendPointEvent(p *PointerEvent) {
    method SendClientCutText (line 457) | func (fb *RFB) SendClientCutText(t *ClientCutText) {
  function NewRFB (line 400) | func NewRFB(t core.Transport) *RFB {
  type KeyEvent (line 418) | type KeyEvent struct
  type PointerEvent (line 434) | type PointerEvent struct
  type ClientCutText (line 450) | type ClientCutText struct

FILE: lib/grdp/protocol/sec/sec.go
  constant EXCHANGE_PKT (line 32) | EXCHANGE_PKT       uint16 = 0x0001
  constant TRANSPORT_REQ (line 33) | TRANSPORT_REQ             = 0x0002
  constant TRANSPORT_RSP (line 34) | TRANSPORT_RSP             = 0x0004
  constant ENCRYPT (line 35) | ENCRYPT                   = 0x0008
  constant RESET_SEQNO (line 36) | RESET_SEQNO               = 0x0010
  constant IGNORE_SEQNO (line 37) | IGNORE_SEQNO              = 0x0020
  constant INFO_PKT (line 38) | INFO_PKT                  = 0x0040
  constant LICENSE_PKT (line 39) | LICENSE_PKT               = 0x0080
  constant LICENSE_ENCRYPT_CS (line 40) | LICENSE_ENCRYPT_CS        = 0x0200
  constant LICENSE_ENCRYPT_SC (line 41) | LICENSE_ENCRYPT_SC        = 0x0200
  constant REDIRECTION_PKT (line 42) | REDIRECTION_PKT           = 0x0400
  constant SECURE_CHECKSUM (line 43) | SECURE_CHECKSUM           = 0x0800
  constant AUTODETECT_REQ (line 44) | AUTODETECT_REQ            = 0x1000
  constant AUTODETECT_RSP (line 45) | AUTODETECT_RSP            = 0x2000
  constant HEARTBEAT (line 46) | HEARTBEAT                 = 0x4000
  constant FLAGSHI_VALID (line 47) | FLAGSHI_VALID             = 0x8000
  constant INFO_MOUSE (line 51) | INFO_MOUSE                  uint32 = 0x00000001
  constant INFO_DISABLECTRLALTDEL (line 52) | INFO_DISABLECTRLALTDEL             = 0x00000002
  constant INFO_AUTOLOGON (line 53) | INFO_AUTOLOGON                     = 0x00000008
  constant INFO_UNICODE (line 54) | INFO_UNICODE                       = 0x00000010
  constant INFO_MAXIMIZESHELL (line 55) | INFO_MAXIMIZESHELL                 = 0x00000020
  constant INFO_LOGONNOTIFY (line 56) | INFO_LOGONNOTIFY                   = 0x00000040
  constant INFO_COMPRESSION (line 57) | INFO_COMPRESSION                   = 0x00000080
  constant INFO_ENABLEWINDOWSKEY (line 58) | INFO_ENABLEWINDOWSKEY              = 0x00000100
  constant INFO_REMOTECONSOLEAUDIO (line 59) | INFO_REMOTECONSOLEAUDIO            = 0x00002000
  constant INFO_FORCE_ENCRYPTED_CS_PDU (line 60) | INFO_FORCE_ENCRYPTED_CS_PDU        = 0x00004000
  constant INFO_RAIL (line 61) | INFO_RAIL                          = 0x00008000
  constant INFO_LOGONERRORS (line 62) | INFO_LOGONERRORS                   = 0x00010000
  constant INFO_MOUSE_HAS_WHEEL (line 63) | INFO_MOUSE_HAS_WHEEL               = 0x00020000
  constant INFO_PASSWORD_IS_SC_PIN (line 64) | INFO_PASSWORD_IS_SC_PIN            = 0x00040000
  constant INFO_NOAUDIOPLAYBACK (line 65) | INFO_NOAUDIOPLAYBACK               = 0x00080000
  constant INFO_USING_SAVED_CREDS (line 66) | INFO_USING_SAVED_CREDS             = 0x00100000
  constant INFO_AUDIOCAPTURE (line 67) | INFO_AUDIOCAPTURE                  = 0x00200000
  constant INFO_VIDEO_DISABLE (line 68) | INFO_VIDEO_DISABLE                 = 0x00400000
  constant INFO_CompressionTypeMask (line 69) | INFO_CompressionTypeMask           = 0x00001E00
  constant AF_INET (line 73) | AF_INET  uint16 = 0x00002
  constant AF_INET6 (line 74) | AF_INET6        = 0x0017
  constant PERF_DISABLE_WALLPAPER (line 78) | PERF_DISABLE_WALLPAPER          uint32 = 0x00000001
  constant PERF_DISABLE_FULLWINDOWDRAG (line 79) | PERF_DISABLE_FULLWINDOWDRAG            = 0x00000002
  constant PERF_DISABLE_MENUANIMATIONS (line 80) | PERF_DISABLE_MENUANIMATIONS            = 0x00000004
  constant PERF_DISABLE_THEMING (line 81) | PERF_DISABLE_THEMING                   = 0x00000008
  constant PERF_DISABLE_CURSOR_SHADOW (line 82) | PERF_DISABLE_CURSOR_SHADOW             = 0x00000020
  constant PERF_DISABLE_CURSORSETTINGS (line 83) | PERF_DISABLE_CURSORSETTINGS            = 0x00000040
  constant PERF_ENABLE_FONT_SMOOTHING (line 84) | PERF_ENABLE_FONT_SMOOTHING             = 0x00000080
  constant PERF_ENABLE_DESKTOP_COMPOSITION (line 85) | PERF_ENABLE_DESKTOP_COMPOSITION        = 0x00000100
  constant FASTPATH_OUTPUT_SECURE_CHECKSUM (line 89) | FASTPATH_OUTPUT_SECURE_CHECKSUM = 0x1
  constant FASTPATH_OUTPUT_ENCRYPTED (line 90) | FASTPATH_OUTPUT_ENCRYPTED       = 0x2
  type ClientAutoReconnect (line 93) | type ClientAutoReconnect struct
  function NewClientAutoReconnect (line 101) | func NewClientAutoReconnect(id uint32, random []byte) *ClientAutoReconne...
  type RDPExtendedInfo (line 111) | type RDPExtendedInfo struct
    method Serialize (line 134) | func (o *RDPExtendedInfo) Serialize() []byte {
  function NewExtendedInfo (line 123) | func NewExtendedInfo(auto *ClientAutoReconnect) *RDPExtendedInfo {
  type RDPInfo (line 156) | type RDPInfo struct
    method SetClientAutoReconnect (line 186) | func (o *RDPInfo) SetClientAutoReconnect(auto *ClientAutoReconnect) {
    method Serialize (line 190) | func (o *RDPInfo) Serialize(hasExtended bool) []byte {
  function NewRDPInfo (line 172) | func NewRDPInfo() *RDPInfo {
  type SecurityHeader (line 210) | type SecurityHeader struct
  function readSecurityHeader (line 215) | func readSecurityHeader(r io.Reader) *SecurityHeader {
  type SEC (line 222) | type SEC struct
    method Read (line 274) | func (s *SEC) Read(data []byte) (n int, err error) {
    method Write (line 278) | func (s *SEC) Write(b []byte) (n int, err error) {
    method Close (line 291) | func (s *SEC) Close() error {
    method sendFlagged (line 295) | func (s *SEC) sendFlagged(flag uint16, data []byte) (n int, err error) {
    method readEncryptedPayload (line 344) | func (s *SEC) readEncryptedPayload(data []byte, checkSum bool) []byte {
    method writeEncryptedPayload (line 360) | func (s *SEC) writeEncryptedPayload(data []byte, checkSum bool) []byte {
  function NewSEC (line 247) | func NewSEC(t core.Transport) *SEC {
  function macData (line 318) | func macData(macSaltKey, data []byte) []byte {
  type Client (line 394) | type Client struct
    method SetClientAutoReconnect (line 413) | func (c *Client) SetClientAutoReconnect(id uint32, random []byte) {
    method SetAlternateShell (line 418) | func (c *Client) SetAlternateShell(shell string) {
    method SetUser (line 427) | func (c *Client) SetUser(user string) {
    method SetPwd (line 436) | func (c *Client) SetPwd(pwd string) {
    method SetDomain (line 445) | func (c *Client) SetDomain(domain string) {
    method connect (line 454) | func (c *Client) connect(clientData []interface{}, serverData []interf...
    method ClientCoreData (line 481) | func (c *Client) ClientCoreData() *gcc.ClientCoreData {
    method ClientSecurityData (line 484) | func (c *Client) ClientSecurityData() *gcc.ClientSecurityData {
    method ClientNetworkData (line 487) | func (c *Client) ClientNetworkData() *gcc.ClientNetworkData {
    method serverCoreData (line 491) | func (c *Client) serverCoreData() *gcc.ServerCoreData {
    method ServerSecurityData (line 494) | func (c *Client) ServerSecurityData() *gcc.ServerSecurityData {
    method sendClientRandom (line 635) | func (c *Client) sendClientRandom() {
    method sendInfoPkt (line 693) | func (c *Client) sendInfoPkt() {
    method recvLicenceInfo (line 703) | func (c *Client) recvLicenceInfo(s []byte) {
    method sendClientNewLicenseRequest (line 750) | func (c *Client) sendClientNewLicenseRequest(data []byte) {
    method sendClientChallengeResponse (line 817) | func (c *Client) sendClientChallengeResponse(data []byte) {
    method recvData (line 856) | func (c *Client) recvData(s []byte) {
    method SetFastPathListener (line 872) | func (c *Client) SetFastPathListener(f core.FastPathListener) {
    method RecvFastPath (line 876) | func (c *Client) RecvFastPath(secFlag byte, s []byte) {
  function NewClient (line 405) | func NewClient(t core.Transport) *Client {
  function saltedHash (line 525) | func saltedHash(inputData, salt, salt1, salt2 []byte) []byte {
  function finalHash (line 548) | func finalHash(key, random1, random2 []byte) []byte {
  function masterSecret (line 563) | func masterSecret(secret, random1, random2 []byte) []byte {
  function sessionKeyBlob (line 580) | func sessionKeyBlob(secret, random1, random2 []byte) []byte {
  function generateKeys (line 591) | func generateKeys(clientRandom, serverRandom []byte, method uint32) ([]b...
  type ClientSecurityExchangePDU (line 621) | type ClientSecurityExchangePDU struct
    method serialize (line 627) | func (e *ClientSecurityExchangePDU) serialize() []byte {

FILE: lib/grdp/protocol/t125/ber/ber.go
  constant CLASS_MASK (line 12) | CLASS_MASK uint8 = 0xC0
  constant CLASS_UNIV (line 13) | CLASS_UNIV       = 0x00
  constant CLASS_APPL (line 14) | CLASS_APPL       = 0x40
  constant CLASS_CTXT (line 15) | CLASS_CTXT       = 0x80
  constant CLASS_PRIV (line 16) | CLASS_PRIV       = 0xC0
  constant PC_MASK (line 20) | PC_MASK      uint8 = 0x20
  constant PC_PRIMITIVE (line 21) | PC_PRIMITIVE       = 0x00
  constant PC_CONSTRUCT (line 22) | PC_CONSTRUCT       = 0x20
  constant TAG_MASK (line 26) | TAG_MASK            uint8 = 0x1F
  constant TAG_BOOLEAN (line 27) | TAG_BOOLEAN               = 0x01
  constant TAG_INTEGER (line 28) | TAG_INTEGER               = 0x02
  constant TAG_BIT_STRING (line 29) | TAG_BIT_STRING            = 0x03
  constant TAG_OCTET_STRING (line 30) | TAG_OCTET_STRING          = 0x04
  constant TAG_OBJECT_IDENFIER (line 31) | TAG_OBJECT_IDENFIER       = 0x06
  constant TAG_ENUMERATED (line 32) | TAG_ENUMERATED            = 0x0A
  constant TAG_SEQUENCE (line 33) | TAG_SEQUENCE              = 0x10
  constant TAG_SEQUENCE_OF (line 34) | TAG_SEQUENCE_OF           = 0x10
  function berPC (line 37) | func berPC(pc bool) uint8 {
  function ReadEnumerated (line 44) | func ReadEnumerated(r io.Reader) (uint8, error) {
  function ReadUniversalTag (line 58) | func ReadUniversalTag(tag uint8, pc bool, r io.Reader) bool {
  function WriteUniversalTag (line 63) | func WriteUniversalTag(tag uint8, pc bool, w io.Writer) {
  function ReadLength (line 67) | func ReadLength(r io.Reader) (int, error) {
  function WriteLength (line 93) | func WriteLength(size int, w io.Writer) {
  function ReadInteger (line 102) | func ReadInteger(r io.Reader) (int, error) {
  function WriteInteger (line 126) | func WriteInteger(n int, w io.Writer) {
  function WriteOctetstring (line 140) | func WriteOctetstring(str string, w io.Writer) {
  function WriteBoolean (line 146) | func WriteBoolean(b bool, w io.Writer) {
  function ReadApplicationTag (line 156) | func ReadApplicationTag(tag uint8, r io.Reader) (int, error) {
  function WriteApplicationTag (line 174) | func WriteApplicationTag(tag uint8, size int, w io.Writer) {
  function WriteEncodedDomainParams (line 185) | func WriteEncodedDomainParams(data []byte, w io.Writer) {

FILE: lib/grdp/protocol/t125/gcc/gcc.go
  type Message (line 23) | type Message
  constant SC_CORE (line 27) | SC_CORE     Message = 0x0C01
  constant SC_SECURITY (line 28) | SC_SECURITY         = 0x0C02
  constant SC_NET (line 29) | SC_NET              = 0x0C03
  constant CS_CORE (line 31) | CS_CORE     = 0xC001
  constant CS_SECURITY (line 32) | CS_SECURITY = 0xC002
  constant CS_NET (line 33) | CS_NET      = 0xC003
  constant CS_CLUSTER (line 34) | CS_CLUSTER  = 0xC004
  constant CS_MONITOR (line 35) | CS_MONITOR  = 0xC005
  type ColorDepth (line 41) | type ColorDepth
  constant RNS_UD_COLOR_8BPP (line 44) | RNS_UD_COLOR_8BPP      ColorDepth = 0xCA01
  constant RNS_UD_COLOR_16BPP_555 (line 45) | RNS_UD_COLOR_16BPP_555            = 0xCA02
  constant RNS_UD_COLOR_16BPP_565 (line 46) | RNS_UD_COLOR_16BPP_565            = 0xCA03
  constant RNS_UD_COLOR_24BPP (line 47) | RNS_UD_COLOR_24BPP                = 0xCA04
  type HighColor (line 53) | type HighColor
  constant HIGH_COLOR_4BPP (line 56) | HIGH_COLOR_4BPP  HighColor = 0x0004
  constant HIGH_COLOR_8BPP (line 57) | HIGH_COLOR_8BPP            = 0x0008
  constant HIGH_COLOR_15BPP (line 58) | HIGH_COLOR_15BPP           = 0x000f
  constant HIGH_COLOR_16BPP (line 59) | HIGH_COLOR_16BPP           = 0x0010
  constant HIGH_COLOR_24BPP (line 60) | HIGH_COLOR_24BPP           = 0x0018
  type Support (line 66) | type Support
  constant RNS_UD_24BPP_SUPPORT (line 69) | RNS_UD_24BPP_SUPPORT uint16 = 0x0001
  constant RNS_UD_16BPP_SUPPORT (line 70) | RNS_UD_16BPP_SUPPORT        = 0x0002
  constant RNS_UD_15BPP_SUPPORT (line 71) | RNS_UD_15BPP_SUPPORT        = 0x0004
  constant RNS_UD_32BPP_SUPPORT (line 72) | RNS_UD_32BPP_SUPPORT        = 0x0008
  type CapabilityFlag (line 78) | type CapabilityFlag
  constant RNS_UD_CS_SUPPORT_ERRINFO_PDU (line 81) | RNS_UD_CS_SUPPORT_ERRINFO_PDU        uint16 = 0x0001
  constant RNS_UD_CS_WANT_32BPP_SESSION (line 82) | RNS_UD_CS_WANT_32BPP_SESSION                = 0x0002
  constant RNS_UD_CS_SUPPORT_STATUSINFO_PDU (line 83) | RNS_UD_CS_SUPPORT_STATUSINFO_PDU            = 0x0004
  constant RNS_UD_CS_STRONG_ASYMMETRIC_KEYS (line 84) | RNS_UD_CS_STRONG_ASYMMETRIC_KEYS            = 0x0008
  constant RNS_UD_CS_UNUSED (line 85) | RNS_UD_CS_UNUSED                            = 0x0010
  constant RNS_UD_CS_VALID_CONNECTION_TYPE (line 86) | RNS_UD_CS_VALID_CONNECTION_TYPE             = 0x0020
  constant RNS_UD_CS_SUPPORT_MONITOR_LAYOUT_PDU (line 87) | RNS_UD_CS_SUPPORT_MONITOR_LAYOUT_PDU        = 0x0040
  constant RNS_UD_CS_SUPPORT_NETCHAR_AUTODETECT (line 88) | RNS_UD_CS_SUPPORT_NETCHAR_AUTODETECT        = 0x0080
  constant RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL (line 89) | RNS_UD_CS_SUPPORT_DYNVC_GFX_PROTOCOL        = 0x0100
  constant RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE (line 90) | RNS_UD_CS_SUPPORT_DYNAMIC_TIME_ZONE         = 0x0200
  constant RNS_UD_CS_SUPPORT_HEARTBEAT_PDU (line 91) | RNS_UD_CS_SUPPORT_HEARTBEAT_PDU             = 0x0400
  type ConnectionType (line 97) | type ConnectionType
  constant CONNECTION_TYPE_MODEM (line 100) | CONNECTION_TYPE_MODEM          ConnectionType = 0x01
  constant CONNECTION_TYPE_BROADBAND_LOW (line 101) | CONNECTION_TYPE_BROADBAND_LOW                 = 0x02
  constant CONNECTION_TYPE_SATELLITEV (line 102) | CONNECTION_TYPE_SATELLITEV                    = 0x03
  constant CONNECTION_TYPE_BROADBAND_HIGH (line 103) | CONNECTION_TYPE_BROADBAND_HIGH                = 0x04
  constant CONNECTION_TYPE_WAN (line 104) | CONNECTION_TYPE_WAN                           = 0x05
  constant CONNECTION_TYPE_LAN (line 105) | CONNECTION_TYPE_LAN                           = 0x06
  constant CONNECTION_TYPE_AUTODETECT (line 106) | CONNECTION_TYPE_AUTODETECT                    = 0x07
  type VERSION (line 112) | type VERSION
  constant RDP_VERSION_4 (line 115) | RDP_VERSION_4      VERSION = 0x00080001
  constant RDP_VERSION_5_PLUS (line 116) | RDP_VERSION_5_PLUS         = 0x00080004
  type Sequence (line 119) | type Sequence
  constant RNS_UD_SAS_DEL (line 122) | RNS_UD_SAS_DEL Sequence = 0xAA03
  type EncryptionMethod (line 128) | type EncryptionMethod
  constant ENCRYPTION_FLAG_40BIT (line 131) | ENCRYPTION_FLAG_40BIT  uint32 = 0x00000001
  constant ENCRYPTION_FLAG_128BIT (line 132) | ENCRYPTION_FLAG_128BIT        = 0x00000002
  constant ENCRYPTION_FLAG_56BIT (line 133) | ENCRYPTION_FLAG_56BIT         = 0x00000008
  constant FIPS_ENCRYPTION_FLAG (line 134) | FIPS_ENCRYPTION_FLAG          = 0x00000010
  type EncryptionLevel (line 140) | type EncryptionLevel
  constant ENCRYPTION_LEVEL_NONE (line 143) | ENCRYPTION_LEVEL_NONE              EncryptionLevel = 0x00000000
  constant ENCRYPTION_LEVEL_LOW (line 144) | ENCRYPTION_LEVEL_LOW                               = 0x00000001
  constant ENCRYPTION_LEVEL_CLIENT_COMPATIBLE (line 145) | ENCRYPTION_LEVEL_CLIENT_COMPATIBLE                 = 0x00000002
  constant ENCRYPTION_LEVEL_HIGH (line 146) | ENCRYPTION_LEVEL_HIGH                              = 0x00000003
  constant ENCRYPTION_LEVEL_FIPS (line 147) | ENCRYPTION_LEVEL_FIPS                              = 0x00000004
  type ChannelOptions (line 153) | type ChannelOptions
  constant CHANNEL_OPTION_INITIALIZED (line 156) | CHANNEL_OPTION_INITIALIZED   ChannelOptions = 0x80000000
  constant CHANNEL_OPTION_ENCRYPT_RDP (line 157) | CHANNEL_OPTION_ENCRYPT_RDP                  = 0x40000000
  constant CHANNEL_OPTION_ENCRYPT_SC (line 158) | CHANNEL_OPTION_ENCRYPT_SC                   = 0x20000000
  constant CHANNEL_OPTION_ENCRYPT_CS (line 159) | CHANNEL_OPTION_ENCRYPT_CS                   = 0x10000000
  constant CHANNEL_OPTION_PRI_HIGH (line 160) | CHANNEL_OPTION_PRI_HIGH                     = 0x08000000
  constant CHANNEL_OPTION_PRI_MED (line 161) | CHANNEL_OPTION_PRI_MED                      = 0x04000000
  constant CHANNEL_OPTION_PRI_LOW (line 162) | CHANNEL_OPTION_PRI_LOW                      = 0x02000000
  constant CHANNEL_OPTION_COMPRESS_RDP (line 163) | CHANNEL_OPTION_COMPRESS_RDP                 = 0x00800000
  constant CHANNEL_OPTION_COMPRESS (line 164) | CHANNEL_OPTION_COMPRESS                     = 0x00400000
  constant CHANNEL_OPTION_SHOW_PROTOCOL (line 165) | CHANNEL_OPTION_SHOW_PROTOCOL                = 0x00200000
  constant REMOTE_CONTROL_PERSISTENT (line 166) | REMOTE_CONTROL_PERSISTENT                   = 0x00100000
  type KeyboardType (line 172) | type KeyboardType
  constant KT_IBM_PC_XT_83_KEY (line 175) | KT_IBM_PC_XT_83_KEY KeyboardType = 0x00000001
  constant KT_OLIVETTI (line 176) | KT_OLIVETTI                      = 0x00000002
  constant KT_IBM_PC_AT_84_KEY (line 177) | KT_IBM_PC_AT_84_KEY              = 0x00000003
  constant KT_IBM_101_102_KEYS (line 178) | KT_IBM_101_102_KEYS              = 0x00000004
  constant KT_NOKIA_1050 (line 179) | KT_NOKIA_1050                    = 0x00000005
  constant KT_NOKIA_9140 (line 180) | KT_NOKIA_9140                    = 0x00000006
  constant KT_JAPANESE (line 181) | KT_JAPANESE                      = 0x00000007
  type KeyboardLayout (line 187) | type KeyboardLayout
  constant ARABIC (line 190) | ARABIC              KeyboardLayout = 0x00000401
  constant BULGARIAN (line 191) | BULGARIAN                          = 0x00000402
  constant CHINESE_US_KEYBOARD (line 192) | CHINESE_US_KEYBOARD                = 0x00000404
  constant CZECH (line 193) | CZECH                              = 0x00000405
  constant DANISH (line 194) | DANISH                             = 0x00000406
  constant GERMAN (line 195) | GERMAN                             = 0x00000407
  constant GREEK (line 196) | GREEK                              = 0x00000408
  constant US (line 197) | US                                 = 0x00000409
  constant SPANISH (line 198) | SPANISH                            = 0x0000040a
  constant FINNISH (line 199) | FINNISH                            = 0x0000040b
  constant FRENCH (line 200) | FRENCH                             = 0x0000040c
  constant HEBREW (line 201) | HEBREW                             = 0x0000040d
  constant HUNGARIAN (line 202) | HUNGARIAN                          = 0x0000040e
  constant ICELANDIC (line 203) | ICELANDIC                          = 0x0000040f
  constant ITALIAN (line 204) | ITALIAN                            = 0x00000410
  constant JAPANESE (line 205) | JAPANESE                           = 0x00000411
  constant KOREAN (line 206) | KOREAN                             = 0x00000412
  constant DUTCH (line 207) | DUTCH                              = 0x00000413
  constant NORWEGIAN (line 208) | NORWEGIAN                          = 0x00000414
  type CertificateType (line 214) | type CertificateType
  constant CERT_CHAIN_VERSION_1 (line 217) | CERT_CHAIN_VERSION_1 CertificateType = 0x00000001
  constant CERT_CHAIN_VERSION_2 (line 218) | CERT_CHAIN_VERSION_2                 = 0x00000002
  type ChannelDef (line 221) | type ChannelDef struct
  type ClientCoreData (line 226) | type ClientCoreData struct
    method Block (line 263) | func (data *ClientCoreData) Block() []byte {
  function NewClientCoreData (line 251) | func NewClientCoreData() *ClientCoreData {
  type ClientNetworkData (line 271) | type ClientNetworkData struct
    method Block (line 280) | func (d *ClientNetworkData) Block() []byte {
  function NewClientNetworkData (line 276) | func NewClientNetworkData() *ClientNetworkData {
  type ClientSecurityData (line 288) | type ClientSecurityData struct
    method Block (line 299) | func (d *ClientSecurityData) Block() []byte {
  function NewClientSecurityData (line 293) | func NewClientSecurityData() *ClientSecurityData {
  type RSAPublicKey (line 308) | type RSAPublicKey struct
  type ProprietaryServerCertificate (line 318) | type ProprietaryServerCertificate struct
    method GetPublicKey (line 331) | func (p *ProprietaryServerCertificate) GetPublicKey() (uint32, []byte) {
    method Verify (line 334) | func (p *ProprietaryServerCertificate) Verify() bool {
    method Encrypt (line 338) | func (p *ProprietaryServerCertificate) Encrypt() []byte {
    method Unpack (line 342) | func (p *ProprietaryServerCertificate) Unpack(r io.Reader) error {
  type CertBlob (line 364) | type CertBlob struct
  type X509CertificateChain (line 368) | type X509CertificateChain struct
    method GetPublicKey (line 374) | func (p *X509CertificateChain) GetPublicKey() (uint32, []byte) {
    method Verify (line 378) | func (p *X509CertificateChain) Verify() bool {
    method Encrypt (line 381) | func (p *X509CertificateChain) Encrypt() []byte {
    method Unpack (line 386) | func (p *X509CertificateChain) Unpack(r io.Reader) error {
  type ServerCoreData (line 390) | type ServerCoreData struct
    method Serialize (line 401) | func (d *ServerCoreData) Serialize() []byte {
    method ScType (line 405) | func (d *ServerCoreData) ScType() Message {
    method Unpack (line 408) | func (d *ServerCoreData) Unpack(r io.Reader) error {
  function NewServerCoreData (line 396) | func NewServerCoreData() *ServerCoreData {
  type ServerNetworkData (line 412) | type ServerNetworkData struct
    method ScType (line 421) | func (d *ServerNetworkData) ScType() Message {
    method Unpack (line 424) | func (d *ServerNetworkData) Unpack(r io.Reader) error {
  function NewServerNetworkData (line 418) | func NewServerNetworkData() *ServerNetworkData {
  type CertData (line 428) | type CertData interface
  type ServerCertificate (line 433) | type ServerCertificate struct
  type ServerSecurityData (line 437) | type ServerSecurityData struct
    method ScType (line 450) | func (d *ServerSecurityData) ScType() Message {
    method Unpack (line 453) | func (s *ServerSecurityData) Unpack(r io.Reader) error {
  function NewServerSecurityData (line 446) | func NewServerSecurityData() *ServerSecurityData {
  function MakeConferenceCreateRequest (line 492) | func MakeConferenceCreateRequest(userData []byte) []byte {
  type ScData (line 508) | type ScData interface
  function ReadConferenceCreateResponse (line 513) | func ReadConferenceCreateResponse(data []byte) []interface{} {

FILE: lib/grdp/protocol/t125/mcs.go
  type MCSMessage (line 23) | type MCSMessage
  constant MCS_TYPE_CONNECT_INITIAL (line 26) | MCS_TYPE_CONNECT_INITIAL  MCSMessage = 0x65
  constant MCS_TYPE_CONNECT_RESPONSE (line 27) | MCS_TYPE_CONNECT_RESPONSE            = 0x66
  type MCSDomainPDU (line 30) | type MCSDomainPDU
  constant ERECT_DOMAIN_REQUEST (line 33) | ERECT_DOMAIN_REQUEST          MCSDomainPDU = 1
  constant DISCONNECT_PROVIDER_ULTIMATUM (line 34) | DISCONNECT_PROVIDER_ULTIMATUM              = 8
  constant ATTACH_USER_REQUEST (line 35) | ATTACH_USER_REQUEST                        = 10
  constant ATTACH_USER_CONFIRM (line 36) | ATTACH_USER_CONFIRM                        = 11
  constant CHANNEL_JOIN_REQUEST (line 37) | CHANNEL_JOIN_REQUEST                       = 14
  constant CHANNEL_JOIN_CONFIRM (line 38) | CHANNEL_JOIN_CONFIRM                       = 15
  constant SEND_DATA_REQUEST (line 39) | SEND_DATA_REQUEST                          = 25
  constant SEND_DATA_INDICATION (line 40) | SEND_DATA_INDICATION                       = 26
  constant MCS_GLOBAL_CHANNEL (line 44) | MCS_GLOBAL_CHANNEL   uint16 = 1003
  constant MCS_USERCHANNEL_BASE (line 45) | MCS_USERCHANNEL_BASE        = 1001
  function writeMCSPDUHeader (line 54) | func writeMCSPDUHeader(mcsPdu MCSDomainPDU, options uint8, w io.Writer) {
  function readMCSPDUHeader (line 58) | func readMCSPDUHeader(options uint8, mcsPdu MCSDomainPDU) bool {
  type DomainParameters (line 62) | type DomainParameters struct
    method BER (line 90) | func (d *DomainParameters) BER() []byte {
  function NewDomainParameters (line 77) | func NewDomainParameters(
  function ReadDomainParameters (line 103) | func ReadDomainParameters(r io.Reader) (*DomainParameters, error) {
  type ConnectInitial (line 126) | type ConnectInitial struct
    method BER (line 146) | func (c *ConnectInitial) BER() []byte {
  function NewConnectInitial (line 136) | func NewConnectInitial(userData []byte) ConnectInitial {
  type ConnectResponse (line 163) | type ConnectResponse struct
  function NewConnectResponse (line 170) | func NewConnectResponse(userData []byte) *ConnectResponse {
  function ReadConnectResponse (line 177) | func ReadConnectResponse(r io.Reader) (*ConnectResponse, error) {
  type MCSChannelInfo (line 202) | type MCSChannelInfo struct
  type MCS (line 207) | type MCS struct
    method Read (line 232) | func (x *MCS) Read(b []byte) (n int, err error) {
    method Write (line 236) | func (x *MCS) Write(b []byte) (n int, err error) {
    method Close (line 240) | func (m *MCS) Close() error {
  function NewMCS (line 215) | func NewMCS(t core.Transport, recvOpCode MCSDomainPDU, sendOpCode MCSDom...
  type MCSClient (line 244) | type MCSClient struct
    method SetClientCoreData (line 271) | func (c *MCSClient) SetClientCoreData(width, height uint16) {
    method connect (line 276) | func (c *MCSClient) connect(selectedProtocol uint32) {
    method recvConnectResponse (line 303) | func (c *MCSClient) recvConnectResponse(s []byte) {
    method sendErectDomainRequest (line 344) | func (c *MCSClient) sendErectDomainRequest() {
    method sendAttachUserRequest (line 352) | func (c *MCSClient) sendAttachUserRequest() {
    method recvAttachUserConfirm (line 358) | func (c *MCSClient) recvAttachUserConfirm(s []byte) {
    method connectChannels (line 391) | func (c *MCSClient) connectChannels() {
    method sendChannelJoinRequest (line 425) | func (c *MCSClient) sendChannelJoinRequest(channelId uint16) {
    method recvData (line 434) | func (c *MCSClient) recvData(s []byte) {
    method recvChannelJoinConfirm (line 484) | func (c *MCSClient) recvChannelJoinConfirm(s []byte) {
    method SendToChannel (line 523) | func (c *MCSClient) SendToChannel(data []byte, channelId uint16) (n in...
    method Write (line 535) | func (c *MCSClient) Write(data []byte) (n int, err error) {
  function NewMCSClient (line 259) | func NewMCSClient(t core.Transport) *MCSClient {

FILE: lib/grdp/protocol/t125/per/per.go
  function ReadEnumerates (line 12) | func ReadEnumerates(r io.Reader) (uint8, error) {
  function WriteInteger (line 16) | func WriteInteger(n int, w io.Writer) {
  function ReadInteger16 (line 29) | func ReadInteger16(r io.Reader) (uint16, error) {
  function WriteInteger16 (line 33) | func WriteInteger16(value uint16, w io.Writer) {
  function WriteChoice (line 41) | func WriteChoice(choice uint8, w io.Writer) {
  function WriteLength (line 49) | func WriteLength(value int, w io.Writer) {
  function ReadLength (line 57) | func ReadLength(r io.Reader) (uint16, error) {
  function WriteObjectIdentifier (line 78) | func WriteObjectIdentifier(oid []byte, w io.Writer) {
  function WriteSelection (line 91) | func WriteSelection(selection uint8, w io.Writer) {
  function WriteNumericString (line 95) | func WriteNumericString(s string, minValue int, w io.Writer) {
  function WritePadding (line 116) | func WritePadding(length int, w io.Writer) {
  function WriteNumberOfSet (line 121) | func WriteNumberOfSet(n int, w io.Writer) {
  function WriteOctetStream (line 130) | func WriteOctetStream(oStr string, minValue int, w io.Writer) {
  function ReadChoice (line 141) | func ReadChoice(r io.Reader) uint8 {
  function ReadNumberOfSet (line 145) | func ReadNumberOfSet(r io.Reader) uint8 {
  function ReadInteger (line 149) | func ReadInteger(r io.Reader) uint32 {
  function ReadObjectIdentifier (line 167) | func ReadObjectIdentifier(r io.Reader, oid []byte) bool {
  function ReadOctetStream (line 189) | func ReadOctetStream(r io.Reader, s string, min int) bool {

FILE: lib/grdp/protocol/tpkt/tpkt.go
  constant FASTPATH_ACTION_FASTPATH (line 23) | FASTPATH_ACTION_FASTPATH = 0x0
  constant FASTPATH_ACTION_X224 (line 24) | FASTPATH_ACTION_X224     = 0x3
  type TPKT (line 30) | type TPKT struct
    method StartTLS (line 50) | func (t *TPKT) StartTLS() error {
    method StartNLA (line 54) | func (t *TPKT) StartNLA() error {
    method recvChallenge (line 77) | func (t *TPKT) recvChallenge(data []byte) error {
    method recvPubKeyInc (line 110) | func (t *TPKT) recvPubKeyInc(data []byte) error {
    method Read (line 133) | func (t *TPKT) Read(b []byte) (n int, err error) {
    method Write (line 137) | func (t *TPKT) Write(data []byte) (n int, err error) {
    method Close (line 147) | func (t *TPKT) Close() error {
    method SetFastPathListener (line 151) | func (t *TPKT) SetFastPathListener(f core.FastPathListener) {
    method SendFastPath (line 155) | func (t *TPKT) SendFastPath(secFlag byte, data []byte) (n int, err err...
    method recvHeader (line 164) | func (t *TPKT) recvHeader(s []byte, err error) {
    method recvExtendedHeader (line 187) | func (t *TPKT) recvExtendedHeader(s []byte, err error) {
    method recvData (line 198) | func (t *TPKT) recvData(s []byte, err error) {
    method recvExtendedFastPathHeader (line 207) | func (t *TPKT) recvExtendedFastPathHeader(s []byte, err error) {
    method recvFastPath (line 221) | func (t *TPKT) recvFastPath(s []byte, err error) {
  function New (line 40) | func New(s *core.SocketLayer, ntlm *nla.NTLMv2) *TPKT {

FILE: lib/grdp/protocol/x224/x224.go
  type MessageType (line 22) | type MessageType
  constant TPDU_CONNECTION_REQUEST (line 25) | TPDU_CONNECTION_REQUEST MessageType = 0xE0
  constant TPDU_CONNECTION_CONFIRM (line 26) | TPDU_CONNECTION_CONFIRM             = 0xD0
  constant TPDU_DISCONNECT_REQUEST (line 27) | TPDU_DISCONNECT_REQUEST             = 0x80
  constant TPDU_DATA (line 28) | TPDU_DATA                           = 0xF0
  constant TPDU_ERROR (line 29) | TPDU_ERROR                          = 0x70
  type NegotiationType (line 35) | type NegotiationType
  constant TYPE_RDP_NEG_REQ (line 38) | TYPE_RDP_NEG_REQ     NegotiationType = 0x01
  constant TYPE_RDP_NEG_RSP (line 39) | TYPE_RDP_NEG_RSP                     = 0x02
  constant TYPE_RDP_NEG_FAILURE (line 40) | TYPE_RDP_NEG_FAILURE                 = 0x03
  constant PROTOCOL_RDP (line 48) | PROTOCOL_RDP       uint32 = 0x00000000
  constant PROTOCOL_SSL (line 49) | PROTOCOL_SSL              = 0x00000001
  constant PROTOCOL_HYBRID (line 50) | PROTOCOL_HYBRID           = 0x00000002
  constant PROTOCOL_HYBRID_EX (line 51) | PROTOCOL_HYBRID_EX        = 0x00000008
  type Negotiation (line 62) | type Negotiation struct
  function NewNegotiation (line 69) | func NewNegotiation() *Negotiation {
  type ClientConnectionRequestPDU (line 78) | type ClientConnectionRequestPDU struct
    method Serialize (line 95) | func (x *ClientConnectionRequestPDU) Serialize() []byte {
  function NewClientConnectionRequestPDU (line 88) | func NewClientConnectionRequestPDU(coockie []byte) *ClientConnectionRequ...
  type ServerConnectionConfirm (line 116) | type ServerConnectionConfirm struct
  type DataHeader (line 129) | type DataHeader struct
  function NewDataHeader (line 135) | func NewDataHeader() *DataHeader {
  type X224 (line 143) | type X224 struct
    method Read (line 169) | func (x *X224) Read(b []byte) (n int, err error) {
    method Write (line 173) | func (x *X224) Write(b []byte) (n int, err error) {
    method Close (line 185) | func (x *X224) Close() error {
    method SetRequestedProtocol (line 189) | func (x *X224) SetRequestedProtocol(p uint32) {
    method Connect (line 193) | func (x *X224) Connect() error {
    method recvConnectionConfirm (line 207) | func (x *X224) recvConnectionConfirm(s []byte) {
    method recvData (line 268) | func (x *X224) recvData(s []byte) {
  function New (line 151) | func New(t core.Transport) *X224 {

FILE: lib/misc/misc.go
  function IsDuplicate (line 12) | func IsDuplicate[T any](slice []T, val T) bool {
  function RemoveDuplicateElement (line 21) | func RemoveDuplicateElement[T any](slice []T, elems ...T) []T {
  function FixLine (line 37) | func FixLine(line string) string {
  function Xrange (line 46) | func Xrange(args ...int) []int {
  function MustLength (line 74) | func MustLength(s string, i int) string {
  function Percent (line 81) | func Percent(int1 int, int2 int) string {
  function StrRandomCut (line 89) | func StrRandomCut(s string, length int) string {
  function Base64Encode (line 99) | func Base64Encode(keyword string) string {
  function Base64Decode (line 105) | func Base64Decode(encodeString string) (string, error) {
  function CloneStrMap (line 110) | func CloneStrMap(strMap map[string]string) map[string]string {
  function CloneIntMap (line 118) | func CloneIntMap(intMap map[int]string) map[int]string {
  function RandomString (line 126) | func RandomString(i ...int) string {
  function Intersection (line 142) | func Intersection(a []string, b []string) (inter []string) {
  function FixMap (line 153) | func FixMap(m map[string]string) map[string]string {
  function CloneMap (line 171) | func CloneMap(m map[string]string) map[string]string {
  function AutoWidth (line 179) | func AutoWidth(s string, length int) int {
  function ToMap (line 189) | func ToMap(param interface{}) map[string]string {
  type Stringer (line 217) | type Stringer interface
  function CopySlice (line 221) | func CopySlice[T any](slice []T) []T {

FILE: lib/misc/misc_test.go
  function TestFixLine (line 8) | func TestFixLine(t *testing.T) {

FILE: lib/osping/osping.go
  function Ping (line 8) | func Ping(host string) bool {

FILE: lib/pool/pool.go
  type Logger (line 14) | type Logger interface
  function SetLogger (line 19) | func SetLogger(log Logger) {
  type Worker (line 24) | type Worker struct
    method run (line 38) | func (t *Worker) run(in interface{}) {
  function generateWorker (line 29) | func generateWorker(f func(interface{})) *Worker {
  type Pool (line 43) | type Pool struct
    method Push (line 78) | func (p *Pool) Push(i interface{}) {
    method Stop (line 89) | func (p *Pool) Stop() {
    method Run (line 97) | func (p *Pool) Run() {
    method work (line 112) | func (p *Pool) work() {
    method generateTick (line 144) | func (p *Pool) generateTick() string {
    method Threads (line 149) | func (p *Pool) Threads() int {
    method RunningThreads (line 153) | func (p *Pool) RunningThreads() int {
  function New (line 63) | func New(threads int) *Pool {

FILE: lib/pool/pool_test.go
  function TestPool_NewTick (line 12) | func TestPool_NewTick(t *testing.T) {
  function TestParse (line 20) | func TestParse(t *testing.T) {

FILE: lib/sflag/sflag.go
  function BoolVar (line 23) | func BoolVar(p *bool, name string, value bool) {
  function StringVar (line 27) | func StringVar(p *string, name string, value string) {
  function IntVar (line 31) | func IntVar(p *int, name string, value int) {
  function StringSpliceVar (line 35) | func StringSpliceVar(p *[]string, name string) {
  function IntSpliceVar (line 47) | func IntSpliceVar(p *[]int, name string) {
  function AutoVarString (line 59) | func AutoVarString(p *string, name string, value string) {
  function SetUsage (line 64) | func SetUsage(s string) {
  function Parse (line 70) | func Parse() {
  function parseStringSpliceExpress (line 81) | func parseStringSpliceExpress(expr string) (splice []string) {
  function parseIntSpliceExpress (line 114) | func parseIntSpliceExpress(expr string) (splice []int) {
  function NetlocVerification (line 137) | func NetlocVerification(s string) bool {
  function ProxyStrVerification (line 141) | func ProxyStrVerification(s string) bool {
  function fixArgs (line 145) | func fixArgs() {

FILE: lib/simplehttp/simplehttp.go
  constant readTimeout (line 20) | readTimeout   = "read response timeout"
  constant readBodyError (line 21) | readBodyError = "read response body error"
  type Response (line 29) | type Response struct
  type Raw (line 34) | type Raw struct
    method String (line 40) | func (r *Raw) String() string {
  function NewClient (line 60) | func NewClient() *http.Client {
  function SetTimeout (line 67) | func SetTimeout(c *http.Client, timeout time.Duration) {
  function SetProxy (line 71) | func SetProxy(c *http.Client, proxy string) error {
  function SetProxyWithURL (line 80) | func SetProxyWithURL(c *http.Client, uri *url.URL) {
  function LockTLSVersion (line 86) | func LockTLSVersion(c *http.Client, v uint16) {
  function NotRedirect (line 93) | func NotRedirect(c *http.Client) {
  function Do (line 99) | func Do(c *http.Client, req *http.Request) (*Response, error) {
  function NewRequest (line 120) | func NewRequest(method, url string, body io.Reader) (*http.Request, erro...
  function NewResponse (line 129) | func NewResponse(response *http.Response) *Response {
  function RandomUserAgent (line 139) | func RandomUserAgent() string {
  function Get (line 145) | func Get(URL string) (resp *Response, err error) {
  function GetWithRequest (line 155) | func GetWithRequest(req *http.Request) (resp *Response, err error) {
  function Post (line 160) | func Post(URL string, body string) (resp *Response, err error) {
  function ReadBodyTimeout (line 170) | func ReadBodyTimeout(reader io.Reader, duration time.Duration) (buf []by...
  function GetHeaderRaw (line 199) | func GetHeaderRaw(response *http.Response) string {
  function GetCertRaw (line 207) | func GetCertRaw(TLS *tls.ConnectionState) string {
  function SplitHeaderAndBody (line 226) | func SplitHeaderAndBody(response string) (header, body string) {
  type stringer (line 237) | type stringer interface
  function toRaw (line 241) | func toRaw(value interface{}) string {

FILE: lib/simplehttp/simplehttp_test.go
  function TestGet (line 5) | func TestGet(t *testing.T) {

FILE: lib/tcpping/tcpping.go
  function Ping (line 13) | func Ping(addr string, port int, timeout time.Duration) error {
  function PingPorts (line 17) | func PingPorts(ip string, timeout time.Duration) (err error) {
  function connect (line 26) | func connect(protocol string, addr string, port int, duration time.Durat...

FILE: lib/uri/uri.go
  function IsPort (line 16) | func IsPort(str string) bool {
  function ParsePort (line 23) | func ParsePort(str string) int {
  function ParseNetlocPort (line 31) | func ParseNetlocPort(str string) (string, int) {
  function IsIPv4 (line 40) | func IsIPv4(str string) bool {
  function IsIPv6 (line 50) | func IsIPv6(str string) bool {
  function IsDomain (line 85) | func IsDomain(str string) bool {
  function IsNetloc (line 95) | func IsNetloc(str string) bool {
  function IsCIDR (line 100) | func IsCIDR(str string) bool {
  function IsIPRanger (line 106) | func IsIPRanger(str string) bool {
  function IsNetlocPort (line 115) | func IsNetlocPort(str string) bool {
  function IsDomainPort (line 126) | func IsDomainPort(str string) bool {
  function IsIPPort (line 137) | func IsIPPort(str string) bool {
  function IsProtocol (line 147) | func IsProtocol(str string) bool {
  function IsURL (line 155) | func IsURL(str string) bool {
  function IsHostPath (line 183) | func IsHostPath(str string) bool {
  function GetNetlocWithURL (line 197) | func GetNetlocWithURL(str string) string {
  function GetNetlocWithHostPath (line 202) | func GetNetlocWithHostPath(str string) string {
  function GetNetlocWithHost (line 212) | func GetNetlocWithHost(str string) string {
  function SplitWithNetlocPort (line 216) | func SplitWithNetlocPort(str string) (netloc string, port int) {
  function RangerToIP (line 222) | func RangerToIP(ranger string) (IPs []net.IP) {
  function CIDRToIP (line 227) | func CIDRToIP(cidr string) (IPs []net.IP) {
  function LastIP (line 234) | func LastIP(network *net.IPNet) net.IP {
  function FirstIP (line 242) | func FirstIP(network *net.IPNet) net.IP {
  function Contains (line 246) | func Contains(network *net.IPNet, ip net.IP) bool {
  function SameSegment (line 251) | func SameSegment(ips ...string) bool {
  function parseIPPairs (line 269) | func parseIPPairs(str string) (ip1 net.IP, ip2 net.IP) {
  function pairsToIP (line 295) | func pairsToIP(ip1, ip2 net.IP) (IPs []net.IP) {
  function toInt (line 306) | func toInt(ip net.IP) uint32 {
  function toIP (line 317) | func toIP(i uint32) string {
  function GetGatewayList (line 324) | func GetGatewayList(ip string, t string) []string {
  function stringContainsCTLByte (line 351) | func stringContainsCTLByte(s string) bool {
  function URLParse (line 361) | func URLParse(URLRaw string) *url.URL {
  function GetURLPort (line 366) | func GetURLPort(URL *url.URL) string {

FILE: qscan.go
  constant logo (line 23) | logo = `
  constant help (line 29) | help = `
  constant usage (line 76) | usage = "usage: qscan [-h,--help] (-t,--target,--spy]) [options] [hydra ...
  function main (line 78) | func main() {
  function Init (line 109) | func Init() {
  constant fingerprintPath (line 148) | fingerprintPath = "static/fingerprint.txt"
  function InitQscan (line 151) | func InitQscan() {

FILE: run/run.go
  function Start (line 30) | func Start() {
  function buildExcludedMap (line 57) | func buildExcludedMap() map[string]struct{} {
  function pushTarget (line 67) | func pushTarget(expr string, excludedMap map[string]struct{}) {
  function pushURLTarget (line 157) | func pushURLTarget(URL *url.URL, response *gonmap.Response) {
  type ScanFunc (line 194) | type ScanFunc
  function start (line 241) | func start() {
  function stop (line 252) | func stop() {
  function generateIPScanner (line 302) | func generateIPScanner(wg *sync.WaitGroup) *scanner.IPClient {
  function getTimeout (line 327) | func getTimeout(i int) time.Duration {
  function generatePortScanner (line 340) | func generatePortScanner(wg *sync.WaitGroup) *scanner.PortClient {
  function generateURLScanner (line 385) | func generateURLScanner(wg *sync.WaitGroup) *scanner.URLClient {
  function generateEXPScanner (line 405) | func generateEXPScanner(wg *sync.WaitGroup) *scanner.EXPClient {
  function generateHTTPPOCScanner (line 427) | func generateHTTPPOCScanner(wg *sync.WaitGroup) *scanner.HTTPPOCClient {
  function generateHydraScanner (line 447) | func generateHydraScanner(wg *sync.WaitGroup) *scanner.HydraClient {
  function outputHydraSuccess (line 464) | func outputHydraSuccess(addr net.IP, port int, protocol string, auth *hy...
  function outputNmapFinger (line 474) | func outputNmapFinger(URL *url.URL, resp *gonmap.Response) {
  function outputAppFinger (line 484) | func outputAppFinger(URL *url.URL, banner *appfinger.Banner, finger *app...
  function outputUnknownResponse (line 507) | func outputUnknownResponse(addr net.IP, port int, response string) {
  function getHTTPDigest (line 538) | func getHTTPDigest(s string) string {
  function getRawDigest (line 554) | func getRawDigest(s string) string {
  function OutputHandler (line 571) | func OutputHandler(URL *url.URL, keyword string, m map[string]string) {
  function watchDog (line 617) | func watchDog() {
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, and a symbol index with 1874 extracted functions, classes, methods, constants, and types. 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!