Last active
September 16, 2023 11:02
-
-
Save c4ln/15a4dd64fa48a3bd30ee5eabe114e2bc to your computer and use it in GitHub Desktop.
Instantly Weaponize Kali
This file contains 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/bash | |
cat > /tmp/transform.sh << 'TRANSFORMSH' | |
#!/bin/bash | |
#yourname | |
if [[ -n "$(cat /usr/local/bin/cusw | grep nuorial)" ]] ; then | |
printf "\033[1;37m" ; read -p "Enter the name ( > 5 letters) that you want to see on the desktop screensaver: " deskname | |
while [ "$(echo $deskname | wc -m)" -gt 6 ] ; do read -p "Enter the name ( > 5 letters) that you want to see on the desktop screensaver: " deskname ; done | |
sed -i "s+nuorial+$deskname+g" /usr/local/bin/cusw | |
fi | |
#config | |
[[ -z "$(cat /root/.zshrc | grep 'alias cat')" ]] && echo alias cat="bat --paging never -p --theme 'Monokai Extended Origin'" >> /root/.zshrc | |
#locales | |
update-locale "LANG=en_US.utf.8" ; locale-gen --purge "en_US.utf8" | |
dpkg-reconfigure --frontend noninteractive locales | |
#cs | |
cd /opt/cobaltstrike/custom ; [[ -z "$(ls /opt/cobaltstrike/custom/csek)" ]] && bash /opt/cobaltstrike/custom/obfu.sh | |
#zsh-terminal-modiifications | |
cd ; git clone https://github.com/jotyGill/quickz-sh.git ; cd quickz-sh | |
./quickz.sh ; rm -r ../quickz-sh ; fc-cache -fv | |
cd /root ; curl -L https://cpanmin.us/ -o /usr/bin/cpanm ; chmod +x /usr/bin/cpanm ; alias cpan=cpanm | |
yes | cpan Term::ExtendedColor | |
yes | cpan File::LsColor | |
git clone git://github.com/trapd00r/ls--.git ; cd ls-- ; perl Makefile.PL ; make && make install ; cp ls++.conf $HOME/.ls++.conf | |
chsh --shell=/bin/zsh root | |
#prepare bloodhound | |
sudo bloodhound & | |
sleep 5; pkill -f BloodHound | |
cat<<'EOF'>/root/.config/bloodhound/config.json | |
{ | |
"performance": { | |
"edge": 5, | |
"lowGraphics": false, | |
"nodeLabels": 0, | |
"edgeLabels": 0, | |
"darkMode": true | |
}, | |
"edgeincluded": { | |
"MemberOf": true, | |
"HasSession": true, | |
"AdminTo": true, | |
"AllExtendedRights": true, | |
"AddMember": true, | |
"ForceChangePassword": true, | |
"GenericAll": true, | |
"GenericWrite": true, | |
"Owns": true, | |
"WriteDacl": true, | |
"WriteOwner": true, | |
"CanRDP": true, | |
"ExecuteDCOM": true, | |
"AllowedToDelegate": true, | |
"ReadLAPSPassword": true, | |
"Contains": true, | |
"GpLink": true, | |
"AddAllowedToAct": true, | |
"AllowedToAct": true, | |
"SQLAdmin": true, | |
"ReadGMSAPassword": true, | |
"HasSIDHistory": true, | |
"CanPSRemote": true, | |
"AZAddMembers": true, | |
"AZContains": true, | |
"AZContributor": true, | |
"AZGetCertificates": true, | |
"AZGetKeys": true, | |
"AZGetSecrets": true, | |
"AZGlobalAdmin": true, | |
"AZOwns": true, | |
"AZPrivilegedRoleAdmin": true, | |
"AZResetPassword": true, | |
"AZUserAccessAdministrator": true, | |
"AZAppAdmin": true, | |
"AZCloudAppAdmin": true, | |
"AZRunsAs": true, | |
"AZKeyVaultContributor": true | |
}, | |
"databaseInfo": { | |
"url": "bolt://XHOSTNAME:980", | |
"user": "neo4j", | |
"password": "XHOSTPASSWORD" | |
} | |
} | |
EOF | |
#bat | |
sleep 2 ; wget -O /tmp/bat.deb $(curl -sL https://api.github.com/repos/sharkdp/bat/releases/latest | grep amd64.deb | grep -v musl | grep browser_download_url | head -1 \ | |
| cut -d \" -f 4) && dpkg -i /tmp/bat.deb ; apt-get -y -f install | |
#nanorc | |
cd ~; wget -nv --show-progress https://raw.githubusercontent.com/ritiek/nanorc/master/install.sh -O- | bash | |
#ls_colors | |
mkdir /tmp/LS_COLORS && curl -sL https://api.github.com/repos/trapd00r/LS_COLORS/tarball/master | tar xzf - --directory=/tmp/LS_COLORS --strip=1 &> /dev/null | |
( cd /tmp/LS_COLORS && sh install.sh ) &> /dev/null ; mv /opt/p10k /root/.p10k.zsh ; mv /opt/zshrc /root/.zshrc | |
#.zsh | |
mkdir /tmp/config ; cd /tmp/config ; unzip /opt/config.zip ; sleep 1 ; mv .* /root/ ; printf "\ncd /root\n" >> /root/.zshrc | |
#firefox | |
firefox & | |
sleep 10 ; killall -9 firefox ; wget -O /tmp/user.js https://github.com/arkenfox/user.js/raw/master/user.js | |
mv /tmp/user.js /opt/prefs.js /root/.mozilla/firefox/*-release/ | |
TRANSFORMSH | |
chmod +x /tmp/transform.sh ; xfce4-terminal --fullscreen --hide-menubar --hide-toolbar --hide-scrollbar -e 'sudo /tmp/transform.sh' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment