Giter Club home page Giter Club logo

api-dnsdumpster.com's Introduction

Hi there ๐Ÿ‘‹

โ˜๏ธ๐Ÿค– Engineering Manager and craftsman in the field of information technology ๐Ÿš€โ˜•๏ธ - My personal blog: https://paulsec.github.io/

My Stats

Connect with me

Linkedin: paul-amar

api-dnsdumpster.com's People

Contributors

c2htm avatar denizenb avatar dependabot[bot] avatar gfctam avatar jenstimmerman avatar nopdotcom avatar nopfor avatar paralax avatar paulsec avatar ralic avatar tensts avatar xbeatzsec avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

api-dnsdumpster.com's Issues

Regarding PHP code.

Hi Team

Thanks for this

How can i use this in php program?..Any reference site can you assist me

IndexError: list index out of range

Our monitoring is showing the following exception:

IndexError: list index out of range
  File "dnsdumpster/DNSDumpsterAPI.py", line 98, in search
    res['dns_records']['dns'] = self.retrieve_results(tables[0])

The issue seems to be non-deterministic in nature since I I have tried to reproduce this myself but could not.

We are on v0.5, but since the diff between 0.8 and 0.5 shows no changes related to tables I presume this issue to still exist.

Fixing this is probably a matter of checking the number of elements in the table to resolve this and then either throwing an exception or returning no results.

Messy output?

I am running a basic script that follows as:

from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI

res = DNSDumpsterAPI({'verbose': False}).search('example.org')
print(res)

However, the output is extremely messy, and includes imagedata for some reason (which I have removed so it doesn't clog up this issue report)

[verbose] Retrieved token: UMLo71IFn12zIWYb3uUWUHk1HM3qdWByvUOvuNinXXyfDkrhrwPjU12bvg2w0ftH
{'domain': 'example.org', 'dns_records': {'dns': [{'domain': 'a.iana-servers.net.', 'ip': '199.43.135.53', 'reverse_dns': 'a.iana-servers.net', 'as': 'ICANN-ANYCASTED-SERVICESUnited', 'provider': 'States', 'country': 'United States', 'header': ''}, {'domain': 'b.iana-servers.net.', 'ip': '199.43.133.53', 'reverse_dns': 'b.iana-servers.net', 'as': 'ICANN-ANYCASTED-SERVICESUnited', 'provider': 'States', 'country': 'United States', 'header': ''}], 'mx': [], 'txt': ['"v=spf1 -all"'], 'host': [{'domain': 'example.org', 'ip': '93.184.216.34', 'reverse_dns': '', 'as': 'EDGECASTUnited', 'provider': 'States', 'country': 'United States', 'header': 'ECS (sec/96DC)HTTPS: ECS (sec/9795)'}, {'domain': 'www.example.org', 'ip': '93.184.216.34', 'reverse_dns': '', 'as': 'EDGECASTUnited', 'provider': 'States', 'country': 'United States', 'header': 'ECS (sec/96DC)HTTPS: ECS (sec/9795)'}]},

How can I make the output pretty as shown in the repo?

list index out of range

If I try to execute these two instructions:

from dnsdumpster.DNSDumpsterAPI import DNSDumpsterAPI
results = DNSDumpsterAPI().search("example.com")

I get the following error "list index out of range", I am using the latest version of the dnsdumpster module.

get error when getting results

our monitor is showing this exception:
[verbose] Retrieved token: XuKapsQQceSllhKpDe8Q8UFxlJ62SLl1LGCKnnBUo7umkKUOLM61V4oYRXivBVto
There was an error getting results
[]
When I try the example in readme.md file.
I have installed all the necessary modules.
I have no idea why I got this error. Can you help me?

"There was an error getting results"

The official pypi dnsdumpster version doesn't work, it always break on There was an error getting results....

Thank to @Gertje823, you can install dnsdumpster from github like this : (see #33)

pip install https://github.com/PaulSec/API-dnsdumpster.com/archive/master.zip --user

Explanation

I went deeper in the code and found out that @PaulSec changed lines 76 and 77 in DNSDumpsterAPI.py

- headers = {'Referer': dnsdumpster_url}
- data = {'csrfmiddlewaretoken': csrf_middleware, 'targetip': domain}

+ headers = {'Referer': dnsdumpster_url, 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/92.0.4515.107 Safari/537.36'}
+ data = {'csrfmiddlewaretoken': csrf_middleware, 'targetip': domain, 'user': 'free'}

If you add the 'user': 'free' to the data field, it solves this issue

@PaulSec could you please push the https://github.com/PaulSec/API-dnsdumpster.com/archive/master.zip version to pypi ?
Thank you

is Python3 supportted?

Please specify it in the setup.py.

I have tried installing it and there is a warning:

/usr/lib64/python3.5/distutils/dist.py:261: UserWarning: Unknown distribution option: 'install_requires'

Thank you.

Index out of range error

I tried to run DNS dumpster for googlevideo.com. Then I got an error below. I tried microsoft domain, seems working.

python test.py
[verbose] Retrieved token: f85dwWRTXhLGvpKj58eD7LRT70MMQeuS
Traceback (most recent call last):
File "test.py", line 4, in
res = DNSDumpsterAPI({'verbose': False}).search('googlevideo.com')
File "/usr/lib/python2.7/site-packages/dnsdumpster/DNSDumpsterAPI.py", line 95, in search
res['dns_records']['host'] = self.retrieve_results(tables[3])
File "/usr/lib/python2.7/site-packages/dnsdumpster/DNSDumpsterAPI.py", line 33, in retrieve_results
ip = re.findall(pattern_ip, tds[1].text)[0]
IndexError: list index out of range

Index Error

Any updates on the following issue?

res['dns_records']['dns'] = self.retrieve_results(tables[0])

IndexError: list index out of range

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.