Skip to content
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

Modifying the Process of Handling Subdomain Results Obtained from Fofa #1047

Merged
merged 4 commits into from Nov 27, 2023
Merged

Modifying the Process of Handling Subdomain Results Obtained from Fofa #1047

merged 4 commits into from Nov 27, 2023

Conversation

ZuoJunhao
Copy link
Contributor

In the previous version, the Fofa API couldn't handle cases with port numbers, such as http://example.com:8080. In the previous handling, the HTTP header was removed, leaving it as example.com:8080 without further processing. I addressed this issue by using regex to match and remove the port number, correctly processing the result as example.com.
After configuring the Fofa API key, I conducted tests. In the original version, 'subfinder -d dptech.com -s fofa' would collect 17 subdomains. With my modifications, it now collects 29 subdomains.

Before Modified

1DLOUW$FIP PZ0WB@T~(ZK

After Modified

VV RK FS6IWXM$}TKNI2`5C

dependabot bot and others added 2 commits October 12, 2023 14:24
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.14.0 to 0.17.0.
- [Commits](golang/net@v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
@ehsandeep ehsandeep changed the base branch from main to dev November 19, 2023 08:18
Copy link
Member

@dogancanbakir dogancanbakir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

$ go run . -d dptech.com -s fofa

               __    _____           __         
   _______  __/ /_  / __(_)___  ____/ /__  _____
  / ___/ / / / __ \/ /_/ / __ \/ __  / _ \/ ___/
 (__  ) /_/ / /_/ / __/ / / / / /_/ /  __/ /    
/____/\__,_/_.___/_/ /_/_/ /_/\__,_/\___/_/

                projectdiscovery.io

[INF] Current subfinder version v2.6.4-dev (development)
[INF] Loading provider config from /home/vscode/.config/subfinder/provider-config.yaml
[INF] Enumerating subdomains for dptech.com
atsm.dptech.com
sslvpn.dptech.com
download.dptech.com
dns1.dptech.com
mail.dptech.com
forum.dptech.com
zhaopin.dptech.com
dpvpn.dptech.com
cn.dptech.com
ztstest.dptech.com
bjsslvpn.dptech.com
rdhz-vpn.dptech.com
wwwtest.dptech.com
scs.dptech.com
mailserver.dptech.com
bjzts.dptech.com
dns2.dptech.com
download2.dptech.com
dns3.dptech.com
license.dptech.com
prm.dptech.com
rdbj.dptech.com
www.dptech.com
seccloud.dptech.com
wechat.dptech.com
vulscan.dptech.com
fp.dptech.com
recruit.dptech.com
zts.dptech.com
[INF] Found 29 subdomains for dptech.com in 1 second 835 milliseconds

@ehsandeep ehsandeep merged commit 944f34a into projectdiscovery:dev Nov 27, 2023
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants