Commit Diff


commit - 6f18b2f26268bbd31ab434fa44ae4b2942892cdb
commit + f2f0c1e096e002317a1868a6ae70d839ace690cd
blob - /dev/null
blob + fcd7c2deec9d7d3d803b36dcf34880c20f4445af (mode 644)
--- /dev/null
+++ wiki.d/Openbsd.Warith
@@ -0,0 +1,23 @@
+version=pmwiki-2.2.130 ordered=1 urlencoded=1
+agent=Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0
+author=mkf
+charset=UTF-8
+csum=
+ctime=1627710562
+host=2.178.154.172
+name=Openbsd.Warith
+rev=3
+targets=Openbsd.Dns,Openbsd.Backup,Openbsd.Netcat
+text=(:title Wraith:)%0a''' Warrning: This guide was written for OpenBSD 6.8 and doesn't work on newer versions '''%0a%0a[[https://wraith.botpack.net/|Wraith]] is a powerful botnet that can be used to manage and protect channels without services.%0a%0aPros:%0a# Stronger than eggdrop%0a%0aCons:%0a# Written in C++%0a# OpenBSD is not officially supported%0a# Complex, not easy to use%0a%0aFirst, plan out your botpack. Wraith requires a hub and several leaves. Figure out which server you want to act as a hub and which as leaves. For each network you want to serve, create [[openbsd/dns|name server records]] such as hub.network.ircnow.org, fruit1.network.ircnow.org, fruit2.network.ircnow.org, and so forth. This will help you keep track of the hubs and leaves.%0a%0a[[https://wraith.botpack.net/wraith.botpack.net/wiki/PackConfig.html|The pack config]] instructions are very confusing, but you will want to read all the wraith [[https://github.com/wraith/wraith/wiki/Documentation|documentation]]. Before you begin, you will want to create a config file and then save it in a safe place. Make sure to [[openbsd/backup|back it up]].%0a%0aHere is a sample config:%0a%0a[@%0aPACKNAME yourpackname%0aBINARYPASS +dURT8$6e8e5b2448356bb48f642dd18115aaaaca7b6dcb%0aDCCPREFIX .%0aOWNER yournick +SUXSC$d2312f8fcd9de09574d7370e8de058d91322686c%0aHUB yourhubname hub.network.ircnow.org 12742%0aSALT1 nuUlSail2TyDzZhWOX9Paz1L6SBoVLvX%0aSALT2 ThTQF8IFeEe5ox0i%0a@]%0a%0aCreate a salted password hash by choosing a random 5 character alphanumeric salt and random password:%0a%0a[@%0aSALT='AbCd3'; PASS='aBcD3fgH1jK1'; hash=$(echo -n "${SALT}${PASS}" | sha1 | awk '{print $1}'); echo "+${SALT}\$${hash}"%0a@]%0a%0aRun this twice with different values for SALT and PASS to create two random hashes for BINARYPASS and OWNER. Make sure to save the unhashed SALT and PASS and the salted hash. You must do this twice for both BINARYPASS and OWNER; store this in a safe place! Use the hashes to fill in the config above.%0a%0aReplace @@yourpackname@@ with the network name (such as efnet, ircnet, undernet). @@yournick@@ should be replaced with your login username, @@yourhubname@@ with the network name (such as efnet, ircnet, undernet), and @@hub.network.ircnow.org@@ with the matching hostname. Pick a free port to use.%0a%0aTo generate SALT1 and SALT2, run this script: %0a%0a[@%0aSALT1=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1`; SALT2=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-16} | head -n 1`; echo "SALT1=$SALT1"; echo "SALT2=$SALT2";%0a@]%0a%0a[[https://github.com/wraith/wraith/|wraith's git repo]] contains the source code for [[http://botpack.net/wraith-release.tar.gz|release v1.4.10]]. However, it was not tested on OpenBSD and won't build. IRCNow uses a [[https://ircnow.org/software/wraith-v1.4.10a.tar.gz|patched version of the source]] that has been tested to work on OpenBSD 6.8 stable.%0a%0a[@%0a$ doas pkg_add gmake-4.3%0a$ doas pkg_add g++-8.4.0%0a$ cd ~%0a$ ftp https://ircnow.org/software/wraith-v1.4.10a.tar.gz%0a$ tar xvzf wraith-v1.4.10a.tar.gz%0a$ cd wraith-v1.4.10/%0a$ ./configure%0a$ gmake%0a@]%0a%0aThen, copy this install script into ~/wraith-setup.sh:%0a%0a[@%0aWRAITHPATH=~/wraith-v1.4.10/wraith%0a%0awhile [[ -n $USER ]]%0ado%0a        print -n "Create new bot (WARNING: WILL DELETE!): ";%0a        read USER;%0a        doas userdel -rv $USER;%0a        doas groupdel -v $USER;%0a        doas useradd -m -g =uid -c "$USER" -d /home/$USER -s /bin/ksh $USER%0a        doas mkdir -p /home/$USER/usr/lib/%0a        doas mkdir -p /home/$USER/usr/libexec/%0a        doas mkdir -p /home/$USER/etc/%0a        doas mkdir -p /home/$USER/tmp/%0a        doas mkdir -p /home/$USER/.../%0a        doas cp $WRAITHPATH /home/$USER/%0a        doas cp /usr/lib/libssl.so.48.1 /home/$USER/usr/lib/%0a        doas cp /usr/lib/libm.so.10.1 /home/$USER/usr/lib/%0a        doas cp /usr/lib/libc.so.96.0 /home/$USER/usr/lib/%0a        doas cp /usr/lib/libcrypto.so.46.1 /home/$USER/usr/lib/%0a        doas cp /usr/lib/libstdc++.so.57.0 /home/$USER/usr/lib/%0a        doas cp /usr/libexec/ld.so /home/$USER/usr/libexec/%0a        doas cp /etc/resolv.conf /home/$USER/etc/%0a        doas chown -R $USER:$USER /home/$USER%0a        doas su -l $USER -c "/home/$USER/wraith -Q"%0a        print -n "Botpack configured! Press enter to continue";%0a        read IGNORE;%0a        doas su -l $USER -c "/home/$USER/wraith -C"%0a        doas chsh -s /sbin/nologin $USER%0a        print -n "Bots configured! Press enter to continue";%0a        read IGNORE;%0adone%0a@]%0a%0aRun the script:%0a%0a[@%0a$ sh ~/wraith-setup.sh%0a@]%0a%0a!! Hub%0a%0aIf you are creating a hub, name the hub after the network (efnet, ircnet, undernet). The script will ask you to provide the packconfig you generated and saved above. Paste it.%0a%0a[@%0a$  sh wraith-setup.sh  %0aCreate new bot (WARNING: WILL DELETE!): networkname%0aCommand: /bin/rm -rf /home/undernet > /dev/null 2>&1 || true%0a// Paste in your PACKCONFIG. Reference https://github.com/wraith/wraith/wiki/PackConfig%0a// Press %3center> if it gets hung up. If that doesn't work hit ^D (CTRL+d)%0a@]%0a%0aWe paste something like this:%0a%0a[@%0aPACKNAME yourpackname%0aBINARYPASS +dURT8$6e8e5b2448356bb48f642dd18115aaaaca7b6dcb%0aDCCPREFIX .%0aOWNER yournick +SUXSC$d2312f8fcd9de09574d7370e8de058d91322686c%0aHUB yourhubname hub.network.ircnow.org 12742%0aSALT1 nuUlSail2TyDzZhWOX9Paz1L6SBoVLvX%0aSALT2 ThTQF8IFeEe5ox0i%0a@]%0a%0aThe terminal will show:%0a%0a[@%0a........%0a* Wrote settings to binary.%0aBotpack configured! Press enter to continue%0aEnter your binary password: %0a@]%0a%0aAfterwards, it will ask for your OWNER password and bot configuration information. You will want to these three lines at the top:%0a%0a[@%0ahubnick hub.network.ircnow.org%0a! portmin 64000%0a! portmax 64100%0a@]%0a%0aReplace hubnick with your network name (efnet, ircnet, undernet) and hub.network.ircnow.org with your hostname. If you want to use IPv6, include a +. You will then want to specify a min port and max port for updating bot info.%0a%0aIt should look like this:%0a%0a[@%0ahubnick hub.network.ircnow.org%0a! portmin 64000%0a! portmax 64100%0a%0a# Automatically updated with -C%0a! uid 1025%0a#! uid -1%0a%0a! username undernet%0a! homedir /home/undernet%0a%0a# Hubs this bot will connect to%0a! hub networkname hub.network.ircnow.org 12742%0a%0a# '|' means OR, [] means the enclosed is optional%0a# A '+' in front of HOST means the HOST is ipv6%0a# A '/' in front of BOT will disable that bot.%0a#[/]BOT IP|* [+]HOST|* [IPV6-IP]%0a#bot ip vhost%0a#bot2 * vhost%0a#bot3 ip%0a#bot4 * +ipv6.vhost.com%0a#bot5 * * ip:v6:ip:goes:here::%0a### Hubs should have their own binary ###%0a@]%0a%0aSave and quit.%0a%0a'''WARNING''': Don't connect the hub to IRC directly! The hub contains data that if stolen, can cause your entire botnet to get compromised. It is better if the hub is not on a public IP address.%0a%0a!! Bots%0a%0aIf you are creating a leaf node, name each leaf node after your server's fruit name (fruit01, fruit02, fruit03). You want three separate shell accounts, one for each bot. Do not put all three leaf nodes in the same shell account. Don't create any more than three shell accounts since more than three bots will waste your IP connection limit without providing much additional protection.%0a%0a[@%0abotnick vhost%0a@]%0a%0aReplace botnick with your fruit name (fruit01, fruit02, fruit03) and vhost with your IPv6 hostname (fruit.network.ircnow.org).%0a%0a!! Backup and Delete Wraith%0a%0aAfter you are done, make sure to copy the dynamic wraith binary to somewhere safe and delete it for security reasons.%0a%0aRun this on your backup PC:%0a%0a[@%0a$ scp fruit.ircnow.org:/home/username/wraith-v1.4.10/wraith /path/to/dest/%0a@]%0a%0aThen on the server:%0a%0a[@%0a$ rm -rf /home/username/wraith-v1.4.10/%0a@]%0a%0a!! Controlling Wraith%0a%0aTo administer wraith, you will need to log in to your server using ssh:%0a%0a[@%0a$ ssh network.ircnow.org%0a@]%0a%0aOnce connected, run [[openbsd/netcat|netcat]] to your host and port:%0a%0a[@%0a$ nc network.ircnow.org 12742%0a@]%0a%0a!!! Joining channels%0a%0aTo make the bot join and leave a channel:%0a%0a[@%0a.+chan #chan%0a.-chan #chan%0a@]%0a%0aIf the channel is keyed:%0a%0a[@%0a.chanset #chan chanmode { +ntk key }%0a@]%0a%0a!!! Giving users ops%0a%0a[@%0a.op #chan %3cnick>%0a@]%0a%0aTo use a specific bot:%0a%0a[@%0a.botcmd botnick op user *%0a.bl op user *%0a@]%0a%0a!!! Cookie-ops%0a%0aCookie-ops help ensure an op is valid and secure. It takes who was opped, who opped them, a timestamp, and channel state and sends a hash of this info.%0a%0a'''NOTE''': If ops are not working, disable op cookies.%0a%0aTo use op cookies:%0a%0a[@%0a.chanset #chan -fastop%0a@]%0a%0aTo disable op cookies:%0a%0a[@%0a.chanset #chan +fastop%0a@]%0a%0a!!! Voice and Limits%0a%0aUse +y to voice and +l to set limits:%0a%0a[@%0a.chattr bot +ly%0a@]%0a%0a!!! DCC into a leaf%0a%0aIf your hostmask is recognized by the bot, then in your IRC client, type:%0a%0a[@%0a/DCC CHAT botnick%0a@]%0a%0aEnter your password.%0a%0aIf your hostmask is not recognized, type:%0a%0a[@%0a/CTCP botnick CHAT%0a@]%0a%0aEnter your username, then enter your password.%0a%0a!! Default Secure Channel%0a%0aFor an explanation of the channel settings:%0a%0a[@%0a.help chaninfo%0a@]%0a%0aThis will make your channel secure by default:%0a%0a[@%0a.chanset #chan -fastop mdop deop manop deop mop deop -autoop +private bad-cookie kick flood-mjoin 6:1 flood-kick 2:30 +protect%0a@]%0a%0a!! Unable to op%0a%0aIf you find yourself unable to op a user:%0a%0a[@%0a.op #ircnow user%0a[03:43:28] @ #user# [op -> botcmd ? op] ...%0a[03:43:28] #user# botcmd cherry07 op ...%0a[03:43:29] (cherry07) #user# (#ircnow) op user%0a[cherry07] You don't have access to op on #ircnow%0a@]%0a%0aIt may be because there is a +d flag set. Run whois on the user:%0a%0a[@%0a.whois user%0a[03:45:57] #user# whois user%0aHANDLE                           PASS FLAGS           LAST%0auser                             yes  Oaijmnop        02:47 (#ircnow   )%0a...%0aCOMMENT: +d: Manual op in -manop channel              (user!user@user.users.undernet.org MODE #ircnow +o user2)%0a@]%0a%0aTo fix this, drop the +d flag:%0a%0a[@%0a.chattr user -d #ircnow                                                                              %0a@]%0a
+time=1631254291
+title=Wraith
+author:1631254291=mkf
+diff:1631254291:1631254262:=2c2,3%0a%3c ''' Warrning: This guide was written for OpenBSD 6.8 and doesn't work on newer versions '''%0a---%0a> %0a> """ Warrning: This guide was written for OpenBSD 6.8 and doesn't work on newer versions """%0a
+host:1631254291=2.178.154.172
+author:1631254262=mkf
+csum:1631254262=fancy signs.
+diff:1631254262:1627710562:=2,3d1%0a%3c %0a%3c """ Warrning: This guide was written for OpenBSD 6.8 and doesn't work on newer versions """%0a
+host:1631254262=2.178.154.172
+author:1627710562=jrmu
+diff:1627710562:1627710562:=1,329d0%0a%3c (:title Wraith:)%0a%3c %0a%3c [[https://wraith.botpack.net/|Wraith]] is a powerful botnet that can be used to manage and protect channels without services.%0a%3c %0a%3c Pros:%0a%3c # Stronger than eggdrop%0a%3c %0a%3c Cons:%0a%3c # Written in C++%0a%3c # OpenBSD is not officially supported%0a%3c # Complex, not easy to use%0a%3c %0a%3c First, plan out your botpack. Wraith requires a hub and several leaves. Figure out which server you want to act as a hub and which as leaves. For each network you want to serve, create [[openbsd/dns|name server records]] such as hub.network.ircnow.org, fruit1.network.ircnow.org, fruit2.network.ircnow.org, and so forth. This will help you keep track of the hubs and leaves.%0a%3c %0a%3c [[https://wraith.botpack.net/wraith.botpack.net/wiki/PackConfig.html|The pack config]] instructions are very confusing, but you will want to read all the wraith [[https://github.com/wraith/wraith/wiki/Documentation|documentation]]. Before you begin, you will want to create a config file and then save it in a safe place. Make sure to [[openbsd/backup|back it up]].%0a%3c %0a%3c Here is a sample config:%0a%3c %0a%3c [@%0a%3c PACKNAME yourpackname%0a%3c BINARYPASS +dURT8$6e8e5b2448356bb48f642dd18115aaaaca7b6dcb%0a%3c DCCPREFIX .%0a%3c OWNER yournick +SUXSC$d2312f8fcd9de09574d7370e8de058d91322686c%0a%3c HUB yourhubname hub.network.ircnow.org 12742%0a%3c SALT1 nuUlSail2TyDzZhWOX9Paz1L6SBoVLvX%0a%3c SALT2 ThTQF8IFeEe5ox0i%0a%3c @]%0a%3c %0a%3c Create a salted password hash by choosing a random 5 character alphanumeric salt and random password:%0a%3c %0a%3c [@%0a%3c SALT='AbCd3'; PASS='aBcD3fgH1jK1'; hash=$(echo -n "${SALT}${PASS}" | sha1 | awk '{print $1}'); echo "+${SALT}\$${hash}"%0a%3c @]%0a%3c %0a%3c Run this twice with different values for SALT and PASS to create two random hashes for BINARYPASS and OWNER. Make sure to save the unhashed SALT and PASS and the salted hash. You must do this twice for both BINARYPASS and OWNER; store this in a safe place! Use the hashes to fill in the config above.%0a%3c %0a%3c Replace @@yourpackname@@ with the network name (such as efnet, ircnet, undernet). @@yournick@@ should be replaced with your login username, @@yourhubname@@ with the network name (such as efnet, ircnet, undernet), and @@hub.network.ircnow.org@@ with the matching hostname. Pick a free port to use.%0a%3c %0a%3c To generate SALT1 and SALT2, run this script: %0a%3c %0a%3c [@%0a%3c SALT1=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-32} | head -n 1`; SALT2=`cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w ${1:-16} | head -n 1`; echo "SALT1=$SALT1"; echo "SALT2=$SALT2";%0a%3c @]%0a%3c %0a%3c [[https://github.com/wraith/wraith/|wraith's git repo]] contains the source code for [[http://botpack.net/wraith-release.tar.gz|release v1.4.10]]. However, it was not tested on OpenBSD and won't build. IRCNow uses a [[https://ircnow.org/software/wraith-v1.4.10a.tar.gz|patched version of the source]] that has been tested to work on OpenBSD 6.8 stable.%0a%3c %0a%3c [@%0a%3c $ doas pkg_add gmake-4.3%0a%3c $ doas pkg_add g++-8.4.0%0a%3c $ cd ~%0a%3c $ ftp https://ircnow.org/software/wraith-v1.4.10a.tar.gz%0a%3c $ tar xvzf wraith-v1.4.10a.tar.gz%0a%3c $ cd wraith-v1.4.10/%0a%3c $ ./configure%0a%3c $ gmake%0a%3c @]%0a%3c %0a%3c Then, copy this install script into ~/wraith-setup.sh:%0a%3c %0a%3c [@%0a%3c WRAITHPATH=~/wraith-v1.4.10/wraith%0a%3c %0a%3c while [[ -n $USER ]]%0a%3c do%0a%3c         print -n "Create new bot (WARNING: WILL DELETE!): ";%0a%3c         read USER;%0a%3c         doas userdel -rv $USER;%0a%3c         doas groupdel -v $USER;%0a%3c         doas useradd -m -g =uid -c "$USER" -d /home/$USER -s /bin/ksh $USER%0a%3c         doas mkdir -p /home/$USER/usr/lib/%0a%3c         doas mkdir -p /home/$USER/usr/libexec/%0a%3c         doas mkdir -p /home/$USER/etc/%0a%3c         doas mkdir -p /home/$USER/tmp/%0a%3c         doas mkdir -p /home/$USER/.../%0a%3c         doas cp $WRAITHPATH /home/$USER/%0a%3c         doas cp /usr/lib/libssl.so.48.1 /home/$USER/usr/lib/%0a%3c         doas cp /usr/lib/libm.so.10.1 /home/$USER/usr/lib/%0a%3c         doas cp /usr/lib/libc.so.96.0 /home/$USER/usr/lib/%0a%3c         doas cp /usr/lib/libcrypto.so.46.1 /home/$USER/usr/lib/%0a%3c         doas cp /usr/lib/libstdc++.so.57.0 /home/$USER/usr/lib/%0a%3c         doas cp /usr/libexec/ld.so /home/$USER/usr/libexec/%0a%3c         doas cp /etc/resolv.conf /home/$USER/etc/%0a%3c         doas chown -R $USER:$USER /home/$USER%0a%3c         doas su -l $USER -c "/home/$USER/wraith -Q"%0a%3c         print -n "Botpack configured! Press enter to continue";%0a%3c         read IGNORE;%0a%3c         doas su -l $USER -c "/home/$USER/wraith -C"%0a%3c         doas chsh -s /sbin/nologin $USER%0a%3c         print -n "Bots configured! Press enter to continue";%0a%3c         read IGNORE;%0a%3c done%0a%3c @]%0a%3c %0a%3c Run the script:%0a%3c %0a%3c [@%0a%3c $ sh ~/wraith-setup.sh%0a%3c @]%0a%3c %0a%3c !! Hub%0a%3c %0a%3c If you are creating a hub, name the hub after the network (efnet, ircnet, undernet). The script will ask you to provide the packconfig you generated and saved above. Paste it.%0a%3c %0a%3c [@%0a%3c $  sh wraith-setup.sh  %0a%3c Create new bot (WARNING: WILL DELETE!): networkname%0a%3c Command: /bin/rm -rf /home/undernet > /dev/null 2>&1 || true%0a%3c // Paste in your PACKCONFIG. Reference https://github.com/wraith/wraith/wiki/PackConfig%0a%3c // Press %3center> if it gets hung up. If that doesn't work hit ^D (CTRL+d)%0a%3c @]%0a%3c %0a%3c We paste something like this:%0a%3c %0a%3c [@%0a%3c PACKNAME yourpackname%0a%3c BINARYPASS +dURT8$6e8e5b2448356bb48f642dd18115aaaaca7b6dcb%0a%3c DCCPREFIX .%0a%3c OWNER yournick +SUXSC$d2312f8fcd9de09574d7370e8de058d91322686c%0a%3c HUB yourhubname hub.network.ircnow.org 12742%0a%3c SALT1 nuUlSail2TyDzZhWOX9Paz1L6SBoVLvX%0a%3c SALT2 ThTQF8IFeEe5ox0i%0a%3c @]%0a%3c %0a%3c The terminal will show:%0a%3c %0a%3c [@%0a%3c ........%0a%3c * Wrote settings to binary.%0a%3c Botpack configured! Press enter to continue%0a%3c Enter your binary password: %0a%3c @]%0a%3c %0a%3c Afterwards, it will ask for your OWNER password and bot configuration information. You will want to these three lines at the top:%0a%3c %0a%3c [@%0a%3c hubnick hub.network.ircnow.org%0a%3c ! portmin 64000%0a%3c ! portmax 64100%0a%3c @]%0a%3c %0a%3c Replace hubnick with your network name (efnet, ircnet, undernet) and hub.network.ircnow.org with your hostname. If you want to use IPv6, include a +. You will then want to specify a min port and max port for updating bot info.%0a%3c %0a%3c It should look like this:%0a%3c %0a%3c [@%0a%3c hubnick hub.network.ircnow.org%0a%3c ! portmin 64000%0a%3c ! portmax 64100%0a%3c %0a%3c # Automatically updated with -C%0a%3c ! uid 1025%0a%3c #! uid -1%0a%3c %0a%3c ! username undernet%0a%3c ! homedir /home/undernet%0a%3c %0a%3c # Hubs this bot will connect to%0a%3c ! hub networkname hub.network.ircnow.org 12742%0a%3c %0a%3c # '|' means OR, [] means the enclosed is optional%0a%3c # A '+' in front of HOST means the HOST is ipv6%0a%3c # A '/' in front of BOT will disable that bot.%0a%3c #[/]BOT IP|* [+]HOST|* [IPV6-IP]%0a%3c #bot ip vhost%0a%3c #bot2 * vhost%0a%3c #bot3 ip%0a%3c #bot4 * +ipv6.vhost.com%0a%3c #bot5 * * ip:v6:ip:goes:here::%0a%3c ### Hubs should have their own binary ###%0a%3c @]%0a%3c %0a%3c Save and quit.%0a%3c %0a%3c '''WARNING''': Don't connect the hub to IRC directly! The hub contains data that if stolen, can cause your entire botnet to get compromised. It is better if the hub is not on a public IP address.%0a%3c %0a%3c !! Bots%0a%3c %0a%3c If you are creating a leaf node, name each leaf node after your server's fruit name (fruit01, fruit02, fruit03). You want three separate shell accounts, one for each bot. Do not put all three leaf nodes in the same shell account. Don't create any more than three shell accounts since more than three bots will waste your IP connection limit without providing much additional protection.%0a%3c %0a%3c [@%0a%3c botnick vhost%0a%3c @]%0a%3c %0a%3c Replace botnick with your fruit name (fruit01, fruit02, fruit03) and vhost with your IPv6 hostname (fruit.network.ircnow.org).%0a%3c %0a%3c !! Backup and Delete Wraith%0a%3c %0a%3c After you are done, make sure to copy the dynamic wraith binary to somewhere safe and delete it for security reasons.%0a%3c %0a%3c Run this on your backup PC:%0a%3c %0a%3c [@%0a%3c $ scp fruit.ircnow.org:/home/username/wraith-v1.4.10/wraith /path/to/dest/%0a%3c @]%0a%3c %0a%3c Then on the server:%0a%3c %0a%3c [@%0a%3c $ rm -rf /home/username/wraith-v1.4.10/%0a%3c @]%0a%3c %0a%3c !! Controlling Wraith%0a%3c %0a%3c To administer wraith, you will need to log in to your server using ssh:%0a%3c %0a%3c [@%0a%3c $ ssh network.ircnow.org%0a%3c @]%0a%3c %0a%3c Once connected, run [[openbsd/netcat|netcat]] to your host and port:%0a%3c %0a%3c [@%0a%3c $ nc network.ircnow.org 12742%0a%3c @]%0a%3c %0a%3c !!! Joining channels%0a%3c %0a%3c To make the bot join and leave a channel:%0a%3c %0a%3c [@%0a%3c .+chan #chan%0a%3c .-chan #chan%0a%3c @]%0a%3c %0a%3c If the channel is keyed:%0a%3c %0a%3c [@%0a%3c .chanset #chan chanmode { +ntk key }%0a%3c @]%0a%3c %0a%3c !!! Giving users ops%0a%3c %0a%3c [@%0a%3c .op #chan %3cnick>%0a%3c @]%0a%3c %0a%3c To use a specific bot:%0a%3c %0a%3c [@%0a%3c .botcmd botnick op user *%0a%3c .bl op user *%0a%3c @]%0a%3c %0a%3c !!! Cookie-ops%0a%3c %0a%3c Cookie-ops help ensure an op is valid and secure. It takes who was opped, who opped them, a timestamp, and channel state and sends a hash of this info.%0a%3c %0a%3c '''NOTE''': If ops are not working, disable op cookies.%0a%3c %0a%3c To use op cookies:%0a%3c %0a%3c [@%0a%3c .chanset #chan -fastop%0a%3c @]%0a%3c %0a%3c To disable op cookies:%0a%3c %0a%3c [@%0a%3c .chanset #chan +fastop%0a%3c @]%0a%3c %0a%3c !!! Voice and Limits%0a%3c %0a%3c Use +y to voice and +l to set limits:%0a%3c %0a%3c [@%0a%3c .chattr bot +ly%0a%3c @]%0a%3c %0a%3c !!! DCC into a leaf%0a%3c %0a%3c If your hostmask is recognized by the bot, then in your IRC client, type:%0a%3c %0a%3c [@%0a%3c /DCC CHAT botnick%0a%3c @]%0a%3c %0a%3c Enter your password.%0a%3c %0a%3c If your hostmask is not recognized, type:%0a%3c %0a%3c [@%0a%3c /CTCP botnick CHAT%0a%3c @]%0a%3c %0a%3c Enter your username, then enter your password.%0a%3c %0a%3c !! Default Secure Channel%0a%3c %0a%3c For an explanation of the channel settings:%0a%3c %0a%3c [@%0a%3c .help chaninfo%0a%3c @]%0a%3c %0a%3c This will make your channel secure by default:%0a%3c %0a%3c [@%0a%3c .chanset #chan -fastop mdop deop manop deop mop deop -autoop +private bad-cookie kick flood-mjoin 6:1 flood-kick 2:30 +protect%0a%3c @]%0a%3c %0a%3c !! Unable to op%0a%3c %0a%3c If you find yourself unable to op a user:%0a%3c %0a%3c [@%0a%3c .op #ircnow user%0a%3c [03:43:28] @ #user# [op -> botcmd ? op] ...%0a%3c [03:43:28] #user# botcmd cherry07 op ...%0a%3c [03:43:29] (cherry07) #user# (#ircnow) op user%0a%3c [cherry07] You don't have access to op on #ircnow%0a%3c @]%0a%3c %0a%3c It may be because there is a +d flag set. Run whois on the user:%0a%3c %0a%3c [@%0a%3c .whois user%0a%3c [03:45:57] #user# whois user%0a%3c HANDLE                           PASS FLAGS           LAST%0a%3c user                             yes  Oaijmnop        02:47 (#ircnow   )%0a%3c ...%0a%3c COMMENT: +d: Manual op in -manop channel              (user!user@user.users.undernet.org MODE #ircnow +o user2)%0a%3c @]%0a%3c %0a%3c To fix this, drop the +d flag:%0a%3c %0a%3c [@%0a%3c .chattr user -d #ircnow                                                                              %0a%3c @]%0a
+host:1627710562=38.87.162.8