
MS docs पर आधारित MS Exchange के साथ इंटरैक्ट करने के लिए C# टूल
यह एक कमांड लाइन POC है जो दिखाता है कि Microsoft Exchange (EWS) के साथ इंटरैक्ट करने के लिए C# का उपयोग कैसे किया जा सकता है। यह दिखाता है कि यह Powershell के अलावा अन्य टूलिंग में भी किया जा सकता है। हाँ, यह एक साधारण POC है जो यह दिखाने के लिए है कि इसे कैसे किया जा सकता है। यह 100% नहीं है। यदि आप अपने l33t C# कोडर या रेड टीमर कौशल दिखाना चाहते हैं तो एक pull request खोलें :) यह केवल शैक्षिक उद्देश्यों के लिए है। बुरे या अवैध कार्यों के लिए उपयोग न करें।
Required Inputs (Must be in order shown):
ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem
Example WEBDomain: webmail.domain.com
Example DomainName: User1
Example Password: SecretPassword
Example InternalDomainName: domain
Options for DUMPItem:
Inbox
Sent
Drafts
Deleted
Skype
Attachments (Will Download Atatchments from the Inbox, DeletedItems, and Sent Items folders)
SendEmail ToEmailAddress~Subject~Body(Body can be file path)~AttachmentLocalFilePath(optional)
All (All == will try to dump all the items above)(I would default to this if unsure)
Optional Inputs:
ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem NumberOfSearchResultsToReturn
Example NumberOfSearchResultsToReturn (will return a maximum of the number,default 10): 10
Note: NumberOfSearchResultsToReturn must be a int/whole number
Optional Inputs:
ReadEmailExchange.exe WEBDomain DomainName Password InternalDomainName DUMPItem NumberOfSearchResultsToReturn OutputFileNameOrPath
Example OutputFileNameOrPath: C:\file.csv
Note: Program needs permission to write to location
Microsoft.Exchange.WebServices
यह C# है, इसलिए आधुनिक सिस्टमों पर जहाँ यह सक्षम है, AMSI संभवतः सक्रिय होता है
डिस्क पर टेक्स्ट फ़ाइल लिख सकता है
डिफ़ॉल्ट .NET उपयोगकर्ता एजेंट स्ट्रिंग का उपयोग करता है (उदाहरण के लिए: ... .NET CLR ...)
चलने पर .NET exe उपयोगकर्ता के खाते की फ़ोल्डर संरचना में अपने नाम के साथ अस्थायी फ़ाइल बना सकता है
ऐप का GUID
कोड की समीक्षा करने पर कई और अवसर मौजूद हैं