smb-print-text
脚本使用类型:
hostrule
脚本所属分类:
intrusive
脚本下载地址: http://nmap.org/svn/scripts/smb-print-text.nse
Attempts to print text on a shared printer by calling Print Spooler Service RPC functions.
In order to use the script, at least one printer needs to be shared
over SMB. If no printer is specified, script tries to enumerate existing
ones by calling LANMAN API which might not be always available.
LANMAN is available by default on Windows XP, but not on Vista or Windows 7
for example. In that case, you need to specify printer share name manualy
using printer
script argument. You can find out available shares
by using smb-enum-shares script.
Later versions of Windows require valid credentials by default
which you can specify trough smb library arguments smbuser
and
smbpassword
or other options.
Text to print. Either text or filename need to be specified.
File to read text from (ASCII only).
Printer share name. Optional, by default script tries to enumerate available printer shares.
执行格式
nmap -p 445 <target> --script=smb-print-text --script-args="text=0wn3d"
|_smb-print-text: Printer job started using MyPrinter printer share.
Author: Aleksandar Nikolic
License: VER007 整理 http://www.ver007.com