Solved

Stinger & Login Script

Posted on 2004-10-01
10
1,020 Views
Last Modified: 2008-02-01
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?
0
Comment
Question by:dipich
  • 3
  • 2
  • 2
  • +1
10 Comments
 
LVL 4

Expert Comment

by:ferg-o
Comment Utility
Try NAI support. Not trying to diss you but they have answers to these questions.

Rgds.
0
 
LVL 4

Expert Comment

by:itcnbwise
Comment Utility
Write a batch file that runs after stinger in your login script.  Then try this line:

rename stinger.txt <computername>.txt

0
 
LVL 23

Accepted Solution

by:
Tim Holman earned 125 total points
Comment Utility
This script should do the trick:

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


0
 
LVL 4

Expert Comment

by:itcnbwise
Comment Utility
That's what I posted.  You just changed "rename" to "ren".
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:dipich
Comment Utility
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
 
LVL 23

Expert Comment

by:Tim Holman
Comment Utility
> 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
 
LVL 23

Expert Comment

by:Tim Holman
Comment Utility
Also, you need %%, not % in your batch file for it to work...

for example:

ren c:\stinger.txt %%computername%%.txt
0
 

Author Comment

by:dipich
Comment Utility
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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
By this time the large percentage of day-to-day transactions have shifted to mobile banking; here are some overriding areas QAs must investigate while testing mobile banking apps.  
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now