gen_browser_records.sh 516 B

12345678910111213
  1. #!/bin/bash
  2. echo "# generated by $0"
  3. ua_header="<browser_name>:<browser_version>:<os_platform>:<os_name>:<os_version>:<device_type>:<quirks>"
  4. req_header="<tls_version>:<cipher_suites>:<extension_names>:<curves>:<ec_point_fmts>:<http_headers>:<quirks>"
  5. mitm_header="<mitm_name>:<mitm_type>:<mitm_grade>"
  6. echo "# ${ua_header}|${req_header}|${mitm_header}"
  7. pcaps=`find reference_fingerprints/pcaps/browsers -type f -name "handshake.pcap"`
  8. for pcapfile in $pcaps; do
  9. scripts/filename_to_fingerprint.py $pcapfile
  10. done