Ekultek / WhatWaf

Detect and bypass web application firewalls and protection systems
Other
2.55k stars 434 forks source link

WhatWaf is not updating #1574

Closed gsbuosi closed 1 year ago

gsbuosi commented 1 year ago

Hi, I'm having this error at the moment of execute this command.

$ python3 ./whatwaf -u https://target_xyz.com

image

Ekultek commented 1 year ago

Did you try doing what it tells you to do?

gsbuosi commented 1 year ago

I did and now it's says is updated... but the "Error" if can I say error..... it's there.

image

Ekultek commented 1 year ago

Change auto_update() in lib/settings.py from:


def auto_update():
    """
    updates from the github repo
    """

    import git

    try:
        lib.formatter.info("attempting to update WhatWaf")
        repo = git.Repo()
        current = repo.head.commit
        repo.remotes.origin.pull()
        new = repo.head.commit
        if current == new:
            lib.formatter.info("WhatWaf is the newest version")
        else:
            lib.formatter.success("successfully updated WhatWaf to the newest version")

    except:
        lib.formatter.error("unable to update WhatWaf, a new version is out attempt updating by typing `git pull`")
        pass

To:

def auto_update():
    pass
Ekultek commented 1 year ago

fixed via: https://github.com/Ekultek/WhatWaf/commit/38df35218c7097c5a507476fd2e757ad7c88fd84

You can run git pull and the --skip-update flag so that it won't try to update anymore.

gsbuosi commented 1 year ago

After had being made the changes in "lib/settings.py"

image

Now I'm receiving this new error message :+1:

image

Ekultek commented 1 year ago

you have to stash your changes.. git stash && git pull

Ekultek commented 1 year ago

I would highly suggest you Google what you're doing before using this tool.