dominic / get-suspic-ips.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | |
3 | GREP=/usr/bin/grep |
4 | |
5 | $GREP -Eh 'pma|admin|sql|w00t|CONNECT|wp-admin|wp-login|wordpress|cgi-bin' /var/log/httpd/access_log | mutt -s "Suspicious Webserver URLs (celeste/new)" -- recipient@domain |
6 | |
7 | $GREP -h '404' /var/log/httpd/access_log | grep ".zip" | mutt -s "Suspicious Webserver URLs (celeste/new) zip files" -- recipient@domain |
dominic / send-suspicips.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | suspicfile=~/suspic |
6 | tmpfile=/tmp/ips |
7 | |
8 | clean_up() { |
9 | echo -n "Removing tmp file..." |
10 | rm -f $tmpfile |
dominic / savemail.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Saves an incoming email as plain text file (or .eml) |
4 | # somewhere in the webservers directories |
5 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
6 | # License: MIT |
7 | |
8 | #umask 133 |
9 | |
10 | date=`date +%Y%m%d-%H%M%S` |
dominic / powersave-freebsd.sh
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | case $( sysctl -n hw.acpi.acline ) in |
6 | |
7 | (0) # BATTERY |
8 | doas sysctl dev.hwpstate_intel.0.epp=100 1> /dev/null 2> /dev/null |
9 | doas sysctl dev.hwpstate_intel.1.epp=100 1> /dev/null 2> /dev/null |
10 | doas sysctl dev.hwpstate_intel.2.epp=100 1> /dev/null 2> /dev/null |
dominic / powersave-openbsd.sh
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | case $( sysctl -n hw.power ) in |
6 | |
7 | (0) # BATTERY |
8 | doas wsconsctl display.brightness=$(cat ${HOME}/.backlight-bat) 1> /dev/null 2> /dev/null |
9 | ;; |
dominic / intel_speedshift.sh
0 likes
0 forks
1 files
Last active
1 | #! /bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | case $( sysctl -n hw.acpi.acline ) in |
6 | |
7 | (0) # BATTERY |
8 | doas sysctl dev.hwpstate_intel.0.epp=100 1> /dev/null 2> /dev/null |
9 | doas sysctl dev.hwpstate_intel.1.epp=100 1> /dev/null 2> /dev/null |
10 | doas sysctl dev.hwpstate_intel.2.epp=100 1> /dev/null 2> /dev/null |
dominic / powersave-arch.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | case $( cat /sys/class/power_supply/AC/online ) in |
6 | |
7 | (0) |
8 | blight set $(cat ${HOME}/.backlight-bat)% 1> /dev/null 2> /dev/null |
9 | ;; |
10 | (1) |
dominic / mailtomutt.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # |
3 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
4 | |
5 | exec alacritty --title Newmail -e neomutt "$@" |
dominic / mailopenhtml.sh
0 likes
0 forks
1 files
Last active
1 | #!/bin/sh |
2 | # Open HTML mails with your browser (xdg-open) |
3 | # |
4 | # Author: Dominic Reich <quick.hat4396@qtztsjosmprqmgtunjyf.com> |
5 | |
6 | BROWSER=xdg-open |
7 | #BROWSER=firefox |
8 | #BROWSER=librewolf |
9 | #BROWSER=zen-browser |
10 | #BROWSER=thorium-browser |