Comments (6)
Ah, I think i found the problem. I use a system with german language and german office 365. If iuse use the -folder all parameter it works. Seems it does not work because of the default folder "inbox".
from mailsniper.
Hey man, I won't be able to troubleshoot this until next week but the first thing I would mention is that the regex is looking for VISA, MasterCard, and American Express numbers. So if the cards in your mailbox aren't one of those then it won't find it. Also, are the card numbers in the body of the email or in the attachments. I see you are using the -CheckAttachments option.
from mailsniper.
Hi,
thanks for your response. The regex is not the problem. I sent myself an email with subject "Password" and also with "Password" in the Body and just tried the default settings. But I think that the Connection to EWS is not working or the session is just closing because after
[] Using EWS URL https://outlook.office365.com/EWS/Exchange.asmx
Nothing happens... In your Blogpost there is a screenshot with "Now searching..." But I never see something I like that...
I also checked that I have the rights for EWS.
from mailsniper.
Oh that is an odd issue. I would also assume that the connection isn't working to EWS... At that point in the script it should actually be trying to bind to the Inbox. I will check it out next week and see if I can replicate the issue.
from mailsniper.
Any updates?
from mailsniper.
I just tested it and it seems to be working for me. I used the following command to search for 'password' against an O365 account and it found my test email with the term password in the body.
PS C:\> Invoke-SelfSearch -ExchHostname outlook.office365.com -Terms "*password*" -Remote -Mailbox [email protected]
[*] Trying Exchange version Exchange2010
cmdlet Get-Credential at command pipeline position 1
Supply values for the following parameters:
Credential
[*] Using EWS URL https://outlook.office365.com/EWS/Exchange.asmx
[***] Found folder: Inbox
[*] Now searching mailbox: [email protected] for the terms *password*.
Sender ReceivedBy Subject Body
------ ------ ------ ------
[email protected] [email protected] Test Email This message has a password in it...
If authentication was failing for you I believe you would see at least an error stating the request failed so it's probably not that. What version of PowerShell are you running and what OS? Also, can you try logging directly in to EWS with a browser at https://outlook.office365.com/EWS/Exchange.asmx? You should see the Service page after logging in there if it was successful.
from mailsniper.
Related Issues (20)
- Key word synonym's
- The underlying connection was closed: An unexpected error occurred on a send. HOT 1
- Feature Request - Proxy support HOT 1
- Feature Request - Ignore SSL errors HOT 3
- Feature Request : Check userlist with specific password for each
- Exception calling Bind: ID property must be set
- Trouble with module?
- Problems running Invoke-SelfSearch and Invoke-GlobalMailSearch HOT 2
- Exception calling ".ctor" with "2" argument(s): "Cannot process argument because the value of argument "userName" is not valid HOT 1
- Exception: The Autodiscover service couldn't be located.
- Latest version: "reserved for future use" and other errors HOT 1
- HTTP 400 with Invoke-InjectGEventAPI
- i need to testing the Invoke-PasswordSprayEWS
- Impersonation Account Credential HOT 2
- Credentials HOT 2
- Invoke-PasswordSprayEWS threads
- The request failed. The remote server returned an error : Forbidden HOT 3
- The Gmail spray module HOT 2
- Typo: Invoke-GlobalO365MailSearch -UsePrtImperonsationAccount HOT 2
- Feature Request - Rate Limiter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mailsniper.