~privacy-squad/+junk/sshesame-snap

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
#  https://code.launchpad.net/~privacy-squad/+junk/sshesame-snap
#
#  https://github.com/jaksi/sshesame
#

name: sshesame
version: '0'
summary: Fake SSH server that lets everyone in and logs their activity
description: |
  A honeypot that provides no access, wastes the time of bad people,
  and steals their secrets.
grade: stable
confinement: strict

apps:
  daemon:
    command: sh -c "'test ! -f $SNAP_DATA/configuration || . $SNAP_DATA/configuration; $SNAP/bin/sshesame ${port:+-port $port} ${listen_address:+-listen_address $listen_address} 2>&1 |$SNAP/usr/bin/logger -t $SNAP_NAME'"
    daemon: simple
    plugs: [ network-bind ]

parts:
  sshesame:
    plugin: go
    source: https://github.com/jaksi/sshesame
    source-type: git
    stage-packages:
      - bsdutils

  snapcrafthackery:
    plugin: dump
    source: setup/hooks
    organize:
      configure: meta/hooks/configure