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

SSH User login denied #108

Open
Ijlalh90 opened this issue Apr 14, 2018 · 9 comments
Open

SSH User login denied #108

Ijlalh90 opened this issue Apr 14, 2018 · 9 comments

Comments

@Ijlalh90
Copy link

I am facing an issue with docker build and also with normal running of glutton. When i try to login ssh using glutton it denies to allow my login.

@glaslos
Copy link
Member

glaslos commented Apr 14, 2018

Did you try port 5001 as per documentation?

@Ijlalh90
Copy link
Author

THe issue with ssh is that when i try to forward to the target machine.Glutton successfully detects the incoming connection but user session closes immediately after typing password.
Here is what shows
2018/04/18 11:34:29 DEBUG [freki ] new TCP connection 192.168.0.100:52534->22
2018/04/18 11:34:29 DEBUG [contable] registering 192.168.0.100:52534->22
2018/04/18 11:34:29 ERROR user.tcp: close tcp 172.17.0.3:5000->192.168.0.100:52534: use of closed network connection
2018/04/18 11:34:43 DEBUG [freki ] new TCP connection 192.168.0.100:52536->22
2018/04/18 11:34:43 DEBUG [contable] registering 192.168.0.100:52536->22
2018/04/18 11:34:49 DEBUG [freki ] new TCP connection 172.17.0.3:39454->22
2018/04/18 11:34:49 DEBUG [contable] registering 172.17.0.3:39454->22
2018/04/18 11:34:49 DEBUG [freki ] new TCP connection 172.17.0.3:39456->22
2018/04/18 11:34:49 DEBUG [contable] registering 172.17.0.3:39456->22
2018/04/18 11:34:49 DEBUG [freki ] new TCP connection 172.17.0.3:39458->22
2018/04/18 11:34:49 DEBUG [contable] registering 172.17.0.3:39458->22
2018/04/18 11:34:51 DEBUG [freki ] new TCP connection 172.17.0.3:39460->22
2018/04/18 11:34:51 DEBUG [contable] registering 172.17.0.3:39460->22
2018/04/18 11:34:51 DEBUG [freki ] new TCP connection 172.17.0.3:39462->22
2018/04/18 11:34:51 DEBUG [contable] registering 172.17.0.3:39462->22
2018/04/18 11:34:51 DEBUG [freki ] new TCP connection 172.17.0.3:39464->22
2018/04/18 11:34:51 DEBUG [contable] registering 172.17.0.3:39464->22
2018/04/18 11:34:54 DEBUG [freki ] new TCP connection 172.17.0.3:39466->22
2018/04/18 11:34:54 DEBUG [contable] registering 172.17.0.3:39466->22
2018/04/18 11:34:54 DEBUG [freki ] new TCP connection 172.17.0.3:39468->22
2018/04/18 11:34:54 DEBUG [contable] registering 172.17.0.3:39468->22
2018/04/18 11:34:54 DEBUG [freki ] new TCP connection 172.17.0.3:39470->22
2018/04/18 11:34:54 DEBUG [contable] registering 172.17.0.3:39470->22
2018/04/18 11:34:54 ERROR user.tcp: close tcp 172.17.0.3:5000->192.168.0.100:52536: use of closed network connection
THe password and username are correct

@glaslos
Copy link
Member

glaslos commented Apr 18, 2018

try ssh -p 5000 172.17.0.3

@Ijlalh90
Copy link
Author

One thing these are the logs of other machine which shows password not being forward
screenshot from 2018-04-18 17-44-12

@glaslos
Copy link
Member

glaslos commented Apr 21, 2018

From the logs I can see that you are connecting to port 22... Please follow my instructions.

@Ijlalh90
Copy link
Author

Sorry if i cannot deliver the problem properly. The issue is that ssh of other machine is not working.port 5001 works fine with ssh on machine with glutton. The other machine doesnot get the ssh. I have correctly setup the rules file. No issues with that but issues comes when ssh password is provided it doesnot work

@glaslos
Copy link
Member

glaslos commented Apr 23, 2018

Ah, sorry, I misunderstood your goal. Glutton only supports the username/password handshake in ssh and then disconnects. If you want a proper ssh honeypot, you have to connect Glutton to something like cowrie or bifrozt.

@Ijlalh90
Copy link
Author

Yeah it is connected to cowrie but still got disconnected

@Ijlalh90
Copy link
Author

Update: Tested this on Ubuntu 16.04 and Ubuntu 17.10. Docker Version and both the go version of glutton fails to communicate with ssh when password is transferred.
When tried to use an old build, Some libraries causes the issue and it was unsuccessful.

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