Ejemplo n.º 1
0
    def test_000_simple(self):
        """Simple test"""
        run.print_banner()
        print_test_banner("VANILLA")

        user_args = run.parse_args(["-t", "*****@*****.**"])
        run.h8mail(user_args)
Ejemplo n.º 2
0
 def test_003_url(self):
     run.print_banner()
     print_test_banner("URL-RAW")
     user_args_lb = run.parse_args(
         ["-u", "https://pastebin.com/raw/kQ6WNKqY"])
     run.h8mail(user_args_lb)
     run.print_banner()
     print_test_banner("URL-MESSY")
     user_args_lb = run.parse_args(["-u", "https://pastebin.com/kQ6WNKqY"])
     run.h8mail(user_args_lb)
Ejemplo n.º 3
0
 def test_003_url(self):
     run.print_banner()
     print_test_banner("URL-RAW")
     user_args_lb = run.parse_args([
         "-u",
         "https://raw.githubusercontent.com/khast3x/h8mail/master/tests/test_email.txt"
     ])
     run.h8mail(user_args_lb)
     run.print_banner()
     print_test_banner("URL-MESSY")
     user_args_lb = run.parse_args([
         "-u",
         "https://raw.githubusercontent.com/khast3x/h8mail/master/tests/test_email.txt"
     ])
     run.h8mail(user_args_lb)
Ejemplo n.º 4
0
    def test_002_local_files_txt_gz(self):
        """Local file search Test"""
        run.print_banner()
        print_test_banner("TXT LOCAL")
        user_args_lb = run.parse_args(
            ["-t", self.filetargets, "-lb", self.filetxt, "-sk"])
        run.h8mail(user_args_lb)
        print_test_banner("TXT LOCAL-SINGLFILE")
        user_args_lb = run.parse_args(
            ["-t", self.filetargets, "-lb", self.filetxt, "-sk", "-sf"])
        run.h8mail(user_args_lb)

        run.print_banner()
        print_test_banner("GZ LOCAL")
        user_args_gz = run.parse_args(
            ["-t", self.filetargets, "-gz", self.filegz, "-sk"])
        run.h8mail(user_args_gz)
        print_test_banner("GZ LOCAL-SINGLEFILE")
        user_args_gz = run.parse_args(
            ["-t", self.filetargets, "-gz", self.filegz, "-sk", "-sf"])
        run.h8mail(user_args_gz)
Ejemplo n.º 5
0
class TestH8mail(unittest.TestCase):
    """Tests for `h8mail` package."""
    def setUp(self):
        """Set up test fixtures, if any."""

    def tearDown(self):
        """Tear down test fixtures, if any."""

    def test_000_simple(self):
        """Test something."""

    run.print_banner()
    start_time = time.time()
    target = classes.target("*****@*****.**")
    target.get_hibp()
    target.get_hunterio_public()
    run.print_results([target])
    run.print_summary(start_time, [target])