tess-ss / shrewdeye-bash

MIT License
25 stars 3 forks source link

404 HTML Error, if no subdomain were found #2

Open hackersthan opened 6 days ago

hackersthan commented 6 days ago

In automation this error is a big issue. subdomains.txt file can be corrupted.

Command

bash shrewdeye.sh -d notexistornosubs.com

Reponse

<!DOCTYPE html>
<html lang="en">
<head>
    <title>404</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/assets/css/inter.css">
    <link rel="stylesheet" href="/assets/css/bulma.css">
    <link rel="shortcut icon" href="/favicon.png" type="image/png">
    <script src="/assets/js/main.js"></script>
</head>
<body>
    <div class="">

      <section class="section">
        <div class="container">
          <div class="mb-5 columns is-multiline is-centered">
            <div class="column is-8">
              <img class="image is-fullwidth" src="/assets/images/shrewdeye-avatar-2.jpg" alt="">
            </div>
          </div>
          <div class="has-text-centered">
            <span class="has-text-grey-dark">Error 404</span>
            <h2 class="mt-2 mb-4 is-size-1 is-size-3-mobile has-text-weight-bold">Page not found</h2>
            <p class="subtitle has-text-grey mb-6">Sorry! We are unable to find the page you are looking for</p>
            <div class="buttons is-centered">
<span class="has-text-grey-dark">Error 404</span>
            <h2 class="mt-2 mb-4 is-size-1 is-size-3-mobile has-text-weight-bold">Page not found</h2>
            <p class="subtitle has-text-grey mb-6">Sorry! We are unable to find the page you are looking for</p>
            <div class="buttons is-centered">
      <a class="button is-primary is-rounded is-large" href="/">Go back to dashboard</a>
      </div>
          </div>
        </div>
      </section>
    </div>
</body>
</html>
tess-ss commented 6 days ago

Hi @hackersthan ,

Thanks for flagging this, I will look into it. It seems to be a shrewdeye API issue that can't fetch the domain.

Thank you, @tess-ss

hackersthan commented 6 days ago

Fix https://github.com/tess-ss/shrewdeye-bash/commit/f580e603acf909e6c6b2b8901484e51857f37bec