Re: Test w\ obhack
Article: 7255 of alt.hackers From: mjarvis@qns2.qns.com (Michael Jarvis) Newsgroups: alt.hackers Subject: Re: Test w\ obhack Date: 28 Jan 1995 18:19:48 GMT Organization: Questar Network Services Lines: 27 Approved: by Barney the Dinosaur Message-ID: 3ge1s4$jno@qns1.qns.com NNTP-Posting-Host: qns2.qns.com X-Newsreader: TIN [version 1.2 PL2] Status: RO
nobody.special@if.i.told.you.id.have.to.kill.you.gov wrote: : How'd I do? Please reply and tell me what I can do to fix this up. NNTP-Posting-Host: spew-ppp.j51.com Obhack: I was working on a Lantastic 6.0 network, and was writing a batch file to create a log of who used an application. I was wanting to echo the NetBIOS machine name to a text file. I started trying to use a bletcherous combination of piping NET SHOW through FIND, but realized what I needed was the Unix 'whoami' command. So I wrote a 126-byte .com file that uses the Function 5E00h of Int 21h to echo the right-trimmed Machine Name to stdout. It works great on Lantastic, and SHOULD work on other NetBIOS networks, but I've tested it only on Lantastic. Email me if you want the 80x86 assembly (TASM) source... begin 755 whoami.com MNE(!N`!>S2%R*(#]`'0CN0\`Z"\`=`;_!GL!XO6[`0"+#GL!NE(!M$#-(7(% MN`!,S2&[`0"Y&0"Z8@&T0,TAN`%,S2%1OGT!OU(!`SY[`:99PR`@("`@("`@ D("`@("`@(#`'17)R;W(Z("!);G9A;&ED($9U;F-T:6]N`0`@ ` end -- Michael Jarvis | Finger for PGP Public key | QNSnet Technical Support mjarvis@qns.com | http://www.qns.com/~mjarvis | Questar Network Services GCS d H- s+++:- g? p2+ au a25 w+ v C++++$ UL+++ P+ L++>+++ 3- E--- N++ K W+ M- !V po Y+ t+ 5+ j R G+ tv b+++ D++ B- e+>++ u+ h---(*) f+ r+++ !n y+++(*)