Comments (11)
from nishang.
Do you have MS Word installed on the machine where you are running the Out-Word script?
from nishang.
Yes I have office 13
from nishang.
Does Out-Excel throws a similar error?
from nishang.
Reinstalling MS office solved the part. but when i open the word file nothing happens.
so i tried putting single quote then this happened
PS C:\Users\eMO\desktop> out-word -Payload " powershell.exe -noexit -c Invoke-Expression
(New-Object IO.Compression.DeflateStream (
m5QIA'')))), [IO.Compression.CompressionMode]::Decompress)), [Text.Encoding]::ASCII)).ReadToEnd();"
At line:1 char:201
- ... Base64String(''c08t0Q0oyk9OLS7m5QIA'')))), [IO.Compression.CompressionMode]::Dec ...
-
~
Missing ')' in method call.
At line:1 char:201
- ... Base64String(''c08t0Q0oyk9OLS7m5QIA'')))), [IO.Compression.CompressionMode]::Dec ...
-
~~~~~~~~~~~~~~~~~~~~~~
Unexpected token 'c08t0Q0oyk9OLS7m5QIA''' in expression or statement.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingEndParenthesisInMethodCall
from nishang.
Reinstalling MS office solved the part. but when i open the word file nothing happens.
so i tried putting single quote then this happened
PS C:\Users\eMO\desktop> out-word -Payload " powershell.exe -noexit -c Invoke-Expression $(New-object IO.StreamReader ($(New-Object IO.Compression.DeflateStream (
error in the pic
from nishang.
from nishang.
Microsoft Word 2010
This document was edited in a different version of Microsoft Word.
To load the document, please Enable Content
this is what i get when i dont include single quotes
from nishang.
That is a trick to entice a user to enable Macros. The payload gets executed. Have a look at running processes you will see an additional powershell.exe process.
from nishang.
my script which is 400 lines, when i try to encode it with invoke-encode it give me the same result for for
-outcommand and -postscriptcommand
. ./invoke-encoded.ps1
invoke-encode -DataToEncode main.ps1 -Outcommand
when i run this i get Output as PostScriptCommand
PS : Generated PostScriptCommand is valid. but i am not able to get the right form of output
Interesting thing is, small scripts work fine
from nishang.
from nishang.
Related Issues (20)
- Invoke-PowerShellTcpOneLine.ps1 prints newline between successive lines. HOT 4
- Error running Get-LsaSecret HOT 5
- Invoke-PowerShellTcpOneLine.ps1 errors HOT 1
- How to upgrade reverse shell netcat session to meterpreter? HOT 1
- Invoke-PowerShelltcpOneLine Windows10 errors HOT 4
- Copy-VSS fails when NTDS is not on C drive
- import module powerpreter HOT 1
- [Question] What's the meaning of `nishang`? HOT 1
- dpapi::chrome "/unprotect" error HOT 1
- Need Better Requirement Processing i.e. "modules specified by "#requires" are missing: ActiveDirectory. "
- What happend to Find-PSRemotingLocalAdminAccess.ps1? HOT 1
- salarydetails.doc file is not created as shown in the link http://www.labofapenetrationtester.com/2015/05/week-of-powershell-shel HOT 2
- The remote server returned an error: (404) Not Found.
- Why in mimikatz/kiwi cannot process first space when opening chrome database "Login Data" ?
- Invoke-PoshRatHttps 服务器提交了协议冲突. Section=ResponseStatusLine HOT 3
- Invoke-Encode's result doesn't work in powershell
- Out-word payload Errors HOT 2
- Invoke-CredentialsPhish.ps1 doesn't work on pin passwords
- Pastebin exfiltration help
- DNS_TXT_Pwnage bug when exfil and no authns especified HOT 1
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 nishang.