Difference between revisions of "SMB"
From Hacking Printers
(Created page with " → ''Related aricles:'' Fundamentals, Attack carriers ----") |
|||
Line 1: | Line 1: | ||
+ | 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 <code>server</code> can be the printer itself, if it supports direct printing over SMB or a separate computer system and <code>printer</code> 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#High-level_overview|Fundamentals]], [[Attack carriers]] | → ''Related aricles:'' [[Fundamentals#High-level_overview|Fundamentals]], [[Attack carriers]] |
Revision as of 11:24, 28 January 2017
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