File tree Expand file tree Collapse file tree 5 files changed +36
-5
lines changed Expand file tree Collapse file tree 5 files changed +36
-5
lines changed Original file line number Diff line number Diff line change 1+ build /*
2+ lib /*
3+ keys /*
14honeypot-ssh-server
5+ honeypot-ssh-server-linux-amd64.tar.gz
Original file line number Diff line number Diff line change @@ -3,3 +3,30 @@ default:
33 src/honeypot-ssh-server.c \
44 src/write_log.c \
55 -o honeypot-ssh-server -lssh
6+
7+ static-release :
8+ mkdir build
9+
10+ gcc \
11+ src/honeypot-ssh-server.c \
12+ src/write_log.c \
13+ -o build/honeypot-ssh-server \
14+ -Llib -lssh -lssl -lcrypto -lz -lgssapi_krb5
15+
16+ cp -r lib/keys build/keys
17+ mkdir build/log
18+ tar -czvf honeypot-ssh-server-linux-amd64.tar.gz -C build .
19+ rm -rf build/
20+
21+ install :
22+ mkdir -p keys
23+ ssh-keygen -t ecdsa -b 521 -f keys/ssh_host_ecdsa_key -N " "
24+ mkdir -p ~ /honeypot-ssh-server
25+ mkdir -p ~ /honeypot-ssh-server/log
26+ cp -r keys ~ /honeypot-ssh-server
27+ cp honeypot-ssh-server ~ /honeypot-ssh-server
28+ bash make-systemd-service.sh
29+
30+ clean :
31+ rm -rf build
32+ rm honeypot-ssh-server
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Log example `log/honeypot_ssh.log`</br>
1212```
1313
1414# Installation
15- ### LibSHH
15+ ### LibSSH
1616First, install libssh on your distribution.</br >
1717You should also have the gcc compiler installed.
1818
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ Russian | [English](README.md)</br>
1212```
1313
1414# Установка
15- ### LibSHH
15+ ### LibSSH
1616Для начала установите ` libssh ` в свой дистрибутив.</br >
1717У вас так же должны быть компилятор ` gcc ` .
1818
Original file line number Diff line number Diff line change 11#! /bin/env bash
22
33printf " Generate Keys\n"
4- mkdir keys
4+ mkdir -p keys
55ssh-keygen -t ecdsa -b 521 -f keys/ssh_host_ecdsa_key -N " "
66printf " \n"
77
1010printf " \n"
1111
1212printf " Copy to /home/$USER /honeypot-ssh-server\n"
13- mkdir ~ /honeypot-ssh-server
14- mkdir ~ /honeypot-ssh-server/log
13+ mkdir -p ~ /honeypot-ssh-server
14+ mkdir -p ~ /honeypot-ssh-server/log
1515cp -r keys ~ /honeypot-ssh-server
1616cp honeypot-ssh-server ~ /honeypot-ssh-server
1717printf " \n"
You can’t perform that action at this time.
0 commit comments