Added code to grab X-Powered-By header
This commit is contained in:
parent
40df6d6927
commit
5f273df01a
|
@ -40,6 +40,11 @@ func (os *OnionScan) Scan(hiddenService string) (*report.OnionScanReport, error)
|
||||||
report.ServerVersion = response.Header.Get("Server")
|
report.ServerVersion = response.Header.Get("Server")
|
||||||
log.Printf("\tServer Version: %s\n", report.ServerVersion)
|
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
|
// Apache mod-status Check
|
||||||
os.ScanPage(hiddenService, "/server-status", report, scans.ApacheModStatus)
|
os.ScanPage(hiddenService, "/server-status", report, scans.ApacheModStatus)
|
||||||
os.ScanPage(hiddenService, "/", report, scans.StandardPageScan)
|
os.ScanPage(hiddenService, "/", report, scans.StandardPageScan)
|
||||||
|
|
|
@ -16,6 +16,7 @@ type ExifImage struct {
|
||||||
|
|
||||||
type OnionScanReport struct {
|
type OnionScanReport struct {
|
||||||
HiddenService string `json:"hiddenService"`
|
HiddenService string `json:"hiddenService"`
|
||||||
|
ServerPoweredBy string `json:"serverPoweredBy"`
|
||||||
ServerVersion string `json:"serverVersion"`
|
ServerVersion string `json:"serverVersion"`
|
||||||
FoundApacheModStatus bool `json:"foundApacheModStatus"`
|
FoundApacheModStatus bool `json:"foundApacheModStatus"`
|
||||||
RelatedOnionServices []string `json:"relatedOnionServices"`
|
RelatedOnionServices []string `json:"relatedOnionServices"`
|
||||||
|
|
Loading…
Reference in New Issue