Re: [Freedos-user] Setting up a shared printer
A very good Wiki page on printing with netcat! Netcat can be used in many ways. I find connecting to a command shell on a Windows PC and transfering files an interesting application. I did not have a chance to test that yet though. If a windows printer is configured to be used from that command shell you could also print the files that were transfered to the Windows PC - even if its a cheap windows-only printer. Georg -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
While only indirectly related to mtcp and netcat, I accidentally ran across this site recently: http://lspppacm.narod.ru It creates a DOS packet driver using a ppp connection through a USB modem. I haven't tried it (don't have a USB modem), but I think it's at least interesting, if not perhaps useful for some people. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
On Sun, May 6, 2012 at 4:30 PM, Michael B. Brutman wrote: > On 5/6/2012 4:10 PM, nospam wrote: > >> Very interesting. I suggest you make a FreeDOS Wiki page from this >> information. >> >> Georg >> > > It is just a trick that I found. I was waiting to do a more > comprehensive writeup on network printing until after I write an LPR daemon. > > Netcat is one of the best kept secrets in the world of networking. You > can use it to send email, printer files, or any arbitrary data from one > machine to another machine. I'm getting caught up on my email, and saw this thread. I copied/pasted Michael's nc instructions into the FreeDOS wiki: https://sourceforge.net/apps/mediawiki/freedos/index.php?title=Netcat Also, I made wiki links from the mTCP page: https://sourceforge.net/apps/mediawiki/freedos/index.php?title=Networking_FreeDOS_-_mTCP -jh -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
On 5/7/2012 6:32 PM, dmccunney wrote: > On Sun, May 6, 2012 at 5:30 PM, Michael B. Brutman > wrote: > >> Netcat is one of the best kept secrets in the world of networking. You >> can use it to send email, printer files, or any arbitrary data from one >> machine to another machine. > Not that well kept a secret in the *nix world. As it happens, I know > the original author. He's spending his time hacking his Prius and > doing lighting design these days. > Send him my regards. : - ) (And my apologies - I have not implemented UDP in my version yet.) Mike -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
On Sun, May 6, 2012 at 5:30 PM, Michael B. Brutman wrote: > Netcat is one of the best kept secrets in the world of networking. You > can use it to send email, printer files, or any arbitrary data from one > machine to another machine. Not that well kept a secret in the *nix world. As it happens, I know the original author. He's spending his time hacking his Prius and doing lighting design these days. > Mike __ Dennis https://plus.google.com/u/0/105128793974319004519 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
Hi, couldn't resist,;-) On Sun, May 6, 2012 at 10:11 AM, Michael B. Brutman wrote: > > Most new network attached printers will listen on port 9100. Yours > might not. If it does nothing then it might be listening on the Unix > LPD port (515) or the IPP port (631). Just try it, nothing bad will happen. PRINTER ON FIRE! ;-) -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
On 5/6/2012 4:10 PM, nospam wrote: > Very interesting. I suggest you make a FreeDOS Wiki page from this > information. > > Georg > It is just a trick that I found. I was waiting to do a more comprehensive writeup on network printing until after I write an LPR daemon. Netcat is one of the best kept secrets in the world of networking. You can use it to send email, printer files, or any arbitrary data from one machine to another machine. Mike -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
> If your network attached printer is listening on TCP/IP port 9100 ("HP > JetDirect" protocol) and your DOS program can generate something the > printer can understand, then do the following: > > - Print your printer output to a file > - Send the file to the printer using this command: > > nc -target 9100 -bin < > > Substitute with the IP address of your printer and > with the filename your program generated when you said "print > to file". For example, on my printer: > > nc -target 192.168.2.20 9100 -bin < testfile.txt > > Will print testfile.txt over the network to the printer. (testfile.txt > gets redirected on stdin to netcat.) > > > Here is the fine print: > > Most new network attached printers will listen on port 9100. Yours > might not. If it does nothing then it might be listening on the Unix > LPD port (515) or the IPP port (631). Just try it, nothing bad will > happen. > > Your DOS program has to generate output that your printer understands. > That is usually some form of PCL output. Some printers can take raw > ASCII text, some more expensive printers can do PostScript, and some > cheap and nasty printers require Windows and can't do anything by > themselves. If you have a printer that does not do ASCII, PostScript, > or PCL and requires a Windows machine to do anything, it won't work for > you. > > > > Mike Very interesting. I suggest you make a FreeDOS Wiki page from this information. Georg -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user
Re: [Freedos-user] Setting up a shared printer
If your network attached printer is listening on TCP/IP port 9100 ("HP JetDirect" protocol) and your DOS program can generate something the printer can understand, then do the following: - Print your printer output to a file - Send the file to the printer using this command: nc -target 9100 -bin < Substitute with the IP address of your printer and with the filename your program generated when you said "print to file". For example, on my printer: nc -target 192.168.2.20 9100 -bin < testfile.txt Will print testfile.txt over the network to the printer. (testfile.txt gets redirected on stdin to netcat.) Here is the fine print: Most new network attached printers will listen on port 9100. Yours might not. If it does nothing then it might be listening on the Unix LPD port (515) or the IPP port (631). Just try it, nothing bad will happen. Your DOS program has to generate output that your printer understands. That is usually some form of PCL output. Some printers can take raw ASCII text, some more expensive printers can do PostScript, and some cheap and nasty printers require Windows and can't do anything by themselves. If you have a printer that does not do ASCII, PostScript, or PCL and requires a Windows machine to do anything, it won't work for you. Mike -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Freedos-user mailing list Freedos-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-user