Comments (11)
If any1 will have the same problem just follow my instructions
- Install beautifulsoup4
pip install beautifulsoup4
- open sublist3r.py file in any editor.
and import bs4
add this line on the top of file
from bs4 import BeautifulSoup
go to line 640 and replace function get_csrftoken
def get_csrftoken(self, resp)
to following
def get_csrftoken(self, resp):
soup = BeautifulSoup(resp,features="html.parser")
token = soup.find('input', {'name': 'csrfmiddlewaretoken'}).get('value')
return token.strip()
from sublist3r.
Hi @hoseta @AdriiiPRodri, thanks for reporting this. This issue was caused due to DNSDumpster was making some modifications in their website HTML structure.
I just pushed a fix for this issue in the latest commit 5d33d9f, but I will try to apply a better fix using HTML parser better than relying on constant regex values.
from sublist3r.
@D4master, I'm gonna add a check for that in the code, so if the website doesn't respond with "200 OK" then it will ignore it and temporary stop the enumeration from that website.
from sublist3r.
i get this too in DNSdumpster
Process DNSdumpster-8:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/share/Sublist3r/sublist3r.py", line 565, in run
domain_list = self.enumerate()
File "/usr/share/Sublist3r/sublist3r.py", line 625, in enumerate
token = self.get_csrftoken(resp)
File "/usr/share/Sublist3r/sublist3r.py", line 620, in get_csrftoken
token = csrf_regex.findall(resp)[0]
IndexError: list index out of range
from sublist3r.
i suggest add module that handle connections error
from sublist3r.
Looks like the problem with the DNSdumpster website itself. As the website "https://dnsdumpster.com/" is down right now and it's not working properly. So the issue should be fixed when the website back to the service again.
from sublist3r.
I'm getting a different error and dnsdumpster is online.
[-] Searching now in PassiveDNS..
HTTPSConnectionPool(host='dnsdumpster.com', port=443): Read timed out. (read timeout=25)
Process DNSdumpster-8:
Traceback (most recent call last):
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "./sublist3r.py", line 565, in run
domain_list = self.enumerate()
File "./sublist3r.py", line 628, in enumerate
self.extract_domains(post_resp)
File "./sublist3r.py", line 641, in extract_domains
results_tbl = tbl_regex.findall(resp)[0]
TypeError: expected string or buffer
Maybe they changed the output format/syntax?
from sublist3r.
HTTPSConnectionPool(host='dnsdumpster.com', port=443): Read timed out. (read timeout=10)
Exception in thread Thread-7:
Traceback (most recent call last):
File "%Python%\Python35\lib\threading.py", line 914, in _bootstrap_inner
self.run()
File "%Sublist3r%\sublist3r.py", line 258, in run
domain_list = self.enumerate()
File "%Sublist3r%\sublist3r.py", line 635, in enumerate
self.extract_domains(post_resp)
File "%Sublist3r%\sublist3r.py", line 647, in extract_domains
results_tbl = tbl_regex.findall(resp)[0]
TypeError: expected string or bytes-like object
from sublist3r.
This bug should be fixed now.
from sublist3r.
Hi everyone,
This problem is still present, the @hoseta fix should be merge in the main branch. It improves the results obtained and does not break the compatibility with Python2.
Before
[-] Total Unique Subdomains Found: 9
After
[-] Total Unique Subdomains Found: 10
from sublist3r.
I'm still getting the error from DNSDumpster. I changed the CSRF code with @aboul3la fix but nothing changed? Maybe I missed something.
Process DNSdumpster-80: Traceback (most recent call last): File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in _bootstrap self.run() File "/home/Sublist3r/sublist3r.py", line 271, in run domain_list = self.enumerate() File "/home/Sublist3r/sublist3r.py", line 654, in enumerate self.extract_domains(post_resp) File "/home/Sublist3r/sublist3r.py", line 666, in extract_domains results_tbl = tbl_regex.findall(resp)[0] TypeError: expected string or buffer
from sublist3r.
Related Issues (20)
- Virustotal is blocking requests HOT 11
- Google probably now is blocking our requests HOT 1
- Sublist3r subdomains enumeration problem HOT 2
- Traceback (most recent call last): HOT 3
- not showing subdomain when using Sublist3r HOT 4
- DNSDumbster needs a new parameter in POST call, to get sub-domains listed HOT 1
- the tools does not work I am not getting any subdomain HOT 5
- no module named 'requests' HOT 1
- not working HOT 4
- TypeError While trying to hunt subdomains.\
- It showing scanning but then not showing results HOT 8
- S
- error HOT 9
- Python
- File "/usr/lib/python3/dist-packages/dns/resolver.py", line 1106, in nameservers. NotImplementedError HOT 1
- sublist3r lauching error in kali linux HOT 2
- Consider adding additional domain URLs using free Hudson Rock Cybercrime Intelligence integration
- the sublist3r not working when I type sublist3r -d example.org -e yahoo nothing appears
- ImportError: cannot import name 'MutableMapping' from 'collections'
- It stops after sowing virustotal error
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 sublist3r.