seclab-ucr / KOOBE

Towards Facilitating Exploit Generation of Kernel Out-Of-Bounds Write Vulnerabilities
MIT License
84 stars 17 forks source link

pahole.py doesn't seem to work #5

Open 1120161891 opened 2 years ago

Niebelungen-D commented 1 year ago

Hello I have the same problem. An error always occurs in the file. Do you have any solution please?

Traceback (most recent call last):
  File "main.py", line 31, in <module>
    Commands[args.cmd].run(args)
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 646, in run
    pahole.analyzeType()
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 414, in analyzeType
    struct = Struct(content, self)
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 326, in __init__
    self._fields.append(Field(line, self._pahole))
  File "/home/niebelungen/KOOBE/aeg-analysis/aeg/commands/pahole.py", line 152, in __init__
    define = m.group(1).strip()
AttributeError: 'NoneType' object has no attribute 'group'

I have tried to modify the file, but it does not work. Other error will occur.

+                if re.search('(.+)/\*\s(.+)\s+\*/', line.strip()) != None:
                    self._fields.append(Field(line, self._pahole))
Albocoder commented 1 year ago

4 fixed it for pahole 1.21 just pull that

heChosen commented 8 months ago

Can anyone fully reproduce this study? I encountered some difficulties during the construction process.It will get stuck in touch /home/hara/KOOBE/s2e/images/.stamps/linux-4.9.3-x86_64