Skip to content

Commit 15368b3

Browse files
committed
fix: include CF1016 in DNS takeover and correct misconfig tab mapping
Run CF1016 as part of the comprehensive DNS takeover flow so workflow DNS results include Cloudflare 1016 findings, and treat legacy misconfig tab state as module-specific to keep columns and values aligned. Made-with: Cursor
1 parent 9e4c417 commit 15368b3

3 files changed

Lines changed: 16 additions & 3 deletions

File tree

internal/modules/dns/dns.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
"sync"
1414
"time"
1515

16+
"github.com/h0tak88r/AutoAR/internal/modules/cf1016"
1617
"github.com/h0tak88r/AutoAR/internal/modules/db"
1718
"github.com/h0tak88r/AutoAR/internal/modules/subdomains"
1819
"github.com/h0tak88r/AutoAR/internal/modules/utils"
@@ -264,6 +265,16 @@ func TakeoverWithOptions(opts TakeoverOptions) error {
264265
if err := checkCloudflareTunnels(processingDir, findingsDir, subsFile); err != nil {
265266
log.Printf("[WARN] Cloudflare Tunnel availability check failed: %v", err)
266267
}
268+
// CF-1016 is part of comprehensive DNS takeover coverage.
269+
// Use the same subdomain input set prepared for this DNS scan.
270+
if _, err := cf1016.Run(cf1016.Options{
271+
Domain: opts.Domain,
272+
SubdomainsFile: subsFile,
273+
Threads: 100,
274+
Timeout: 10 * time.Second,
275+
}); err != nil {
276+
log.Printf("[WARN] CF1016 step failed: %v", err)
277+
}
267278

268279
// Summary file generation removed - only raw results are sent
269280

internal/modules/gobot/ui/app.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1945,7 +1945,8 @@ const MODULE_RENDERERS = {
19451945
};
19461946

19471947
function getUnifiedTableColumns(activeKind) {
1948-
const moduleTab = String(activeKind || '').startsWith('mod:') ? String(activeKind).slice(4) : '';
1948+
const active = String(activeKind || '');
1949+
const moduleTab = active.startsWith('mod:') ? active.slice(4) : (active === 'misconfig' ? 'misconfig' : '');
19491950
switch (moduleTab) {
19501951
case 'nuclei':
19511952
return ['TARGET', 'SEV', 'TEMPLATE', 'MATCH'];
@@ -1961,7 +1962,8 @@ function getUnifiedTableColumns(activeKind) {
19611962
}
19621963

19631964
function renderRowForUnifiedTab(r, idx, activeKind, modInfo, sevMeta) {
1964-
const moduleTab = String(activeKind || '').startsWith('mod:') ? String(activeKind).slice(4) : '';
1965+
const active = String(activeKind || '');
1966+
const moduleTab = active.startsWith('mod:') ? active.slice(4) : (active === 'misconfig' ? 'misconfig' : '');
19651967
const target = String(r.host || r.target || '-');
19661968
let displayTarget = target;
19671969
let href = target.startsWith('http') ? target : (target !== '-' ? `https://${target}` : '#');

internal/modules/subdomain/subdomain.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ func RunSubdomain(subdomain string) (*Result, error) {
9797

9898

9999

100-
totalSteps := 18
100+
totalSteps := 18
101101
var currentStep int32
102102

103103
// Helper to get next step safely

0 commit comments

Comments
 (0)