laitimes

Python3.11修改并运行oneforall

author:Hetian Cyber Security Laboratory

Problems encountered

If you use python 3.11, you cannot run the oneforall script by default, and the following error is displayed

Python3.11修改并运行oneforall

#解决方案

修改 /usr/local/lib/python3.11/dist-packages/exrex.py

exrex.py error message is displayed in the file path
vim /usr/local/lib/python3.11/dist-packages/exrex.py
           

#修改前

from re import sre_parse, U
from itertools import tee
from random import choice, randint
from types import GeneratorType
           
Python3.11修改并运行oneforall

#修改后

#from re import sre_parse, U
import sre_parse
from re import U
from itertools import tee
from random import choice, randint
from types import GeneratorType
           
Python3.11修改并运行oneforall

#问题解决

Python3.11修改并运行oneforall