Skip to content

Commit

Permalink
Add all crawling results into WebServiceContext.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 416219635
Change-Id: I96f33bcaaad6f453ae20222bc2924f706a7ee39b
  • Loading branch information
Tsunami Team authored and copybara-github committed Dec 14, 2021
1 parent 43c4c30 commit 35c10ac
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions proto/network_service.proto
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ package tsunami.proto;

import "network.proto";
import "software.proto";
import "web_crawl.proto";

option java_multiple_files = true;
option java_outer_classname = "NetworkServiceProtos";
Expand Down Expand Up @@ -62,6 +63,7 @@ message ServiceContext {
}

// Context information about a web application.
// NEXT ID: 5
message WebServiceContext {
// The root path of the hosted web application.
string application_root = 1;
Expand All @@ -71,4 +73,7 @@ message WebServiceContext {

// The detected versions of the web application.
VersionSet version_set = 3;

// Fingerprinter's crawling results for this web service.
repeated CrawlResult crawl_results = 4;
}
7 changes: 2 additions & 5 deletions proto/web_crawl.proto
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ syntax = "proto3";

package tsunami.proto;

import "network_service.proto";
import "network.proto";

option java_multiple_files = true;
Expand Down Expand Up @@ -59,13 +58,11 @@ message CrawlConfig {
// Optional.
bool should_enforce_scope_check = 5;

// The network service to be crawled.
// DEPRECATED. Use network_endpoint instead.
NetworkService network_service = 4 [deprecated = true];

// The network endpoint to be crawled.
// Required.
NetworkEndpoint network_endpoint = 6;

reserved 4;
}

message CrawlTarget {
Expand Down

0 comments on commit 35c10ac

Please sign in to comment.