873 - Rsync
Potential Risks
Unauthorized Access
# RHOST=remoteHost; RPORT=873
rsync rsyns://$RHOST:$RPORT
# Bulk testing
# RHOST_LIST=hosts.txt
run() {
while IFS= read -r LINE
do
if [[ "$LINE" == *":"* ]]; then
RHOST=${LINE%%:*}
RPORT=${LINE#*:}
else
RHOST=$LINE
RPORT=873
fi
if [[ -n "$(sshpass -p '' rsync rsync://$RHOST:$RPORT 2>/dev/null)" ]]; then
echo "[SUCCESS] rsync://$RHOST:$RPORT"
fi
done < "$RHOST_LIST"
}
run | awk -F '//' '{print $2}'Exploitation
Upload File
Method 1: Regular upload files
Method 2: Upload crontab to reverse shell
Method 3: Upload the executable reverse shell file and add crontab to execute
Download File
最后更新于