Skip to content
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

didnot spawn the shell #4

Open
medozero opened this issue May 29, 2014 · 2 comments
Open

didnot spawn the shell #4

medozero opened this issue May 29, 2014 · 2 comments

Comments

@medozero
Copy link

hi . i am trying this rk and after i compile it. i tried both ways to use it one with the LD_PRELOAD and the other with make install method . and both works . only to the point that it start to spawn the /bin/bash , it is just didn't .
ex:
[root@pxe ~]# ncat 192.168.1.74 22 -p 41
medo
Welcome!
Here's a shell:

and then what ever i try to do it will give me

Ncat: Broken pipe.
i also tried with socat and same thing it just broke .

here it is the kernel
Linux localhost.localdomain 2.6.32-358.el6.x86_64 #1 SMP Fri Feb 22 00:31:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

PS: tried other rk and they work fine like Jynx/Jynx2

@chokepoint
Copy link
Owner

You could try removing the debug hook and stracing the listening daemon to see which portion is failing. I just recompiled and ran it on a new box and had no issues.

LD_PRELOAD=./libselinux.so strace ncat -l 5000

ncat localhost 5000 -p 41

Also, which distro are you running?

@medozero
Copy link
Author

medozero commented Dec 4, 2014

CentOS 5 and 6 . yes a bit late to reply . but i think project was designed for debian .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants