Skip to content

Commit

Permalink
Add Dockerfile for running Sticky Keys Slayer in more isolation
Browse files Browse the repository at this point in the history
  • Loading branch information
jhart-r7 committed Aug 10, 2017
1 parent a3bdd5f commit c2d1203
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 1 deletion.
7 changes: 7 additions & 0 deletions Dockerfile
@@ -0,0 +1,7 @@
FROM ubuntu:16.04
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install parallel bc rdesktop imagemagick xdotool xvfb
ADD stickyKeysSlayer.sh /
ADD docker_wrapper.sh /
ENTRYPOINT ["./docker_wrapper.sh"]
35 changes: 34 additions & 1 deletion README.md
Expand Up @@ -15,6 +15,7 @@ DEFCON24 Presentation Slides: [http://www.slideshare.net/DennisMaldonado5/sticky

Video demo of stickyKeysSlayer can be found here: [https://www.youtube.com/watch?v=Jy4hg4a1FYI](https://www.youtube.com/watch?v=Jy4hg4a1FYI)


Dependencies:
----------------
* imagemagick
Expand All @@ -27,7 +28,39 @@ All packages exist in the Kali repositories:
apt-get update

apt-get -y install imagemagick xdotool parallel bc


Docker:
-------

In some situations, running this tool within Docker may be advantageous. To do so, first build it:

```
docker build -t sticky-keys-slayer .
```

Then run the container, passing in necessary arguments to `stickyKeysSlayer.sh`:

```
docker run --rm -it --name sticky-keys-slayer --net=host sticky-keys-slayer -o /tmp/pics <target>
```

If you'd like to save the screenshots of vulnerable systems:

```
mkdir pics
docker run --rm -it --name sticky-keys-slayer --net=host -v `pwd`/pics:/tmp/foo/ sticky-keys-slayer -o /tmp/pics <target>
```

If you'd like to pass in a list of hosts to run and save the screenshots

```
mkdir pics
# put some hosts in hosts.txt
echo 192.168.0.1 > hosts.txt
docker run --rm -it --name sticky-keys-slayer --net=host -v `pwd`/hosts.txt:/tmp/hosts.txt -v `pwd`/pics:/tmp/foo/ sticky-keys-slayer -o /tmp/pics /tmp/hosts.txt
```



To Do:
----------------
Expand Down
4 changes: 4 additions & 0 deletions docker_wrapper.sh
@@ -0,0 +1,4 @@
#!/bin/bash

Xvfb :0 -ac -screen 0 1280x720x16 -nolisten tcp &
./stickyKeysSlayer.sh $@

0 comments on commit c2d1203

Please sign in to comment.