Skip to content

Commit

Permalink
Merge pull request #922 from jamesgol/dns-beacon
Browse files Browse the repository at this point in the history
Ensure beacon tries to connect the same as session
  • Loading branch information
rkervella committed Sep 28, 2022
2 parents c0a5a06 + 97ff802 commit 4738bf2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion implant/sliver/transports/beacon.go
Expand Up @@ -343,7 +343,7 @@ func dnsBeacon(uri *url.URL) *Beacon {
ActiveC2: uri.String(),
Init: func() error {
opts := dnsclient.ParseDNSOptions(uri)
client, err = dnsclient.DNSStartSession(uri.Host, opts)
client, err = dnsclient.DNSStartSession(uri.Hostname(), opts)
if err != nil {
// {{if .Config.Debug}}
log.Printf("[beacon] dns connection error %s", err)
Expand Down

0 comments on commit 4738bf2

Please sign in to comment.