Stinger & Login Script

Hi

I don't know if it's the right section ;-)

I will user NAI's stinger within a login script. My question is how to handle the log files. Stinger allows with it's options to run it in silent mode (no user interaction) and with creating a log file. But the file is always called stinger.txt. How can i script that stinger creates a file like %computername%.txt - so i can find my most infected clients by checking the file size. My antivirus solution is trendmicro officescan - but some worms or trojans aren't detected by this. stinger does ....

Any ideas?
dipichAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
Tim HolmanConnect With a Mentor Commented:
This script should do the trick:

c:\stinger /go /adl /log /silent
ren c:\stinger.txt %computername%.txt


0
 
ferg-oCommented:
Try NAI support. Not trying to diss you but they have answers to these questions.

Rgds.
0
 
itcnbwiseCommented:
Write a batch file that runs after stinger in your login script.  Then try this line:

rename stinger.txt <computername>.txt

0
Managing Security & Risk at the Speed of Business

Gartner Research VP, Neil McDonald & AlgoSec CTO, Prof. Avishai Wool, discuss the business-driven approach to automated security policy management, its benefits and how to align security policy management with business processes to address today's security challenges.

 
itcnbwiseCommented:
That's what I posted.  You just changed "rename" to "ren".
0
 
dipichAuthor Commented:
Thanks

I'll try this script on monday. I hope it works - because stinger takes a lot of time. How will a batch file handel if this takes a few minutes?

@echo off
copy \\server\share\stinger.exe c:\
c:\stinger /go /adl /log /silent
ren c:\stinger.txt %computername%.txt
copy %computername%.txt \\server\share\logs\
del stinger.exe
del %computername%.txt

0
 
Tim HolmanCommented:
> That's what I posted.  You just changed "rename" to "ren".

No it wasn't - you missed out the % on either end of computername....  ;)



0
 
Tim HolmanCommented:
Also, you need %%, not % in your batch file for it to work...

for example:

ren c:\stinger.txt %%computername%%.txt
0
 
dipichAuthor Commented:
Hi Guys

teh first scripts failed - but nuw it works.

and my working script looks like the following one :

@echo off
c:
copy \\server\stinger$\stinger.exe c:\
c:\stinger.exe /go /adl /log /silent
ren c:\stinger.txt %computername%.txt
copy %computername%.txt \\server\stinger$
del c:\stinger.exe
del c:\%computername%.txt

this is an onw script called in my loginscript.

have a try
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.