Open sigg3net opened 2 years ago
Please note, running go build
did not work:
$ go build
info.go:14:2: github.com/goretk/gore@v0.10.0 (replaced by ./gore): reading gore/go.mod: open /home/user/go/src/github.com/redress/gore/go.mod: no such file or directory
so I did:
$ rmdir gore
$ ln -s ~/go/src/github.com/gore gore
and it fails with:
./redress t interface my_app --version go1.18
Error when enumerating types: failed to parse type at offset 0xae420: failed to parse resolved type for 0x198a6c0: method name for type at 0x1ce7a60 has an invalid address (0x6e616765).
Also tried with pygore, using this methodology: https://go-re.tk/pygore/
Running: types = f.get_types()
yields ValueError: NULL pointer access
In [11]: f.get_unknown_packages()
Out[11]: []
In [12]: f.get_packages()
Out[12]: []
So this might very well be a problem with gore and not redress.
Here is what I tried now:
git clone https://github.com/goretk/redress.git
git clone https://github.com/goretk/gore.git
cd gore
git reset --hard 141f38f24c76dffd798c5cbad48d05129ce9b9b5
cd ../redress
rm -rf gore
ln -s ../gore gore
go build
but when I try to extract types:
$ ./redress types struct my_app
panic: runtime error: slice bounds out of range [31829935:9837384]
and the rest of the panic is in my post above.
Which version of redress are you using? The error in the first comment is that the data section could not be found. What kind of binary is it? Does it have a data section?
The dev branch of redress uses the dev branch of gore. So to compile that branch you need to checkout the submodule.
Can't extract types (tested both main and develop branches):
May or not be related (I was not able to reproduce this):