GithubHelp home page GithubHelp logo

Comments (10)

Castaldio86 avatar Castaldio86 commented on July 4, 2024 1

+1

tried it in jpg and png files between 500KB and 25MB

And a .ps1 containing

& "C:\Windows\System32\calc.exe"

from invoke-psimage.

DeeLMind avatar DeeLMind commented on July 4, 2024

So do I

from invoke-psimage.

legit4n6 avatar legit4n6 commented on July 4, 2024

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.

lfcow avatar lfcow commented on July 4, 2024

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.

maysam-h avatar maysam-h commented on July 4, 2024

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.

image

from invoke-psimage.

tasox avatar tasox commented on July 4, 2024

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.

maysam-h avatar maysam-h commented on July 4, 2024

@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.

image

from invoke-psimage.

tasox avatar tasox commented on July 4, 2024

@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.

maysam-h avatar maysam-h commented on July 4, 2024

@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.

peewpw avatar peewpw commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.