Skip to content

[FTL] interface{} not allowed #2117

Closed

Description

@MikePompeo8889

Hi.

root@0:~# httpx -ldv
[FTL] interface{} not allowed

What is this? -hc output:

Version: v1.6.10
Operative System: linux
Architecture: amd64
Go Version: go1.23.2
Compiler: gc
Config file "/root/.config/httpx/config.yaml" Read => Ok
Config file "/root/.config/httpx/config.yaml" Write => Ok
IPv4 connectivity to scanme.sh:80 => Ok

Activity

  1. added
    Type: Bug
    on Mar 5, 2025
  2. self-assigned this
    on Mar 5, 2025
  3. jimen0 commented on Apr 15, 2025

    @jimen0
    Contributor

    Potential fix below @dogancanbakir:

    diff --git a/runner/types.go b/runner/types.go
    index 45d9d34..c3eeae3 100644
    --- a/runner/types.go
    +++ b/runner/types.go
    @@ -124,7 +124,7 @@ type Trace struct {
     func dslVariables() ([]string, error) {
            fakeResult := Result{}
            fieldsToIgnore := []string{"Hashes", "ResponseHeaders", "Err", "KnowledgeBase"}
    -       if err := faker.FakeData(&fakeResult, options.WithFieldsToIgnore(fieldsToIgnore...)); err != nil {
    +       if err := faker.FakeData(&fakeResult, options.WithFieldsToIgnore(fieldsToIgnore...), options.WithIgnoreInterface(true)); err != nil {
                    return nil, err
            }
            m, err := resultToMap(fakeResult)
    $ go run ./cmd/httpx/httpx.go -ldv
    header_md5
    header_mmh3
    header_sha256
    header_simhash
    body_md5
    body_mmh3
    body_sha256
    body_simhash
    cdn_type
    port
    path
    jarm_hash
    vhost
    pipeline
    location
    raw_header
    words
    asn
    cdn_name
    input
    title
    websocket
    screenshot_path
    scheme
    body_preview
    final_url
    time
    host
    favicon_md5
    resolvers
    extract_regex
    request
    content_length
    http2
    webserver
    chain_status_codes
    body_domains
    favicon_path
    headless_body
    csp
    content_type
    screenshot_bytes
    stored_response_path
    sni
    error
    screenshot_path_rel
    extracts
    failed
    favicon_url
    tech
    url
    cname
    status_code
    cdn
    body
    method
    favicon
    aaaa
    lines
    tls
    a
    chain
    body_fqdn
    trace
  4. dogancanbakir commented on Apr 15, 2025

    @dogancanbakir
    Member

    @jimen0 Would you like to raise a PR? I'll review if necessary we can collab.

  5. jimen0 commented on Apr 15, 2025

    @jimen0
    Contributor

    See #2147 @dogancanbakir. Please note I didn't run any kind of intensive testing for it. Hope it doesn't break anything!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type: Bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions