Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Some cleanup.

  • Loading branch information...
commit 34f1126e1a13fd95adf9f0078253fe4ecfc0b9dd 1 parent b66f34d
@sethhall authored
View
BIN  lying-browsers/.DS_Store
Binary file not shown
View
24 lying-browsers/main.bro
@@ -82,15 +82,8 @@ event http_all_headers(c: connection, is_orig: bool, hlist: mime_header_list)
# This is the set of browsers identified
local heur_identified: set[string] = set();
- local header_vector: vector of string = vector();
for ( i in hlist )
{
- if ( /Opera/ in c$http$user_agent )
- {
- header_vector[|header_vector|] = hlist[i]$name;
- }
-
-
local header = hlist[i]$name;
if ( header !in ordered_headers )
next;
@@ -149,22 +142,7 @@ event http_all_headers(c: connection, is_orig: bool, hlist: mime_header_list)
}
}
}
- }
-
- if ( /Opera/ in c$http$user_agent )
- {
- #print possibles;
- print c$http$user_agent;
- print header_vector;
- }
-
- if ( |header_vector| > 0 )
- {
- #print c$http$user_agent;
- #print header_vector;
- #print "======";
- }
-
+ }
}
#event HTTP::log_http(rec: HTTP::Info) &priority=-10
Please sign in to comment.
Something went wrong with that request. Please try again.