maurosoria / dirsearch

Web path scanner
11.58k stars 2.29k forks source link

unpickle error during session restoration #1326

Closed arg0user closed 7 months ago

arg0user commented 9 months ago

What is the current behavior?

After running dirsearch for a bit, I stopped the run and exited the tool while saving the current session.

Running the tool again with the session file:

dirsearch.py -s session.pickle

results in the following error:

session.pickle is not a valid session file or it's in an old format

What is the expected behavior?

I expect dirsearch to pick up where the session was created and continue running

Any additional information?

It seems I can get the pickle file to unpickle by patching lib/utils/pickle.py and adding:

  "http.cookiejar.Cookie",

to the ALLOWED_PICKLE_CLASSES tuple?

patch
arg0user commented 9 months ago

Forgot to add the obligatory tech details: dirsearch v0.4.3 Python 3.11.3 OS: kali-rolling