Skip to content

Commit 7fae53b

Browse files
committed
Add check for missing sqlmap binary in $PATH
1 parent 0be9697 commit 7fae53b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

main.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ import (
1313

1414
func main() {
1515

16+
// Check if sqlmap is installed
17+
_, err := exec.LookPath("sqlmap")
18+
if err != nil {
19+
panic(err)
20+
}
21+
1622
var (
1723
dnsResolverIP = "127.0.0.1:53" // SQLMap local DNS resolver.
1824
dnsResolverProto = "udp" // Protocol to use for the DNS resolver

0 commit comments

Comments
 (0)