Comments (21)
i ha the same error, when i was connected to my VPN. i changed the ip in the file from Google to Cloudfare, that is from 8.8.8.8 to 1.1.1.1 on two locations.
After that it worked :D
from finalrecon.
@ashishgajjar90 as per the error, it is unable to connect at 8.8.8.8
for some reason
from finalrecon.
Is that DNS IP hard coded within the config files? Or is it picking that DNS server from my network settings? I tried specifying a DNS server manually, but I still get the same error.
How can we troubleshoot more and get a fix for this?
from finalrecon.
@ashishgajjar90 it's hard coded, when I was testing with cloudflare dns I got the same error so I hard coded google dns
from finalrecon.
from finalrecon.
I use both Google and Cloudflare DNS in my network and those are fine. The script for some reason isn't :/
from finalrecon.
@ashishgajjar90 take a look at this https://serverfault.com/questions/964540/port-53-udp-and-tcp-gets-blocked-when-openvpn-is-operating
tool works fine at my end, so there is some issue in your network which is blocking 8.8.8.8 on port 53
from finalrecon.
I am getting the same error and verified on my end that I can reach the required ports:
nc -v -u 8.8.8.8 53
dns.google [8.8.8.8] 53 (domain) open
from finalrecon.
I used an alternate DNS server in the dns.py module and it worked. Seems like Google is blocking such requests maybe?
from finalrecon.
@chr0n1k that does look like google is blocking but then it should block every such request, like if I use dns enum module it should block me too but it doesn't, strange
from finalrecon.
@thewhiteh4t I used the dns enum module specifically to recreate the issue. It is strange that I could port knock with netcat but when running dns enum it threw that error. I tried the same with 1.1.1.1 and got the same error. Then used a regional DNS server and it worked.
from finalrecon.
@chr0n1k the error is actually in dns.py which is a part of dnslib
pkt = q.send('8.8.8.8', 53, tcp='UDP')
File "/usr/lib/python3/dist-packages/dnslib/dns.py", line 365, in send
sock.connect((dest,port))
ConnectionRefusedError: [Errno 111] Connection refused
and connection is refused before it can send anything, if nothing is sent then why will google or cloudflare block the connection
from finalrecon.
@thewhiteh4t I started my investigation there then when I tested an alternate DNS server in the dns.py module it worked. Don't know how else this error would be caused.
from finalrecon.
@chr0n1k I will try to change implementation if it's possible
from finalrecon.
@thewhiteh4t That would be great. or parse a DNS variable option. Though that can be a nightmare too.
from finalrecon.
@chr0n1k yeah, this needs a proper solution
from finalrecon.
@chr0n1k
can you please test this code :
#!/usr/bin/env python3
import dns.resolver #pip3 install dnspython
addr = 'secure-startup.com'
dmarc_addr = '_dmarc.' + addr
types = ['A', 'AAAA', 'ANY', 'CAA', 'CNAME', 'MX', 'NS', 'TXT']
for qtype in types:
try:
ans = dns.resolver.query(addr, qtype)
for item in ans:
print(addr + '\t' + qtype + '\t' + str(item))
print()
except Exception as e:
#print(e)
pass
try:
ans = dns.resolver.query(dmarc_addr, 'TXT')
for item in ans:
print(dmarc_addr + '\t' + 'TXT' + '\t' + str(item))
except Exception as e:
print(e)
from finalrecon.
Closing due to inactivity.
from finalrecon.
@mmuncan can you test the code I have given above? With and without vpn, if it works for you in both cases then I can update
from finalrecon.
@thewhiteh4t i test your code and i have no issue (VPN on with DNS exclusive ans VPN off).
Error is in app of VPN who exclusive DNS on (ExpressVPN).
Now DNS Enumeration work for me.
from finalrecon.
@JavuMan thanks for testing, should I will implement new code soon!
from finalrecon.
Related Issues (20)
- False Output HOT 15
- "statusCode": 401, "message": "Access denied due to improperly formed hibp-api-key." } HOT 1
- restart while was running on WSL2 HOT 1
- Error on directory search
- Handle exception HOT 5
- Permission denied while starting finalrecon HOT 4
- Error with the psycopg2-binary python library. HOT 19
- Dependency checker does not recognise the psycopg2-binary package HOT 3
- Attention: Someone stole your work HOT 6
- Keeps crashing HOT 3
- Modify results directory HOT 2
- ZSH: Segmentation Fault on Kali 2022.3 HOT 4
- no api key detected while keys are added into keys.json (m1 mac) HOT 2
- Windows support
- API Keys Issue HOT 18
- Social engineering
- readme.md Usage section needs update HOT 1
- Log file not found HOT 2
- Subdomain Enumeration error HOT 2
- Error with CAA (Certification Authority Authorization) DNS Record Type HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from finalrecon.