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

Subdomain enumeration #1044

Open
Aggelos11 opened this issue Oct 31, 2024 · 3 comments
Open

Subdomain enumeration #1044

Aggelos11 opened this issue Oct 31, 2024 · 3 comments

Comments

@Aggelos11
Copy link

Hey why the output seems so weird ? I think it would only return subdomain names but actually it return ips and other weird stuff . Is there any way to make it return only subdomains like it used to in older versions ?

@Aggelos11
Copy link
Author

Aggelos11 commented Nov 6, 2024 via email

@Pumpkin-ito
Copy link

Pumpkin-ito commented Nov 15, 2024

I encountered the same issue,Other than useful information,there is also some garbled text.
image

@Pumpkin-ito
Copy link

Pumpkin-ito commented Nov 15, 2024

Sorry, I just realized that these are ANSI escape sequences.I have already dealt with them using Powershell script, which allows me to view the useful information in CodeEdit.
不好意思,我想我才意识到这是ansi转义字符,我已经使用powershell处理好它们了,以便我能使用文本编辑器查看有用的信息

The script below is how I processed them with PowerShell. Maybe it can help sombody!
下面的脚本是我如何使用powershell处理它们的,希望有人用的上

# Define the file path
$filePath = "Path to the input file"

# Read the file content. Note: Adjust the encoding format based on your file's encoding.
$fileContent = Get-Content -Path $filePath -Encoding utf8

# Define a regex pattern to match ANSI escape sequences like "\u001b[(number)m"
$pattern = "�[[0-9;]*m"

# Process the content and remove the matching ANSI escape sequences
$cleanedContent = foreach ($line in $fileContent) {
    $line -replace $pattern, ""
}

# Output the cleaned content to a new file (or overwrite the original file if desired)
$cleanedFilePath = "Path to the output file"
$cleanedContent | Set-Content -Path $cleanedFilePath -Encoding utf8

Write-Output "The content has been cleaned and saved to $cleanedFilePath."

# This script demonstrates how I used PowerShell to remove ANSI escape sequences from text files.
# I hope it helps others who encounter similar issues!

This is how it looks after processing.
image

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

No branches or pull requests

2 participants