-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
panic: runtime error #11
Comments
Hi Michael! Thanks for showing interest in IOXY and submitting the issue! Have a nice day! Best regards, |
Same here on kali. I think much people (pentester) are using IOXY primarily on kali, so the that tool should be tested and fully working on kali primary. @MichaelVirnig: Do you have found any workaround? |
I have the same problem here with an RPi 4 under Buster. And under Kali on PC. Just after running ./ioxy gui, I found some strange files on my home directory. First, a ''GCONV_PATH=./' empty file.
I'm not an expert, but this looks like an exploit, trying to do unknown things, as I don't understand what's in Base64 payload, supposed to be an ELF file, I don't know which OS is targeted. Reading the code, I suspect a crash in the last line, probably due to the fact that ELF format is not for the right OS/CPU. FYI, this was done on a brand new go language installation on both Kali and Debian, with native (golang-go, notgccgo-go), following ##8 (comment) procedure (except that I didn't remove gcc-go, as it was not installed). That's the only go language code I ever ran on this machine. This may be located somewhere in the used modules, but I didn't try yet to locate it, as I a very newbie in go (but I'll try to fix it!) |
Hi @FlyingDomotic, @MichaelVirnig, I just tried to reproduce your issues on a fresh new kali:
Here is the steps I made to install IOXY on a fresh Kali:
When browsing to http://127.0.0.1:111, I have the correct gui interface: I also had a look at the dependencies, and they are version pinned + hash checked, which means that it used a trusted version and even if a repository get infected, a library would not be installed as it is not valid. @FlyingDomotic, also, I just checked my local files for malicious scripts, but as you can see I found nothing:
So think that when debugging IOXY you installed malicious golang packages. I would suggest that you further investigate so you can clean up your possibly compromised machine :) Waiting for your input to see if my fix works on your machines. Have a nice day and take care! |
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Malgun Gothic";
panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
***@***.*** Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
code
{mso-style-priority:99;
font-family:"Courier New";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
font-size:10.0pt;
font-family:"Courier New";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
-->Thanks for digging into this HutchYy. I just installed a fresh kali vm and followed your steps and I still get the Panic runtime error. From: hutchYySent: Friday, October 28, 2022 6:19 AMTo: NVISOsecurity/IOXYCc: mediocre mike; MentionSubject: Re: [NVISOsecurity/IOXY] panic: runtime error (Issue #11) Hi @FlyingDomotic, @MichaelVirnig,I just tried to reproduce your issues on a fresh new kali:┌──(kali㉿kali)-[~] └─$ cat /etc/os-release PRETTY_NAME="Kali GNU/Linux Rolling" NAME="Kali GNU/Linux" ID=kali VERSION="2022.3" VERSION_ID="2022.3" VERSION_CODENAME="kali-rolling" ID_LIKE=debian ANSI_COLOR="1;31" HOME_URL="https://www.kali.org/" SUPPORT_URL="https://forums.kali.org/" BUG_REPORT_URL="https://bugs.kali.org/" Here is the steps I made to install IOXY on a fresh Kali:sudo apt update && sudo apt install -y golang-go git clone https://github.com/NVISOsecurity/IOXY.git cd IOXY/ioxy CGO_CFLAGS="-g -O2 -Wno-return-local-addr" go build . ./ioxy gui [ IN ANOTHER SHELL] sudo netstat -tulpn Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp6 0 0 :::1111 :::* LISTEN 8827/./ioxy When browsing to http://127.0.0.1:111, I have the correct gui interface:I also had a look at the dependencies, and they are version pinned + hash checked, which means that it used a trusted version and even if a repository get infected, a library would not be installed as it is not ***@***.***, also, I just checked my local files for malicious scripts, but as you can see I found nothing:┌──(kali㉿kali)-[~] └─$ sudo grep -ri "ammond" /root /home ┌──(kali㉿kali)-[~] └─$ So think that when debugging IOXY you installed malicious golang packages. I would suggest that you further investigate so you can clean up your possibly compromised machine :)Waiting for your input to see if my fix works on your machines.If it works as expected, I will then update the README.txt to add the steps I just mentioned.Have a nice day and take care!hutchYy—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you were mentioned.Message ID: ***@***.***>
|
On my side, I didn't debug anything. I just ran the following commands, on a system without go language:
Seems close to your method, except for golang-github-mattn-go-sqlite3-dev, which was explained on issue #8. |
As requested, I removed what I did install, and deleted both go and IOXY trees from my home folder.
I still had the crash. |
@FlyingDomotic thank you for the update :) I think the issue might be the architecture / CPU of your host (gccgo-go supports more CPUs / architectures than golang-go). In any case, we've updated the README instructions to include both options. I've re-tested them on a clean install of Kali 2022.03, and both methods worked without errors. |
@windBlaze Thanks! FYI, machine is an Intel Core I5-1035G1 with 4 x Sunny Cove, something common and not so old ;-) |
I am trying to install on the latest kali linux build. I have golang-go working and am able to complete the build with go. I have go 1.19.1 installed and go-sqlite3 v1.14.15
Whenever I try to launch the gui I get the following error.
./ioxy gui
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x18 pc=0x7a3226]
goroutine 1 [running]:
debug/elf.(*Section).ReadAt(0xc00017c340?, {0xc00020ac00?, 0xeda8f0?, 0x34?}, 0x40?)
:1 +0x26
archive/zip.readDirectoryEnd({0xb142c0, 0xc000177300}, 0x510)
/usr/local/go/src/archive/zip/reader.go:526 +0xf5
archive/zip.(*Reader).init(0xc000117030, {0xb142c0?, 0xc000177300}, 0x510)
/usr/local/go/src/archive/zip/reader.go:97 +0x5c
archive/zip.NewReader({0xb142c0, 0xc000177300}, 0x510)
/usr/local/go/src/archive/zip/reader.go:90 +0x5e
github.com/daaku/go%2ezipexe.zipExeReaderElf({0xb14c60?, 0xc000014058}, 0xedb5f0)
/root/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.0/zipexe.go:128 +0x8b
github.com/daaku/go%2ezipexe.NewReader({0xb14c60, 0xc000014058}, 0x0?)
/root/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.0/zipexe.go:48 +0x98
github.com/daaku/go%2ezipexe.OpenCloser({0xc00002c258?, 0xc000143d10?})
/root/go/pkg/mod/github.com/daaku/go.zipexe@v1.0.0/zipexe.go:30 +0x57
github.com/GeertJohan/go%2erice.init.0()
/root/go/pkg/mod/github.com/!geert!johan/go.rice@v1.0.2/appended.go:42 +0x65
Hopefully someone else has run into this and has a fix, but as of right now I have reinstalled go and ioxy with restarts and not seeing anything significant in the logs.
The text was updated successfully, but these errors were encountered: