mirror of
https://github.com/gchq/CyberChef.git
synced 2025-05-09 07:45:00 -04:00
add small fixes
This commit is contained in:
parent
31dc316192
commit
7a6235ff21
1 changed files with 9 additions and 6 deletions
|
@ -20,7 +20,7 @@ class DNSOverHTTPS extends Operation {
|
||||||
this.name = "DNS over HTTPS";
|
this.name = "DNS over HTTPS";
|
||||||
this.module = "Default";
|
this.module = "Default";
|
||||||
this.description = [
|
this.description = [
|
||||||
"Takes one or more FQDN seperated by newlines and performs a DNS lookup using DNS over HTTPS.",
|
"Takes one or more FQDN(s) that are seperated by newlines, and performs a DNS lookup using DNS over HTTPS.",
|
||||||
"<br><br>",
|
"<br><br>",
|
||||||
"By default, <a href='https://developers.cloudflare.com/1.1.1.1/dns-over-https/'>Cloudflare</a> and <a href='https://developers.google.com/speed/public-dns/docs/dns-over-https'>Google</a> DNS over HTTPS services are supported.",
|
"By default, <a href='https://developers.cloudflare.com/1.1.1.1/dns-over-https/'>Cloudflare</a> and <a href='https://developers.google.com/speed/public-dns/docs/dns-over-https'>Google</a> DNS over HTTPS services are supported.",
|
||||||
"<br><br>",
|
"<br><br>",
|
||||||
|
@ -101,11 +101,14 @@ class DNSOverHTTPS extends Operation {
|
||||||
if (justAnswer) {
|
if (justAnswer) {
|
||||||
if (data.Answer) {
|
if (data.Answer) {
|
||||||
return extractData(data.Answer);
|
return extractData(data.Answer);
|
||||||
}
|
} else {
|
||||||
else {
|
if(data.Question.length > 0){
|
||||||
let r = {};
|
let r = {};
|
||||||
r[data.Question[0].name] = null;
|
r[data.Question[0].name] = null;
|
||||||
return r;
|
return r;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue