diff --git a/tests/attack/test_mod_wapp.py b/tests/attack/test_mod_wapp.py index c8d0ff1f5..6cd55e1c2 100644 --- a/tests/attack/test_mod_wapp.py +++ b/tests/attack/test_mod_wapp.py @@ -427,10 +427,10 @@ async def test_multi_detection(): ) ) - # Now let's mock wapiti-scanner/webappanalyzer. Wappalyzer files are split over the first character of software names. + # Now let's mock wapiti-scanner/wappalyzerfork. Wappalyzer files are split over the 1st character of software names. for letter, filename in [("m", "mysql.json"), ("p", "php.json"), ("w", "wordpress.json")]: respx.get( - f"https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/src/technologies/{letter}.json" + f"https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/src/technologies/{letter}.json" ).mock( return_value=httpx.Response( status_code=200, @@ -440,14 +440,14 @@ async def test_multi_detection(): ) # Give an empty dict for all uninteresting files - respx.get(url__startswith="https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/src/techno").mock( + respx.get(url__startswith="https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/src/techno").mock( return_value=httpx.Response( status_code=200, json={}, ) ) - respx.get("https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/src/categories.json").mock( + respx.get("https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/src/categories.json").mock( return_value=httpx.Response( status_code=200, content=(fixture_folder / "categories.json").open("rb").read(), @@ -455,7 +455,7 @@ async def test_multi_detection(): ) ) - respx.get("https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/src/groups.json").mock( + respx.get("https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/src/groups.json").mock( return_value=httpx.Response( status_code=200, content=(fixture_folder / "groups.json").open("rb").read(), diff --git a/tests/cli/test_options.py b/tests/cli/test_options.py index 84c367f45..1a749acff 100644 --- a/tests/cli/test_options.py +++ b/tests/cli/test_options.py @@ -199,7 +199,7 @@ async def test_update_without_modules(mock_update): @mock.patch("wapitiCore.main.wapiti.Wapiti.update") async def test_update_with_wapp_url(mock_update): """Ensure that no module should be updated when no module is requested.""" - testargs = ["wapiti", "--update", "-m", "wapp", "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/"] + testargs = ["wapiti", "--update", "-m", "wapp", "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/"] with mock.patch.object(sys, 'argv', testargs): with pytest.raises(SystemExit): await wapiti_main() @@ -366,7 +366,7 @@ async def test_mod_wapp_is_set(mock_is_mod_wapp_or_update_set, _, __): "wapiti", "--url", "http://testphp.vulnweb.com/", "-m", "wapp", - "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/" + "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/" ] with mock.patch.object(sys, "argv", testargs): @@ -384,7 +384,7 @@ async def test_mod_wapp_is_not_set(mock_is_mod_wapp_or_update_set, _, __): "wapiti", "--url", "http://testphp.vulnweb.com/", "-m", "xss", - "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/" + "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/" ] with mock.patch.object(sys, "argv", testargs): @@ -437,7 +437,7 @@ async def test_is_valid_url(mock_is_valid_url, _, __): "wapiti", "--url", "http://testphp.vulnweb.com/", "-m", "wapp", - "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/" + "--wapp-url", "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/" ] with mock.patch.object(sys, "argv", testargs): @@ -455,7 +455,7 @@ async def test_is_not_valid_url(mock_is_valid_url, _, __): "wapiti", "--url", "http://testphp.vulnweb.com/", "-m", "wapp", - "--wapp-url", "http::raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/" + "--wapp-url", "http::raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/" ] with mock.patch.object(sys, "argv", testargs): diff --git a/wapitiCore/attack/attack.py b/wapitiCore/attack/attack.py index 6b44f9813..8f934ceb9 100644 --- a/wapitiCore/attack/attack.py +++ b/wapitiCore/attack/attack.py @@ -318,7 +318,7 @@ def cms(self): @property def wapp_url(self): - return self.options.get("wapp_url", "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/") + return self.options.get("wapp_url", "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/") @property def wapp_dir(self): diff --git a/wapitiCore/main/wapiti.py b/wapitiCore/main/wapiti.py index 3c316ba51..80e805258 100755 --- a/wapitiCore/main/wapiti.py +++ b/wapitiCore/main/wapiti.py @@ -182,7 +182,7 @@ async def wapiti_main(): attack_options = { "level": args.level, "timeout": args.timeout, - "wapp_url": "https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/main/" + "wapp_url": "https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/main/" } wap.set_attack_options(attack_options) try: diff --git a/wapitiCore/wappalyzer/wappalyzer.py b/wapitiCore/wappalyzer/wappalyzer.py index 3b8e7e312..716d4677b 100644 --- a/wapitiCore/wappalyzer/wappalyzer.py +++ b/wapitiCore/wappalyzer/wappalyzer.py @@ -40,7 +40,7 @@ def __init__(self, message): class ApplicationData: """ Store application database. - For instance https://raw.githubusercontent.com/wapiti-scanner/webappanalyzer/master/src/technologies/. + For instance https://raw.githubusercontent.com/wapiti-scanner/wappalyzerfork/master/src/technologies/. """ def __init__(self, categories_file_path=None, groups_file_path=None, technologies_file_path=None):