Skip to content

Instantly share code, notes, and snippets.

@matisiekpl
Last active June 10, 2023 06:28
Show Gist options
  • Save matisiekpl/a36b0327fc0a781d5953292a7a8ebc75 to your computer and use it in GitHub Desktop.
Save matisiekpl/a36b0327fc0a781d5953292a7a8ebc75 to your computer and use it in GitHub Desktop.
Zoom bot docker container. Simple tool for automatic provisioning of Zoom participants (redirecting .mp4 to /dev/video0 comming soon!)

This tool provides a simple way to create a bot, that connects to Zoom meeting
The use-case of this tool is currently unknown. I think, it's just for trolling teachers at online lessons during Covid-19 crysis
The .mp4 file to /dev/video0 redirection will be added soon, as I have some troubles with installing kernel mod for virtual webcams.
You can just run docker build within a directory with all these files:
docker build -t zoombot .
Then boot the container:
docker run -d -e ZOOM="<zoom invitation link>" -e NAME="<participant name>" -p "6901:6901" -it zoombot
Of course you can access noVnc client exposed at 6901 port
Have fun with it, but be carefully. Don't mix your zoom meetings links 😄
Note: image is published at Docker Hub: matisiekpl/zoombot. You can pull this image, instead of building image manually

sleep 5
xdg-open $ZOOM
sleep 5
xdotool key Right
sleep 0.5
xdotool key Return
sleep 9
xdotool key Return
sleep 2
xdotool type "$NAME"
sleep 1
xdotool key Return
FROM consol/ubuntu-xfce-vnc
USER root
RUN apt-get update
RUN apt-get install -qy curl iceweasel sudo desktop-file-utils lib32z1 \
libx11-6 libegl1-mesa libxcb-shm0 \
libglib2.0-0 libgl1-mesa-glx libxrender1 libxcomposite1 libxslt1.1 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 libxi6 libsm6 \
libfontconfig1 libpulse0 libsqlite3-0 \
libxcb-shape0 libxcb-xfixes0 libxcb-randr0 libxcb-image0 \
libxcb-keysyms1 libxcb-xtest0 ibus ibus-gtk \
libnss3 libxss1
ARG ZOOM_URL=https://zoom.us/client/latest/zoom_amd64.deb
RUN curl -sSL $ZOOM_URL -o /tmp/zoom_setup.deb
RUN dpkg -i /tmp/zoom_setup.deb
RUN apt-get -f install
RUN rm /tmp/zoom_setup.deb \
&& rm -rf /var/lib/apt/lists/*
RUN apt-get update && apt upgrade --fix-missing -y
RUN apt-get install -y xdotool
ADD attack.sh /attack.sh
ADD run.sh /run.sh
RUN chmod +x /run.sh
RUN chmod +x /attack.sh
CMD ["/run.sh"]
#!/bin/bash
sh /attack.sh &
tail -f /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment