-
Notifications
You must be signed in to change notification settings - Fork 635
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
Add resolver in katana #340
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation lgtm - Anyway a few notes:
- Unfortunately we can't do much with native headless navigation, as custom resolver/mapping must be defined at startup time via
host-resolver-rules
- With invalid resolvers, katana keeps working:
$ cat resolver.txt
10.10.11.10
$ ping 10.10.11.10
PING 10.10.11.10 (10.10.11.10): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
^C
$ echo http://projectdiscovery.io | go run . -resolvers resolver.txt
...
https://projectdiscovery.io/
https://projectdiscovery.io/app.bundle.css
https://projectdiscovery.io/app.js
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
./tinydns -net udp -upstream 8.8.8.8:53
[INF] Listening on: udp:127.0.0.1:53
[INF] Received request for: docs.hackerone.com
[INF] Retrieving records for docs.hackerone.com with upstream 1.1.1.1:53.
[INF] Received request for: docs.hackerone.com
[INF] Retrieving records for docs.hackerone.com with upstream 8.8.8.8:53.
[INF] Saving records for docs.hackerone.com in cache.
[INF] Received request for: docs.hackerone.com
[INF] Received request for: docs.hackerone.com
[INF] Using cached record for docs.hackerone.com.
[INF] Received request for: docs.hackerone.com
echo https://www.hackerone.com | ./katana -r 127.0.0.1
__ __
/ /_____ _/ /____ ____ ___ _
/ '_/ _ / __/ _ / _ \/ _ /
/_/\_\\_,_/\__/\_,_/_//_/\_,_/ v0.0.4-dev
projectdiscovery.io
https://www.hackerone.com/events/rsa-conference-2023
https://www.hackerone.com/6th-annual-hacker-powered-security-report
https://www.hackerone.com/attack-resistance-assessment
https://www.hackerone.com/product/attack-surface-management
Follow up tickets can be created for the above comments if needed. |
eg: