a1g3 / dns-scanner Goto Github PK
View Code? Open in Web Editor NEWA parser and semantic analyzer for SPF, DMARC, and CAA DNS records
A parser and semantic analyzer for SPF, DMARC, and CAA DNS records
After compiling the code as described and starting the HTTP server, I get a runtime error whenever I access the API
http://myip:10000/api/fqd.dns
2023/10/10 16:22:48 http: panic serving server_ip:53029: runtime error: invalid memory address or nil pointer dereference
goroutine 5 [running]:
net/http.(*conn).serve.func1()
/usr/lib/go/src/net/http/server.go:1854 +0xbf
panic({0x724760, 0x9ec190})
/usr/lib/go/src/runtime/panic.go:890 +0x263
dnsScanner/workers.ScanDns({0xc000094009, 0x7})
/root/source/go/dns-scanner/workers/dnsScanner.go:45 +0x30d
main.scanDns({0x807b50, 0xc0000ae000}, 0xc00008c1e0?)
/root/source/go/dns-scanner/main.go:18 +0x85
net/http.HandlerFunc.ServeHTTP(0xc000092300?, {0x807b50?, 0xc0000ae000?}, 0x800?)
/usr/lib/go/src/net/http/server.go:2122 +0x2f
github.com/gorilla/mux.(*Router).ServeHTTP(0xc000000180, {0x807b50, 0xc0000ae000}, 0xc000092000)
/root/go/pkg/mod/github.com/gorilla/[email protected]/mux.go:210 +0x1cf
net/http.serverHandler.ServeHTTP({0xc00008c030?}, {0x807b50, 0xc0000ae000}, 0xc000092000)
/usr/lib/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc000164090, {0x807d78, 0xc000150c90})
/usr/lib/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
/usr/lib/go/src/net/http/server.go:3089 +0x5ed
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.