Skip to content

Commit 06219cb

Browse files
committed
Update Makefile
1 parent 963ef98 commit 06219cb

File tree

5 files changed

+36
-5
lines changed

5 files changed

+36
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
build/*
2+
lib/*
3+
keys/*
14
honeypot-ssh-server
5+
honeypot-ssh-server-linux-amd64.tar.gz

Makefile

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff 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

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Log example `log/honeypot_ssh.log`</br>
1212
```
1313

1414
# Installation
15-
### LibSHH
15+
### LibSSH
1616
First, install libssh on your distribution.</br>
1717
You should also have the gcc compiler installed.
1818

README_RU.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Russian | [English](README.md)</br>
1212
```
1313

1414
# Установка
15-
### LibSHH
15+
### LibSSH
1616
Для начала установите `libssh` в свой дистрибутив.</br>
1717
У вас так же должны быть компилятор `gcc`.
1818

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/bin/env bash
22

33
printf "Generate Keys\n"
4-
mkdir keys
4+
mkdir -p keys
55
ssh-keygen -t ecdsa -b 521 -f keys/ssh_host_ecdsa_key -N ""
66
printf "\n"
77

@@ -10,8 +10,8 @@ make
1010
printf "\n"
1111

1212
printf "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
1515
cp -r keys ~/honeypot-ssh-server
1616
cp honeypot-ssh-server ~/honeypot-ssh-server
1717
printf "\n"

0 commit comments

Comments
 (0)