mrschyte / dockerpot Goto Github PK
View Code? Open in Web Editor NEWA docker based honeypot.
License: BSD 2-Clause "Simplified" License
A docker based honeypot.
License: BSD 2-Clause "Simplified" License
When trying to connect to port 22 on my docker system, this error is returend.
This is the Dockerfile i used to build with:
FROM ubuntu:16.04
RUN apt-get update && apt-get install -y openssh-server
RUN mkdir /var/run/sshd
RUN echo 'root:screencast' | chpasswd
RUN sed -i 's/PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
# SSH login fix. Otherwise user is kicked off after login
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
ENV NOTVISIBLE "in users profile"
RUN echo "export VISIBLE=now" >> /etc/profile
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
which i found here: https://docs.docker.com/engine/examples/running_ssh_service/
I have also tried a "smaller and simpler" version:
FROM ubuntu:16.04
RUN mkdir /var/run/sshd
RUN echo root:root | chpasswd
EXPOSE 22
CMD ["/usr/sbin/sshd", "-D"]
The command I used to build with:
docker build . -t honeypot
I'm not very well oritentated in either Linux nor Docker. I followed the instructions in repo as much as possible, but I did have some issues installing Docker itself, which i did following a guide elsewhere.
Since docker v1.3, nsenter is no longer needed, as the "exec" verb is officially supported by the CLI. https://docs.docker.com/reference/commandline/cli/#exec
I'd suggest rewriting your scripts to use exec, and forego the need to install nsenter.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.