Files
Tarun Koyalwar 63b64cb4e6 feat: httpx results dashboard (#1834)
* misc updates

* WIP: add dashboard support

* feat dashboard support

* screenshot with upload validation

* misc textual update

* interactive api key login

* feat: add -pdu local results file upload

* fix missing tech info in dashboard

* update flag description

---------

Co-authored-by: sandeep <8293321+ehsandeep@users.noreply.github.com>
2024-07-26 20:57:19 +05:30

20 lines
565 B
Go

package pdcp
import (
pdcpauth "github.com/projectdiscovery/utils/auth/pdcp"
urlutil "github.com/projectdiscovery/utils/url"
)
func getAssetsDashBoardURL(id string) string {
ux, _ := urlutil.Parse(pdcpauth.DashBoardURL)
ux.Path = "/assets/" + id
ux.Update()
return ux.String()
}
// {"asset_id":"cqdtekhte9oc73e9hrvg","message":"Successfully uploaded asset","upload_status":"success","uploaded_at":"2024-07-20 15:27:16.148527329 +0000 UTC m=+1078.215945902"}
type uploadResponse struct {
ID string `json:"asset_id"`
Message string `json:"message"`
}