Comments (10)
+1
tried it in jpg and png files between 500KB and 25MB
And a .ps1 containing
& "C:\Windows\System32\calc.exe"
from invoke-psimage.
So do I
from invoke-psimage.
I am unable to get it to even produce the output png file. <<-- I got it to embed the script, I just didn't do it right the first time... it was late :)
from invoke-psimage.
The issue I had was "Index was outside the bounds of the array"
I solved this by using a larger input file.
from invoke-psimage.
everytime I run the outliner, I get this issue. I double check this command, but all the brackets has a closing. any help please, thanks in advance.
from invoke-psimage.
I had the same problem with @maysam-h
I found how to fix "missing closing }" error. You have to put in the end of your script function ";" NOT only in the one line script by PSImage.
For Example:
function CheckWinRM([string]$ip) {
Test-WSMan -ComputerName $ip
};
from invoke-psimage.
@tasox thanks for the tip.
But it does not work for me. I even updated to make sure I have the updates after the last commit.
Here is a screenshot of the commands I invoke. is there anything I am missing please?
Thanks in advance.
from invoke-psimage.
@maysam-h in your batchfile.ps1 you have some functions right? Try in the end of every function to put ";"
For Example:
function test { };
But now you have a different error from previous. Please check very carefully your "batchfile.ps1" and find somewhere in your code "&" character because this character produce this error.
from invoke-psimage.
@tasox It seems to be strange because my batch file does not have a function or '&'. Here is a contents of my batch file.
`echo off
::creating some test fodlers
mkdir ali-here
mkdir ali-here2
mkdir ali-here3
exit`
I assume its the oneliner because the error says "At Line:1 char:309" which is exactly the bracket after "IEX".
from invoke-psimage.
These all look like errors in the source scripts. Please open a new issue if you cannot generate a one-liner for a working script.
closing.
from invoke-psimage.
Related Issues (19)
- Not Working Any help would be alsome!! HOT 3
- windows10 HOT 2
- IEX Error in one-liner HOT 1
- psimage build not working HOT 1
- Cannot build PNG on Powershell for Kali
- No effect after opening image created by this script HOT 1
- Eror HOT 1
- WebRequest HOT 1
- error ”&“ HOT 2
- Nothing happen anything HOT 3
- doesn't seem to work (no output picture)
- Script won't work for me...
- One liner doesn't generate HOT 2
- $lpayload + 1? HOT 1
- Parameter is not valid error HOT 1
- Error: ParseException - Invoke-Expression: Ampersand not allowed HOT 2
- the term 'xxxxxx' is not recognized as the name of a cmdlet HOT 1
- Either not working or misunderstanding instructions HOT 2
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 invoke-psimage.