HOME>>>>>>>>>

File smb-print-text

脚本使用类型: hostrule
脚本所属分类: intrusive
脚本下载地址: http://nmap.org/svn/scripts/smb-print-text.nse

User Summary

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.

Script Arguments

text

Text to print. Either text or filename need to be specified.

filename

File to read text from (ASCII only).

printer

Printer share name. Optional, by default script tries to enumerate available printer shares.

randomseed, smbbasic, smbport, smbsign

See the documentation for the smb library.

smbdomain, smbhash, smbnoguest, smbpassword, smbtype, smbusername

See the documentation for the smbauth library.

Example Usage

执行格式

nmap  -p 445 <target> --script=smb-print-text  --script-args="text=0wn3d"

Script Output

|_smb-print-text: Printer job started using MyPrinter printer share.

Requires


Author: Aleksandar Nikolic

License: VER007 整理 http://www.ver007.com