diff --git a/onionscan.go b/onionscan.go index dd39799..3c32ef0 100644 --- a/onionscan.go +++ b/onionscan.go @@ -39,6 +39,11 @@ func (os *OnionScan) Scan(hiddenService string) (*report.OnionScanReport, error) log.Printf("Attempting to Derive Server Type from Headers..\n") report.ServerVersion = response.Header.Get("Server") log.Printf("\tServer Version: %s\n", report.ServerVersion) + + // Initial attempt at grabbing X-Powered-By header response + log.Printf("Attempting to grab additional header information..\n") + report.ServerPoweredBy = response.Header.Get("X-Powered-By") + log.Printf("\tX-Powered-By: %s\n", report.ServerPoweredBy) // Apache mod-status Check os.ScanPage(hiddenService, "/server-status", report, scans.ApacheModStatus) diff --git a/report/onionscanreport.go b/report/onionscanreport.go index fc57bc6..c6d3ddc 100644 --- a/report/onionscanreport.go +++ b/report/onionscanreport.go @@ -16,6 +16,7 @@ type ExifImage struct { type OnionScanReport struct { HiddenService string `json:"hiddenService"` + ServerPoweredBy string `json:"serverPoweredBy"` ServerVersion string `json:"serverVersion"` FoundApacheModStatus bool `json:"foundApacheModStatus"` RelatedOnionServices []string `json:"relatedOnionServices"`