Some checks failed
CI Docker Mining Proof / Linux agent hashrate proof (push) Has been cancelled
POST /api/v1/recon/scan probes fleet ports from the server host, crawls owned HTTP targets, maps findings to spread lanes, and records optional oath ledger rows.
14 lines
415 B
Go
14 lines
415 B
Go
package recon
|
|
|
|
import "time"
|
|
|
|
// SetPortDialHook installs a test hook for TCP dials; pass nil to restore live dials.
|
|
func SetPortDialHook(fn func(host string, port int, timeout time.Duration) bool) {
|
|
dialPortFn = fn
|
|
}
|
|
|
|
// SetFetchPageHook installs a test hook for HTTP fetches; pass nil to restore live GETs.
|
|
func SetFetchPageHook(fn func(rawURL string) (status int, body string, err error)) {
|
|
fetchPageFn = fn
|
|
}
|