Blame


1 aab82b83 2023-05-24 jrmu version=pmwiki-2.3.20 ordered=1 urlencoded=1
2 aab82b83 2023-05-24 jrmu agent=Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0
3 aab82b83 2023-05-24 jrmu author=devune
4 aab82b83 2023-05-24 jrmu charset=UTF-8
5 aab82b83 2023-05-24 jrmu csum=
6 aab82b83 2023-05-24 jrmu ctime=1684738974
7 aab82b83 2023-05-24 jrmu host=2a07:e01:3:29c::1
8 aab82b83 2023-05-24 jrmu name=Psotnic.Install
9 aab82b83 2023-05-24 jrmu rev=5
10 aab82b83 2023-05-24 jrmu targets=
11 aab82b83 2023-05-24 jrmu text=!! Psotnic install guide%0a%0a!!! Overview%0a%0aPsotnic is an IRCnet bot written in C++. The main goal of the project was to create a fast, stable and easy to use bot.%0a%0a!!! Installation%0a%0aPsotnic is not available in the ports of OpenBSD 7.2, therefore it must be built from source.%0a%0a# Grab the source code from the official repository:%0a%0a->[@%0a$ curl -OJL https://github.com/psotnic/psotnic/archive/refs/tags/v0.2.14.tar.gz%0a$ tar -xzvf psotnic-0.2.14%0a$ cd psotnic-0.2.14%0a@]%0a%0a# Apply the patch for OpenBSD 7.2:%0a%0a->[@%0a$ curl -s http://devune.nastycode.com/psotnic-0.2.14-openbsd.patch | patch --posix -p1%0a@]%0a%0a->The patch includes few type castings and enabling clang as default compiler along with required compiler flag changes.%0a%0a# Configure compilation options and build the binary:%0a%0a->[@%0a$ ./configure && make dynamic%0a@]%0a%0a# To verify a successful build go to [@./bin@] directory and run the binary.%0a%0a->[@%0a$ cd ./bin%0a$ ./psotnic%0a@]%0a%0a->You should see the following output if the build is valid:%0a%0a->[@%0aSyntax: ./psotnic [-v] [-a] [-p] [-n] [-c decrypted config] [crypted config]%0a@]%0a%0a!!! Configuration%0a%0aAs a demonestration we will use a dafault config for a bot to connect tor IRCNow server.%0a%0a# Generate a hash of your main password for the bot, using:%0a%0a->[@%0a$ echo "mymainpassword" | ./psotnic -p%0a@]%0a%0a->The output would be similar to the this:%0a%0a->[@%0aPsotnic C++ edition, version 0.2.14-ipv6 (rev: UNKNOWN, build: May 21 2023 09:00:38)%0aCopyright (C) 2003-2007 Grzegorz Rusin %3cgrusin@gmail.com>%0aIf you find this software useful please donate at http://psotnic.sf.net/donate%0a%0a[*] Bot is now running in MD5 hash generator mode%0a[?] String to hash: [*] MD5 hash : 9dc275cb3ffdb686407934814bc5771c%0a@]%0a%0a# Create a config file named [@samplebot.cfg@] with the following content:%0a%0a->[@%0anick samplebot%0arealname Sample Bot%0aaltnick samplebot%0aserver 198.251.82.194 6667%0amyipv4 127.0.0.1%0alisten 62450%0aownerpass 9dc275cb3ffdb686407934814bc5771c%0a@]%0a%0a->Replace the value for [@ownerpass@] with the hash obtained from the previous step.%0a%0a# Next, encrpyt the raw config file using:%0a%0a->[@%0a$ ./psotnic -c samplebot.cfg%0a@]%0a%0a# Now, run the bot with the encrypted config file:%0a%0a->[@%0a$ ./psotnic samplebot.cfg%0a@]%0a%0a# Create the bot owner on the first run with every new config use telnet:%0a%0a->[@%0a$ telnet localhost 62450%0a@]%0a%0a->Type in the owner password from the first step and create the user by specifying a name and a password.%0a->Alternatively, you could directly message the bot on one of the IRC servers from the config file as follows:%0a%0a->[@%0a/msg samplebot mainowner %3cOWNERNAME> %3cPASSWORD>%0a@]%0a%0a!! See also:%0a%0a* Psotnic Documentation: [[https://www.psotnic.com/documentation/]]%0a
12 aab82b83 2023-05-24 jrmu time=1684771400
13 aab82b83 2023-05-24 jrmu author:1684771400=devune
14 aab82b83 2023-05-24 jrmu diff:1684771400:1684744864:minor=
15 aab82b83 2023-05-24 jrmu host:1684771400=2a07:e01:3:29c::1
16 aab82b83 2023-05-24 jrmu author:1684744864=devune
17 aab82b83 2023-05-24 jrmu diff:1684744864:1684741509:=2c2%0a%3c %0a---%0a> %0a
18 aab82b83 2023-05-24 jrmu host:1684744864=2a07:e01:3:29c::1
19 aab82b83 2023-05-24 jrmu author:1684741509=devune
20 aab82b83 2023-05-24 jrmu diff:1684741509:1684741446:=50c50%0a%3c # Generate a hash of your main password for the bot, using:%0a---%0a> # Generate a hash of your main password for the bot using:%0a
21 aab82b83 2023-05-24 jrmu host:1684741509=2a07:e01:3:29c::1
22 aab82b83 2023-05-24 jrmu author:1684741446=devune
23 aab82b83 2023-05-24 jrmu diff:1684741446:1684738974:=1,4c1,4%0a%3c !! Psotnic install guide%0a%3c %0a%3c !!! Overview%0a%3c %0a---%0a> # Psotnic install guide%0a> %0a> ## Overview%0a> %0a7,8c7,8%0a%3c !!! Installation%0a%3c %0a---%0a> ## Installation%0a> %0a11,47c11,46%0a%3c # Grab the source code from the official repository:%0a%3c %0a%3c ->[@%0a%3c $ curl -OJL https://github.com/psotnic/psotnic/archive/refs/tags/v0.2.14.tar.gz%0a%3c $ tar -xzvf psotnic-0.2.14%0a%3c $ cd psotnic-0.2.14%0a%3c @]%0a%3c %0a%3c # Apply the patch for OpenBSD 7.2:%0a%3c %0a%3c ->[@%0a%3c $ curl -s http://devune.nastycode.com/psotnic-0.2.14-openbsd.patch | patch --posix -p1%0a%3c @]%0a%3c %0a%3c ->The patch includes few type castings and enabling clang as default compiler along with required compiler flag changes.%0a%3c %0a%3c # Configure compilation options and build the binary:%0a%3c %0a%3c ->[@%0a%3c $ ./configure && make dynamic%0a%3c @]%0a%3c %0a%3c # To verify a successful build go to [@./bin@] directory and run the binary.%0a%3c %0a%3c ->[@%0a%3c $ cd ./bin%0a%3c $ ./psotnic%0a%3c @]%0a%3c %0a%3c ->You should see the following output if the build is valid:%0a%3c %0a%3c ->[@%0a%3c Syntax: ./psotnic [-v] [-a] [-p] [-n] [-c decrypted config] [crypted config]%0a%3c @]%0a%3c %0a%3c !!! Configuration%0a%3c %0a---%0a> 1. Grab the source code from the official repository:%0a> %0a> ```sh%0a> $ curl -OJL https://github.com/psotnic/psotnic/archive/refs/tags/v0.2.14.tar.gz%0a> $ tar -xzvf psotnic-0.2.14%0a> $ cd psotnic-0.2.14%0a> ```%0a> 2. Apply the patch for OpenBSD 7.2:%0a> %0a> ```sh%0a> $ curl -s http://devune.nastycode.com/psotnic-0.2.14-openbsd.patch | patch --posix -p1%0a> ```%0a> %0a> The patch includes few type castings and enabling clang as default compiler along with required compiler flag changes.%0a> %0a> 3. Configure compilation options and build the binary:%0a> %0a> ```sh%0a> $ ./configure && make dynamic%0a> ```%0a> %0a> 4. To verify a successful build go to `./bin` directory and run the binary.%0a> %0a> ```sh%0a> $ cd ./bin%0a> $ ./psotnic%0a> ```%0a> %0a> You should see the following output if the build is valid:%0a> %0a> ```%0a> Syntax: ./psotnic [-v] [-a] [-p] [-n] [-c decrypted config] [crypted config]%0a> ```%0a> %0a> ## Configuration%0a> %0a50,108c49,107%0a%3c # Generate a hash of your main password for the bot using:%0a%3c %0a%3c ->[@%0a%3c $ echo "mymainpassword" | ./psotnic -p%0a%3c @]%0a%3c %0a%3c ->The output would be similar to the this:%0a%3c %0a%3c ->[@%0a%3c Psotnic C++ edition, version 0.2.14-ipv6 (rev: UNKNOWN, build: May 21 2023 09:00:38)%0a%3c Copyright (C) 2003-2007 Grzegorz Rusin %3cgrusin@gmail.com>%0a%3c If you find this software useful please donate at http://psotnic.sf.net/donate%0a%3c %0a%3c [*] Bot is now running in MD5 hash generator mode%0a%3c [?] String to hash: [*] MD5 hash : 9dc275cb3ffdb686407934814bc5771c%0a%3c @]%0a%3c %0a%3c # Create a config file named [@samplebot.cfg@] with the following content:%0a%3c %0a%3c ->[@%0a%3c nick samplebot%0a%3c realname Sample Bot%0a%3c altnick samplebot%0a%3c server 198.251.82.194 6667%0a%3c myipv4 127.0.0.1%0a%3c listen 62450%0a%3c ownerpass 9dc275cb3ffdb686407934814bc5771c%0a%3c @]%0a%3c %0a%3c ->Replace the value for [@ownerpass@] with the hash obtained from the previous step.%0a%3c %0a%3c # Next, encrpyt the raw config file using:%0a%3c %0a%3c ->[@%0a%3c $ ./psotnic -c samplebot.cfg%0a%3c @]%0a%3c %0a%3c # Now, run the bot with the encrypted config file:%0a%3c %0a%3c ->[@%0a%3c $ ./psotnic samplebot.cfg%0a%3c @]%0a%3c %0a%3c # Create the bot owner on the first run with every new config use telnet:%0a%3c %0a%3c ->[@%0a%3c $ telnet localhost 62450%0a%3c @]%0a%3c %0a%3c ->Type in the owner password from the first step and create the user by specifying a name and a password.%0a%3c ->Alternatively, you could directly message the bot on one of the IRC servers from the config file as follows:%0a%3c %0a%3c ->[@%0a%3c /msg samplebot mainowner %3cOWNERNAME> %3cPASSWORD>%0a%3c @]%0a%3c %0a%3c !! See also:%0a%3c %0a%3c * Psotnic Documentation: [[https://www.psotnic.com/documentation/]]%0a---%0a> 1. Generate a hash of your main password for the bot using:%0a> %0a> ```sh%0a> $ echo "mymainpassword" | ./psotnic -p%0a> ```%0a> %0a> The output would be similar to the this:%0a> %0a> ```%0a> Psotnic C++ edition, version 0.2.14-ipv6 (rev: UNKNOWN, build: May 21 2023 09:00:38)%0a> Copyright (C) 2003-2007 Grzegorz Rusin %3cgrusin@gmail.com>%0a> If you find this software useful please donate at http://psotnic.sf.net/donate%0a> %0a> [*] Bot is now running in MD5 hash generator mode%0a> [?] String to hash: [*] MD5 hash : 9dc275cb3ffdb686407934814bc5771c%0a> ```%0a> %0a> 2. Create a config file named `samplebot.cfg` with the following content:%0a> %0a> ```%0a> nick samplebot%0a> realname Sample Bot%0a> altnick samplebot%0a> server 198.251.82.194 6667%0a> myipv4 127.0.0.1%0a> listen 62450%0a> ownerpass 9dc275cb3ffdb686407934814bc5771c%0a> ```%0a> %0a> Replace the value for `ownerpass` with the hash obtained from the previous step.%0a> %0a> 3. Next, encrpyt the raw config file using:%0a> %0a> ```sh%0a> $ ./psotnic -c samplebot.cfg%0a> ```%0a> %0a> 4. Now, run the bot with the encrypted config file:%0a> %0a> ```sh%0a> $ ./psotnic samplebot.cfg%0a> ```%0a> %0a> 5. Create the bot owner on the first run with every new config use telnet:%0a> %0a> ```sh%0a> $ telnet localhost 62450%0a> ```%0a> %0a> Type in the owner password from the first step and create the user by specifying a name and a password.%0a> Alternatively, you could directly message the bot on one of the IRC servers from the config file as follows:%0a> %0a> ```%0a> /msg samplebot mainowner %3cOWNERNAME> %3cPASSWORD>%0a> ```%0a> %0a> ## See also:%0a> %0a> - Psotnic Documentation: https://www.psotnic.com/documentation/%0a
24 aab82b83 2023-05-24 jrmu host:1684741446=2a07:e01:3:29c::1
25 aab82b83 2023-05-24 jrmu author:1684738974=devune
26 aab82b83 2023-05-24 jrmu diff:1684738974:1684738974:=1,107d0%0a%3c # Psotnic install guide%0a%3c %0a%3c ## Overview%0a%3c %0a%3c Psotnic is an IRCnet bot written in C++. The main goal of the project was to create a fast, stable and easy to use bot.%0a%3c %0a%3c ## Installation%0a%3c %0a%3c Psotnic is not available in the ports of OpenBSD 7.2, therefore it must be built from source.%0a%3c %0a%3c 1. Grab the source code from the official repository:%0a%3c %0a%3c ```sh%0a%3c $ curl -OJL https://github.com/psotnic/psotnic/archive/refs/tags/v0.2.14.tar.gz%0a%3c $ tar -xzvf psotnic-0.2.14%0a%3c $ cd psotnic-0.2.14%0a%3c ```%0a%3c 2. Apply the patch for OpenBSD 7.2:%0a%3c %0a%3c ```sh%0a%3c $ curl -s http://devune.nastycode.com/psotnic-0.2.14-openbsd.patch | patch --posix -p1%0a%3c ```%0a%3c %0a%3c The patch includes few type castings and enabling clang as default compiler along with required compiler flag changes.%0a%3c %0a%3c 3. Configure compilation options and build the binary:%0a%3c %0a%3c ```sh%0a%3c $ ./configure && make dynamic%0a%3c ```%0a%3c %0a%3c 4. To verify a successful build go to `./bin` directory and run the binary.%0a%3c %0a%3c ```sh%0a%3c $ cd ./bin%0a%3c $ ./psotnic%0a%3c ```%0a%3c %0a%3c You should see the following output if the build is valid:%0a%3c %0a%3c ```%0a%3c Syntax: ./psotnic [-v] [-a] [-p] [-n] [-c decrypted config] [crypted config]%0a%3c ```%0a%3c %0a%3c ## Configuration%0a%3c %0a%3c As a demonestration we will use a dafault config for a bot to connect tor IRCNow server.%0a%3c %0a%3c 1. Generate a hash of your main password for the bot using:%0a%3c %0a%3c ```sh%0a%3c $ echo "mymainpassword" | ./psotnic -p%0a%3c ```%0a%3c %0a%3c The output would be similar to the this:%0a%3c %0a%3c ```%0a%3c Psotnic C++ edition, version 0.2.14-ipv6 (rev: UNKNOWN, build: May 21 2023 09:00:38)%0a%3c Copyright (C) 2003-2007 Grzegorz Rusin %3cgrusin@gmail.com>%0a%3c If you find this software useful please donate at http://psotnic.sf.net/donate%0a%3c %0a%3c [*] Bot is now running in MD5 hash generator mode%0a%3c [?] String to hash: [*] MD5 hash : 9dc275cb3ffdb686407934814bc5771c%0a%3c ```%0a%3c %0a%3c 2. Create a config file named `samplebot.cfg` with the following content:%0a%3c %0a%3c ```%0a%3c nick samplebot%0a%3c realname Sample Bot%0a%3c altnick samplebot%0a%3c server 198.251.82.194 6667%0a%3c myipv4 127.0.0.1%0a%3c listen 62450%0a%3c ownerpass 9dc275cb3ffdb686407934814bc5771c%0a%3c ```%0a%3c %0a%3c Replace the value for `ownerpass` with the hash obtained from the previous step.%0a%3c %0a%3c 3. Next, encrpyt the raw config file using:%0a%3c %0a%3c ```sh%0a%3c $ ./psotnic -c samplebot.cfg%0a%3c ```%0a%3c %0a%3c 4. Now, run the bot with the encrypted config file:%0a%3c %0a%3c ```sh%0a%3c $ ./psotnic samplebot.cfg%0a%3c ```%0a%3c %0a%3c 5. Create the bot owner on the first run with every new config use telnet:%0a%3c %0a%3c ```sh%0a%3c $ telnet localhost 62450%0a%3c ```%0a%3c %0a%3c Type in the owner password from the first step and create the user by specifying a name and a password.%0a%3c Alternatively, you could directly message the bot on one of the IRC servers from the config file as follows:%0a%3c %0a%3c ```%0a%3c /msg samplebot mainowner %3cOWNERNAME> %3cPASSWORD>%0a%3c ```%0a%3c %0a%3c ## See also:%0a%3c %0a%3c - Psotnic Documentation: https://www.psotnic.com/documentation/%0a
27 aab82b83 2023-05-24 jrmu host:1684738974=2a07:e01:3:29c::1