Re: [Freedos-user] Setting up a shared printer

2012-05-16 Thread nospam
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

2012-05-14 Thread Jim Hall
On Sun, May 6, 2012 at 4:30 PM, Michael B. Brutman
mbbrut...@brutman.com 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

2012-05-14 Thread Bret Johnson
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

2012-05-07 Thread Michael B. Brutman
On 5/7/2012 6:32 PM, dmccunney wrote:
 On Sun, May 6, 2012 at 5:30 PM, Michael B. Brutman
 mbbrut...@brutman.com  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

2012-05-06 Thread Michael B. Brutman

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 printer address 9100 -bin  filename

Substitute printer address with the IP address of your printer and 
filename 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


Re: [Freedos-user] Setting up a shared printer

2012-05-06 Thread nospam
 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 printer address 9100 -bin  filename

 Substitute printer address with the IP address of your printer and
 filename 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

2012-05-06 Thread Michael B. Brutman
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