Blame
Date:
Fri Dec 17 13:35:57 2021 UTC
Message:
Imported sources
01
2021-12-17
jrmu
USERNAME="botnow"
02
2021-12-17
jrmu
HOMEDIR="/home/botnow"
03
2021-12-17
jrmu
HTDOCS="/var/www/htdocs/botnow"
04
2021-12-17
jrmu
DATABASE="/var/www/botnow/"
05
2021-12-17
jrmu
ZONES="/var/nsd/zones/master/"
06
2021-12-17
jrmu
ZNCUSER="znc"
07
2021-12-17
jrmu
ZNCDIR="/home/znc/home/znc/"
08
2021-12-17
jrmu
HTTPDCONF="/etc/httpd.conf"
09
2021-12-17
jrmu
ACMECONF="/etc/acme-client.conf"
10
2021-12-17
jrmu
11
2021-12-17
jrmu
#botnow: figlet php sqlite
12
2021-12-17
jrmu
botnow:
13
2021-12-17
jrmu
useradd -m -g =uid -c ${USERNAME} -d ${HOMEDIR} -s /bin/ksh ${USERNAME}
14
2021-12-17
jrmu
chmod go-rx ${HOMEDIR}
15
2021-12-17
jrmu
mkdir ${DATABASE}
16
2021-12-17
jrmu
chmod o-rx ${DATABASE}
17
2021-12-17
jrmu
touch ${DATABASE}/www
18
2021-12-17
jrmu
chown -R www:${USERNAME} ${DATABASE}
19
2021-12-17
jrmu
chmod -R ug+rw ${DATABASE}
20
2021-12-17
jrmu
mkdir ${HTDOCS}
21
2021-12-17
jrmu
cp words ${HTDOCS}/
22
2021-12-17
jrmu
cp register.php ${HTDOCS}/
23
2021-12-17
jrmu
chown -R www:daemon ${HTDOCS}
24
2021-12-17
jrmu
chmod o-rwx ${HTDOCS}
25
2021-12-17
jrmu
usermod -G daemon ${USERNAME}
26
2021-12-17
jrmu
usermod -G wheel ${USERNAME}
27
2021-12-17
jrmu
chown -R _nsd:daemon ${ZONES}
28
2021-12-17
jrmu
chmod ug+rwx ${ZONES}
29
2021-12-17
jrmu
chmod ug+rw ${ZONES}/*
30
2021-12-17
jrmu
chmod g+rw ${HTTPDCONF} ${ACMECONF}
31
2021-12-17
jrmu
echo "permit nopass ${USERNAME} as _nsd cmd nsd-control" >> /etc/doas.conf
32
2021-12-17
jrmu
cp captcha.png register.php ${HTDOCS}/
33
2021-12-17
jrmu
cp LICENSE README botnow.pl botnow.conf.example BNC.pm DNS.pm Mail.pm SQLite.pm Shell.pm table.sql Hash.pm Help.pm makefile networks captcha.png register.php words ${HOMEDIR}/
34
2021-12-17
jrmu
chown -R ${USERNAME}:${USERNAME} ${HOMEDIR}
35
2021-12-17
jrmu
chmod u+x ${HOMEDIR}/botnow.pl
36
2021-12-17
jrmu
chown -R ${ZNCUSER}:daemon ${ZNCDIR}
37
2021-12-17
jrmu
chmod -R ug+r ${ZNCDIR}
38
2021-12-17
jrmu
find ${ZNCDIR} -type d -exec chmod ug+rx {} +
39
2021-12-17
jrmu
echo "Installation complete. To run botnow, type $ ./botnow.pl"
40
2021-12-17
jrmu
figlet:
41
2021-12-17
jrmu
pkg_add figlet-2.2.5
42
2021-12-17
jrmu
43
2021-12-17
jrmu
php:
44
2021-12-17
jrmu
pkg_add php-8.0.8
45
2021-12-17
jrmu
pkg_add php-sqlite
46
2021-12-17
jrmu
47
2021-12-17
jrmu
sqlite:
48
2021-12-17
jrmu
pkg_add p5-DBI
49
2021-12-17
jrmu
pkg_add p5-DBD-SQLite
50
2021-12-17
jrmu
pkg_add sqlite3
51
2021-12-17
jrmu
pkg_add p5-Class-DBI-SQLite
52
2021-12-17
jrmu
53
2021-12-17
jrmu
blowfish:
54
2021-12-17
jrmu
cc -o blowfish.o blowfish.c
55
2021-12-17
jrmu
cp blowfish.o ${HOMEDIR}/
IRCNow