-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem whith this error: The DNS query name does not exist #14
Labels
bug
Something isn't working
Comments
this is an internal error maybe because of some other issue maybe the records were not detected or there was something completely different |
it worked while i tested 🤷♂️ |
will update this error |
update the import openai
import dns.resolver
from typing import Any
from rich.progress import track
openai.api_key = ""
model_engine = "text-davinci-003"
def dnsr(target: str) -> Any:
analyze = ''
# The DNS Records to be enumerated
record_types = ['A', 'AAAA', 'NS', 'CNAME', 'MX', 'PTR', 'SOA', 'TXT']
for records in track(record_types):
try:
answer = dns.resolver.resolve(target, records)
for server in answer:
st = server.to_text()
analyze += "\n"
analyze += records
analyze += " : "
analyze += st
except dns.resolver.NoAnswer:
print('No record Found')
pass
except dns.resolver.NXDOMAIN:
print('NXDOMAIN record NOT Found')
pass
except KeyboardInterrupt:
print("Bye")
quit()
try:
prompt = "do a DNS analysis of {} and return proper clues for an attack in json".format(
analyze)
# A structure for the request
completion = openai.Completion.create(
engine=model_engine,
prompt=prompt,
max_tokens=1024,
n=1,
stop=None,
)
response = completion.choices[0].text
except KeyboardInterrupt:
print("Bye")
quit()
return response |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi
When I run program:
python gpt_vuln.py --target IP --attack dns
I get this error:
\AppData\Local\Programs\Python\Python311\Lib\site-packages\dns\resolver.py", line 691, in next_request
raise NXDOMAIN(qnames=self.qnames_to_try, responses=self.nxdomain_responses)
dns.resolver.NXDOMAIN: The DNS query name does not exist: IPAddress
The text was updated successfully, but these errors were encountered: