Method: Platform::Fingerprinters::ASPXMVC#run

Defined in:
components/fingerprinters/frameworks/aspx_mvc.rb

#runObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
# File 'components/fingerprinters/frameworks/aspx_mvc.rb', line 21

def run
    # Naive but enough, I think.
    if html? && page.body =~ /input.*#{ANTI_CSRF_NONCE}/i
        return update_platforms
    end

    if (headers.keys & HEADER_FIELDS).any?
        return update_platforms
    end

    if cookies.include?( ANTI_CSRF_NONCE )
        update_platforms
    end
end