SMB

From Hacking Printers
Revision as of 11:24, 28 January 2017 by 77.181.223.192 (Talk)

Jump to: navigation, search

In the Windows world, you can print directly (without any ‘printer drivers’ interfering and converting the file) on a shared printer as follows:

C:\> copy /b file \\server\printer

...where server can be the printer itself, if it supports direct printing over SMB or a separate computer system and printer is the name of the printer share. In the UNIX world, you can directly send a file to a printer using either the smbclient or the smbspool command from the samba(7) suite:

smbclient [-N|-U user] //server/printer -c "print file"
smbspool smb://[user:pass]@server/printer 0 user title 1 "" file


...

Related aricles: Fundamentals, Attack carriers