Lightweight XMPP based headless-chatbot for secure IT admin & automation activity
1.1K
This lightweight XMPP chatbot is built using the Gloox XMPP library and designed to facilitate remote IT administration and automation tasks. It provides a secure and efficient way to interact with your infrastructure using XMPP messages, enabling a wide range of capabilities such as reverse SSH tunneling, local AI model inference, and automated task execution.
Create a Directory for the Chatbot:
mkdir ~/xmpp-chatbot/ && cd ~/xmpp-chatbot
Ensure You Have Two XMPP Accounts:
Create xmpp-login.txt for the Chatbot:
echo "user: chatbot@myxmppserver" > xmpp-login.txt
echo "pw: chatbotsecretpw" >> xmpp-login.txt
echo "adminbuddy: me@myxmppserver" >> xmpp-login.txt
Ensure the XMPP Server is Reachable:
ping myxmppserver
Pull the Docker Image:
docker pull hackboxguy/xmpp-chatbot:latest
Run the Container:
docker run -d \
--name xmpp-chatbot \
-v $(pwd)/xmpp-chatbot-data/ssh:/root/.ssh \
-v $(pwd)/xmpp-login.txt:/run/secrets/xmpp-login \
-e XMPP_LOGIN_FILE=/run/secrets/xmpp-login \
--restart unless-stopped \
--read-only \
--tmpfs /tmp \
--tmpfs /var/run \
--tmpfs /etc/dropbear \
--network host \
hackboxguy/xmpp-chatbot:latest
docker-compose up -d
Log In to Your XMPP Server(from PC or from smartphone):
Connect with the Chatbot:
chatbot@myxmppserver.Stop the Chatbot Container:
docker stop xmpp-chatbot
Top level Sources for this container are available here: https://github.com/hackboxguy/jsonrpc-tcp-srv:
Sources of xmpp-chatbot are at: https://github.com/hackboxguy/jsonrpc-tcp-srv/tree/main/services/xmproxy:
Content type
Image
Digest
sha256:9755dae09…
Size
8.1 MB
Last updated
over 1 year ago
docker pull hackboxguy/xmpp-chatbot